目的:两个三层交换机下挂不同的vlan进行互通,所有端口都是access端口
配置完成后10.86.3.50可以ping通所在设备的任意联网ip
LSW4配置:
display current-configuration
#
sysname Huawei
#
vlan batch 2 to 4
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif2
ip address 10.86.3.1 255.255.255.0
#
interface Vlanif3
ip address 10.86.4.1 255.255.255.0
#
interface Vlanif4
ip address 10.86.5.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 2
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 2
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 2
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 2
#
interface GigabitEthernet0/0/5
port link-type access
port default vlan 2
#
interface GigabitEthernet0/0/6
port link-type access
port default vlan 2