1、以太网端口聚合+RSTP配置案例 以太网端口聚合+RSTP配置拓扑图功能要求:通过在网络中配置RSTP功能,实现消除网络环路的目的,当RSTP的根桥DOWN掉后,可以通过非根桥正常通信,达到根桥和备用根桥的切换,某个链路DOWN后,可以通过将某个阻塞端口恢复为根端口或转发端口,以实现正常的数据通信,当聚合链路中的某个链路DOWN掉后,不会影响正常的通信配置过程:S5700-LSW1HuaweiDIS CU#sysname Huawei#vlan batch 10 20#stp mode rstp#cluster enablentdp enablendp enable#drop illegal-
2、mac alarm#diffserv domain default#drop-profile default#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http #interface Vlanif1#interface MEth0/0/1#interfa
3、ce GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20#interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 20#interface GigabitEthernet0/0/3 port link-type access port default vlan 10 stp disable#interface GigabitEthernet0/0/4 port link-type acces
4、s port default vlan 20 stp disable#interface GigabitEthernet0/0/5 #interface GigabitEthernet0/0/6#interface GigabitEthernet0/0/7#interface GigabitEthernet0/0/8#interface GigabitEthernet0/0/9#interface GigabitEthernet0/0/10#interface GigabitEthernet0/0/11#interface GigabitEthernet0/0/12#interface Gig
5、abitEthernet0/0/13#interface GigabitEthernet0/0/14#interface GigabitEthernet0/0/15#interface GigabitEthernet0/0/16#interface GigabitEthernet0/0/17 #interface GigabitEthernet0/0/18#interface GigabitEthernet0/0/19#interface GigabitEthernet0/0/20#interface GigabitEthernet0/0/21#interface GigabitEtherne
6、t0/0/22#interface GigabitEthernet0/0/23#interface GigabitEthernet0/0/24#interface NULL0#user-interface con 0user-interface vty 0 4#ReturnS5700-LSW2#sysname Huawei#vlan batch 10 20#stp mode rstpstp instance 0 root primary#cluster enablentdp enablendp enable#drop illegal-mac alarm#diffserv domain defa
7、ult#drop-profile default#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http#interface Vlanif1#interface Vlanif10 ip address 10.0.0.1 255.255.255.0#inter
8、face Vlanif20 ip address 20.0.0.1 255.255.255.0#interface MEth0/0/1#interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 10 20#interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20#interface GigabitEthernet0/0/2#interface GigabitEthernet0/0/3 eth-trunk
9、1#interface GigabitEthernet0/0/4#interface GigabitEthernet0/0/5 eth-trunk 1#interface GigabitEthernet0/0/6#interface GigabitEthernet0/0/7#interface GigabitEthernet0/0/8#interface GigabitEthernet0/0/9#interface GigabitEthernet0/0/10#interface GigabitEthernet0/0/11#interface GigabitEthernet0/0/12#inte
10、rface GigabitEthernet0/0/13#interface GigabitEthernet0/0/14 #interface GigabitEthernet0/0/15#interface GigabitEthernet0/0/16#interface GigabitEthernet0/0/17#interface GigabitEthernet0/0/18#interface GigabitEthernet0/0/19#interface GigabitEthernet0/0/20#interface GigabitEthernet0/0/21#interface Gigab
11、itEthernet0/0/22#interface GigabitEthernet0/0/23#interface GigabitEthernet0/0/24#interface NULL0#user-interface con 0 user-interface vty 0 4#ReturnS5700-LSW3Huaweidis cu#sysname Huawei#vlan batch 10 20#stp mode rstpstp instance 0 root secondary#cluster enablentdp enablendp enable#drop illegal-mac al
12、arm#diffserv domain default#drop-profile default#aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http#interface Vlanif1#interface Vlanif10 ip address 10.0
13、.0.3 255.255.255.0#interface Vlanif20 ip address 20.0.0.3 255.255.255.0#interface MEth0/0/1#interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 10 20#interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 20#interface Gigabit
14、Ethernet0/0/3 eth-trunk 1 #interface GigabitEthernet0/0/4#interface GigabitEthernet0/0/5 eth-trunk 1#interface GigabitEthernet0/0/6#interface GigabitEthernet0/0/7#interface GigabitEthernet0/0/8#interface GigabitEthernet0/0/9#interface GigabitEthernet0/0/10#interface GigabitEthernet0/0/11#interface G
15、igabitEthernet0/0/12#interface GigabitEthernet0/0/13#interface GigabitEthernet0/0/14# interface GigabitEthernet0/0/15#interface GigabitEthernet0/0/16#interface GigabitEthernet0/0/17#interface GigabitEthernet0/0/18#interface GigabitEthernet0/0/19#interface GigabitEthernet0/0/20#interface GigabitEther
16、net0/0/21#interface GigabitEthernet0/0/22#interface GigabitEthernet0/0/23#interface GigabitEthernet0/0/24#interface NULL0#user-interface con 0user-interface vty 0 4 #Return测试:把S5700-LSW2上的端口G0/0/3 DOWN掉后,用户可以正常通信Huaweidis eth-trunk 1Eth-Trunk1s state information is:WorkingMode: NORMAL Hash arithmeti
17、c: According to SIP-XOR-DIP Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 1 -PortName Status Weight GigabitEthernet0/0/3 Down 1 GigabitEthernet0/0/5 Up 1 在S5700-LSW1上将根端口g0/0/1 DOWN后,阻塞端口 g0/0/2正常切换成根端口接受和发送报文,Huaweidis stp Jan 3 2013
18、13:23:07-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 6, the change loop count is 0, and the maximum number of records is 4095.bri MSTID Port Role STP State Protection 0 GigabitEthernet0/0/2 ROOT FORWARDING NONE客户端也可以正常访问S5700-LSW2上的10.0.0.1和S5700-LSW3上的10.0.0.3在客户端2上也可以正常访问S5700-LSW2和S5700-LSW3上的端口地址
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1