win7-64(笔记本内存>=4G)
eNSP
一、搭建本次实验拓扑结构四台交换机,两台核心,两台接入
二、配置实验环境所需要的VLAN信息[SW1]vlan batch 10 20 30 40 100Info: This operation may take a few seconds. Please wait for a moment...done.[SW2]vlan batch 10 20 30 40 100Info: This operation may take a few seconds. Please wait for a moment...done.[SW3]vlan batch 10 20 30 40 100Info: This operation may take a few seconds. Please wait for a moment...done.[SW4]vlan batch 10 20 30 40 100Info: This operation may take a few seconds. Please wait for a moment...done.
三、将接口加入VLAN中[SW1]int g0/0/4[SW1-GigabitEthernet0/0/4]po li tr[SW1-GigabitEthernet0/0/4]po tr all vl 10 20 30 40 100[SW2]int g0/0/3[SW2-GigabitEthernet0/0/3]po li tr[SW2-GigabitEthernet0/0/3]po tr all vl 10 20 30 40 100[SW3]int g0/0/1[SW3-GigabitEthernet0/0/1]po li tr[SW1-GigabitEthernet0/0/1]po tr all vl 10 20 30 40 100[SW4]int g0/0/2[SW4-GigabitEthernet0/0/2]po li tr[SW4-GigabitEthernet0/0/2]po tr all vl 10 20 30 40 100命令是简打的,没有把所有接口信息都添加,请自行添加所有接口信息的VLAN
四、配置MSTP,定义VLAN属于实例的信息S1]stp mode mstp [S1]stp region-configuration [S1-mst-region]region-name RG1 [S1-mst-region]instance 1 vlan 10 20 100[S1-mst-region]instance 2 vlan 30 40[S1-mst-region]active region-configuration Info: This operation may take a few seconds. Please wait for a moment....done. [S2]stp mode mstp [S2]stp region-configuration [S2-mst-region]region-name RG1 [S2-mst-region]instance 1 vlan 10 20 100[S2-mst-region]instance 2 vlan 30 40[S2-mst-region]active region-configuration Info: This operation may take a few seconds. Please wait for a moment....done.SW3和SW4也是一样的
五、查看MSTP实例和VLAN映射关系[SW2]dis stp re Oper configuration Format selector :0 Region name :RG1 Revision level :0 Instance VLANs Mapped 0 1 to 9, 11 to 19, 21 to 29, 41 to 99, 101 to 4094 1 10, 20, 100 2 30 to 40
六、修改交换机的MSTP实例的优先级[S1]stp instance 1 priority 4096 [S1]stp instance 2 priority 8192 [S2]stp instance 2 priority 4096 [S2]stp instance 1 priority 8192
七、查看实例1和实例2的状态信息[SW1]dis stp ins 1-------[MSTI 1 Global Info]-------MSTI Bridge ID :4096.4c1f-ccee-804fMSTI RegRoot/IRPC :4096.4c1f-ccee-804f / 0MSTI RootPortId :0.0Master Bridge :32768.4c1f-cc2f-665aCost to Master :20000TC received :8TC count per hello :0Time since last TC :0 days 1h:34m:32sNumber of TC :11Last TC occurred :Eth-Trunk1
八、查看MSTP实例1的端口信息[SW1]dis stp ins 1 bri MSTID Port Role STP State Protection 1 GigabitEthernet0/0/3 DESI FORWARDING NONE 1 GigabitEthernet0/0/4 DESI FORWARDING NONE 1 GigabitEthernet0/0/24 DESI FORWARDING NONE 1 Eth-Trunk1 DESI FORWARDING NONE[SW1]dis stp ins 2 bri MSTID Port Role STP State Protection 2 GigabitEthernet0/0/3 DESI FORWARDING NONE 2 GigabitEthernet0/0/4 DESI FORWARDING NONE 2 GigabitEthernet0/0/24 DESI FORWARDING NONE 2 Eth-Trunk1 DESI FORWARDING NONE
九、查看MSTP实例2的端口信息[SW2] dis stp ins 1 bri MSTID Port Role STP State Protection 1 GigabitEthernet0/0/3 ALTE DISCARDING NONE 1 GigabitEthernet0/0/4 MAST FORWARDING NONE[SW2]dis stp ins 2 bri MSTID Port Role STP State Protection 2 GigabitEthernet0/0/3 ALTE DISCARDING NONE 2 GigabitEthernet0/0/4 MAST FORWARDING NONE
注意VLAN信息和接口信息配置
观察被阻塞的端口信息,观察拓扑结构的变化