1.MSTP(多聚合树)能更灵巧地建立与管理工作相同的VLAN通讯;路由器是便携式STP机能的,杀青光致发光间接开启STP机能,促进作用:避免统计数据在互换互联网中无穷循环式进而造成互换互联网的失去知觉,路由器全数当机。(也是该台龙卷风)2.自然环境预备4台2层路由器2台四层路由器

51博客(51博客还在吗)-第1张

3.依照拓扑图实用性多聚合树,让SW1正式成为VLAN10,20的根茎,VLAN30,40的次根 让SW2正式成为VLAN30,40的根茎,VLAN10,20的次根 余下的信道做为存储4.实用性指示:SW1:[SW1]vlan batch 10 20 30 40 建立VLAN[SW1]port-group 1 步入组[SW1-port-group-1]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/5 步入已连续路由器,或拿掉 to 依次步入1和5路由器口[SW1-port-group-1]port link-type trunk[SW1-GigabitEthernet0/0/1]port link-type trunk[SW1-GigabitEthernet0/0/2]port link-type trunk[SW1-GigabitEthernet0/0/3]port link-type trunk[SW1-GigabitEthernet0/0/4]port link-type trunk[SW1-GigabitEthernet0/0/5]port link-type trunk[SW1-port-group-1]port trunk allow-pass vlan all[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all[SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan all[SW1-GigabitEthernet0/0/3]port trunk allow-pass vlan all[SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan all[SW1-GigabitEthernet0/0/5]port trunk allow-pass vlan all[SW1]stp region-configuration 步入stp实用性[SW1-mst-region]region-name heihei 英文名字[SW1-mst-region]instance 1 vlan 10 20 建立树1[SW1-mst-region]instance 2 vlan 30 40 建立树2[SW1-mst-region]active region-configuration 转化成[SW1]stp instance 1 root primary 主[SW1]stp instance 2 root secondary 次SW2:[SW2]vlan batch 10 20 30 40[SW2]port-group 1[SW2-port-group-1]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/5[SW2-port-group-1]port link-type trunk[SW2-GigabitEthernet0/0/1]port link-type trunk[SW2-GigabitEthernet0/0/2]port link-type trunk[SW2-GigabitEthernet0/0/3]port link-type trunk[SW2-GigabitEthernet0/0/4]port link-type trunk[SW2-GigabitEthernet0/0/5]port link-type trunk[SW2-port-group-1]port trunk allow-pass vlan all[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all[SW2-GigabitEthernet0/0/2]port trunk allow-pass vlan all[SW2-GigabitEthernet0/0/3]port trunk allow-pass vlan all[SW2-GigabitEthernet0/0/4]port trunk allow-pass vlan all[SW2-GigabitEthernet0/0/5]port trunk allow-pass vlan all[SW2]stp region-configuration[SW2-mst-region]region-name heihei[SW2-mst-region]instance 1 vlan 10 20[SW2-mst-region]instance 2 vlan 30 40[SW2-mst-region]active region-configuration[SW2]stp instance 1 root secondary[SW2]stp instance 2 root primarySW3:[SW3]vlan batch 10 20 30 40[SW3-port-group-1]group-member Ethernet 0/0/1 Ethernet 0/0/2[SW3-port-group-1]port link-type trunk[SW3-Ethernet0/0/1]port link-type trunk[SW3-Ethernet0/0/2]port link-type trunk[SW3-port-group-1]port trunk allow-pass vlan all[SW3-Ethernet0/0/1]port trunk allow-pass vlan all[SW3-Ethernet0/0/2]port trunk allow-pass vlan all[SW3]stp region-configuration[SW3-mst-region]region-name heihei[SW3-mst-region]instance 1 vlan 10 20[SW3-mst-region]instance 2 vlan 30 40[SW3-mst-region]active region-configurationSW4:[SW4]port-group 1[SW4-port-group-1]group-member Ethernet 0/0/1 Ethernet 0/0/2[SW-port-group-1]port link-type trunk[SW-Ethernet0/0/1]port link-type trunk[SW-Ethernet0/0/2]port link-type trunk[SW-port-group-1]port trunk allow-pass vlan all[SW4-Ethernet0/0/1]port trunk allow-pass vlan all[SW4-Ethernet0/0/2]port trunk allow-pass vlan all[SW4]vlan batch 10 20 30 40[SW4]stp region-configuration 步入[SW4-mst-region]region-name heihei[SW4-mst-region]instance 1 vlan 10 20[SW4-mst-region]instance 2 vlan 30 40[SW4-mst-region]active region-configurationSW5:[SW5]port-group 1[SW5-port-group-1]group-member Ethernet 0/0/1 e0/0/2[SW5-port-group-1]port link-type trunk[SW5-Ethernet0/0/1]port link-type trunk[SW5-Ethernet0/0/2]port link-type trunk[SW5-port-group-1]port trunk allow-pass vlan all[SW5-Ethernet0/0/1]port trunk allow-pass vlan all[SW5-Ethernet0/0/2]port trunk allow-pass vlan all[SW5]vlan batch 10 20 30 40[SW5]stp region-configuration[SW5-mst-region]region-name heihei[SW5-mst-region]instance 1 vlan 10 20[SW5-mst-region]instance 2 vlan 30 40[SW5-mst-region]active region-configurationSW6:[SW6]port-group 1[SW6-port-group-1]group-member e0/0/1 e0/0/2[SW6-port-group-1]port link-type trunk[SW6-Ethernet0/0/1]port link-type trunk[SW6-Ethernet0/0/2]port link-type trunk[SW6-port-group-1]port trunk allow-pass vlan all[SW6-Ethernet0/0/1]port trunk allow-pass vlan all[SW6-Ethernet0/0/2]port trunk allow-pass vlan all[SW6]vlan batch 10 20 30 40[SW6]stp region-configuration[SW6-mst-region]region-name heihei[SW6-mst-region]instance 1 vlan 10 20[SW6-mst-region]instance 2 vlan 30 40[SW6-mst-region]active region-configuration验证:结果:SW1是VLAN10和20的根茎,VLAN30和40的次根,能看出树2的1路由器有个ROOT,指的是根的方向,

51博客(51博客还在吗)-第2张

结果:SW2是VLAN30和40的根茎,VLAN10和20的次根,能看出树1的1路由器有个ROOT,指的是根的方向,

51博客(51博客还在吗)-第3张

下面查看一下第4个2层路由器的路由器状态:结果:能看出SW3上面的树1的1路由器指向根(ROOT),树1的2路由器是阻塞状态(ALTE);树2的2路由器指向根(ROOT),树2的1路由器是阻塞状态(ALTE)

51博客(51博客还在吗)-第4张

能看出SW4上面的树1的1路由器指向根(ROOT),树1的2路由器是阻塞状态(ALTE);树2的2路由器指向根(ROOT),树2的1路由器是阻塞状态(ALTE)

51博客(51博客还在吗)-第5张

能看出SW5上面的树1的1路由器指向根(ROOT),树1的2路由器是阻塞状态(ALTE);树2的2路由器指向根(ROOT),树2的1路由器是阻塞状态(ALTE)

51博客(51博客还在吗)-第6张

能看出SW6上面的树1的1路由器指向根(ROOT),树1的2路由器是阻塞状态(ALTE);树2的2路由器指向根(ROOT),树2的1路由器是阻塞状态(ALTE)

51博客(51博客还在吗)-第7张