一、实验目标
掌握MSTP多生成树配置,VLAN配置,trunk配置,etherchannel配置
二、实验平台
系统:WIN7以上windows,X64版本。CPU支持虚拟化,并在Bios中开启虚拟化。内存最好3G以上.
软件:GNS3 1.4.0b3, VMware Workstation Pro 12,VM虚拟机:GNS3 VM (GNS3:1.4.0b3,VM:0.9.6) ,
IOU: i86bi-linux-l2-adventerprisek9-15.1a.bin
三、实验拓扑
四、实验需求
SW1/SW2之间启用etherchannel。
trunk:SW1-SW2,SW1-SW3,SW2-SW4,SW2-SW3,SW1-SW4.
交换机全部启用mst生成树.(name mst,revision 1.)
instance 1:vlan 10
instance 2:vlan 20
SW1: mst 1 root,mst 2 sec
SW2: mst 2 root,mst1 sec
vlan 10:pc1,pc3
vlan 20:pc2,pc4.
五、实验配置
SW1:
en
conf t
hostname SW1
no ip routing
vlan 10
vlan 20
spanning-tree mode mst
spanning-tree mst configuration
name mst
revision 1
instance 1 vlan 10
instance 2 vlan 20
exit
spanning-tree mst 1 root pri
spanning-tree mst 2 root sec
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
SW2:
en
conf t
hostname SW2
no ip routing
spanning-tree mode mst
spanning-tree mst configuration
name mst
revision 1
instance 1 vlan 10
instance 2 vlan 20
spanning-tree mst 1 root sec
spanning-tree mst 2 root pri
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
SW3:
en
conf t
hostname SW3
no ip routing
spanning-tree mode mst
spanning-tree mst configuration
name mst
revision 1
instance 1 vlan 10
instance 2 vlan 20
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/2
switchport access vlan 10
switchport mode access
interface Ethernet0/3
switchport access vlan 20
switchport mode access
SW4:
hostname SW4
no ip routing
spanning-tree mode mst
spanning-tree mst configuration
name mst
revision 1
instance 1 vlan 10
instance 2 vlan 20
interface Ethernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/2
switchport access vlan 10
switchport mode access
interface Ethernet0/3
switchport access vlan 20
switchport mode access
PC1:ip 192.168.1.1/24 192.168.1.254
PC2:ip 192.168.2.1/24 192.168.2.254
PC3:ip 192.168.1.2/24 192.168.1.254
PC4:ip 192.168.2.2/24 192.168.2.254
配置完毕,PC1和PC3可以ping通,PC2和PC4可以ping通。
SW1是vlan 10的root bridge,SW2是vlan 20的root bridge.