1.三层交换机配置VLAN
实现相同网段,相同VLAN互相通信
LSW1配置如下:
vlan batch 10 20
#
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 20
#
interface Ethernet0/0/3
port link-type access
port default vlan 10
#
interface Ethernet0/0/4
port link-type access
port default vlan 20
这里,实现相同网段,相同VLAN互相通信
interface Vlanif10
ip address 192.168.1.254 255.255.255.