实验内容:
1、配置IP地址以及VLAN
在SW1上:
[SW1]vlan batch 2 3
[SW1]int e0/0/9
[SW1-Ethernet0/0/9]port link-type trunk
[SW1-Ethernet0/0/9]port trunk allow-pass vlan all
[SW1]int e0/0/13
[SW1-Ethernet0/0/13]port link-type access
[SW1-Ethernet0/0/13]port default vlan 2
[SW1]int e0/0/12
[SW1-Ethernet0/0/12]port link-type access
[SW1-Ethernet0/0/12]port default vlan 3
[SW1]int e0/0/8
[SW1-Ethernet0/0/8]port link-type trunk trunk
[SW1-Ethernet0/0/8]port trunk allow-pass vlan all
在SW2上:
[SW2]vlan batch 2 3
[SW2]int e0/0/3
[SW2-Ethernet0/0/3]int e0/0/7
[SW2-Ethernet0/0/7]port link-type trunk
[SW2-Ethernet0/0/7]port trunk allow-pass vlan all
[SW2]int e0/0/10
[SW2-Ethernet0/0/10]port link-type access
[SW2-Ethernet0/0/10]port def