实验拓扑图
基础配置
sys
sy sw1
vlan batch 100
interface G0/0/1
port link-type trunk
port trunk allow-pass vlan 100
interface G0/0/2
port link-type trunk
port trunk allow-pass vlan 100
interface G0/0/24
port link-type trunk
port trunk allow-pass vlan 100
interface G0/0/3
port link-type access
port default vlan 100
stp enable
stp root primary
interface vlanif 100
ip address 192.168.100.1 24
sys
sy sw2
vlan batch 100
interface G0/0/1
port link-type trunk
port trunk allow-pass vlan 100
interface G0/0/2
port link-type trunk
port trunk allow-pass vlan 100
interface G0/0/24
port link-type trunk
port trunk allow-pass vlan 100
interface vlanif 100
ip address 192.168.100.2