【正文】
! hostname SwitchA rulemap l3 1to2 flowaction 1to2 deny acl 1to2 1to2 1to2 accessgroup 1to2 spanningtree enable linkaggregation Ether0/1 to Ether0/2 ingressegress linkaggregation Ether0/9 to Ether0/10 ingressegress gvrp enable ! interface Aux0/0 ! vlan 1 ! vlan 2 ! vlan 3 ! vlan 4 ! interface Ether0/1 作者: admin 發(fā)布時(shí)間: 2020418 9:51:18 trunk all gvrp enable ! interface Ether0/10 trunk all gvrp enable ! interface Ether0/11 ??????.. interface Ether0/2 trunk all gvrp enable ! ??? ?? ! interface Ether0/9 trunk all gvrp enable ! interface NULL0 ! interface VLANInterface1 ip address ! interface VLANInterface2 ip address ! interface VLANInterface3 ip address ! interface VLANInterface4 ip address ! ! router ospf work area work area work area work area ! ! ! line aux 0 no login line vty 0 4 ! end RouterAshow runningconfig Now create configuration... Current configuration ! hostname RouterA ! interface Ether0 ip address ip ospf enable area ! interface Serial0 encapsulation ppp ! interface Serial1 encapsulation ppp ! interface Serial2 flowcontrol normal async mode dedicated encapsulation ppp ! exit router ospf enable ! end RouterAshow ip route Routing Tables: Destination/Mask Proto Pref Metric Nexthop Interface 在每臺(tái)交換機(jī)和 RouterA 上配置 enable password 和 line login password,觀察他們能否相互 Ping 通,并試著從 PC 機(jī)和交換機(jī)上 tel 到交換機(jī)或 RouterA 上。復(fù)習(xí) GVRP 原理并說(shuō)明原因。 以下是 SwitchA( S3526)的生成樹狀態(tài): SwitchAshow spanningtree statistics e0/1 The bridge is executing the IEEE Rapid Spanning Tree protocol The bridge has priority 32768, MAC address: Configured Hello Time 2, Max Age 20, Forward Delay 15 Root Bridge has priority 32768, MAC address Path cost to root bridge is 0 Port 1 (Ether0/1) of bridge is Forwarding Spanning tree protocol is enabled The port is a DesignatedPort Port path cost 180 Port priority 128 Designated bridge has priority 32768, MAC address Configured as a nonedge port Connected to a pointtopoint LAN segment Maximum transmission limit is 3 BPDUs per hello time Times: Hello Time 2, Max Age 20 Forward Delay 15, Message Age 0 sent BPDU: 8584 TCN: 0, RST: 8584, Config BPDU: 0 received BPDU: 7657 TCN: 0, RST: 7657, Config BPDU: 0 SwitchA show spanningtree statistics e0/9 The bridge is executing the IEEE Rapid Spanning Tree protocol The bridge has priority 32768, MAC address: Configured Hello Time 2, Max Age 20, Forward Delay 15 Root Bridge has priority 32768, MAC address Path cost to root bridge is 0 Port 9 (Ether0/9) of bridge is Forwarding Spanning tree protocol is enabled The port is a DesignatedPort Port path cost 180 Port priority 128 Designated bridge has priority 32768, MAC address Configured as a nonedge port Connected to a pointtopoint LAN segment Maximum transmission limit is 3 BPDUs per hello time Times: Hello Time 2, Max Age 20 Forward Delay 15, Message Age 0 sent BPDU: 6563 TCN: 0, RST: 6563, Config BPDU: 0 received BPDU: 5377361 TCN: 0, RST: 5377361, Config BPDU: 0 作者: admin 發(fā)布時(shí)間: 2020418 9:51:05 以下是 SwitchB( S3026)的生成樹狀態(tài): SwitchBenable SwitchB show spanningtree interface e0/1 The bridge is executing the IEEE Rapid Spanning Tree protocol The bridge has priority 32768, MAC address: Configured Hello Time 2, Max Age 20, Forward Delay 15 Root Bridge has priority 32768, MAC address Path cost to root bridge is 180 Port 1 (Ether0/1) of bridge is Forwarding Spanning tree protocol is enabled The port is a RootPort Port path cost 180 Port priority 128 Designated bridge has priority 32768, MAC address Configured as a nonedge port Connected to a pointtopoint LAN segment Maximum transmission limit is 3 BPDUs per hello time Times: Hello Time 2, Max Age 20 Forward Delay 15, Message Age 0 sent BPDU: 9 TCN: 0, RST: 9, Config BPDU: 0 received BPDU: 3903 TCN: 0, RST: 3903, Config BPDU: 0 你可以通過(guò)觀察所有這些端口的信息來(lái)描述這棵生成樹。 實(shí)驗(yàn)環(huán)境 Quidway S3026 以太網(wǎng)交換機(jī) 4 臺(tái), Quidway S3526 以太網(wǎng)交換機(jī) 1 臺(tái) Quidway 2501 路由器 1 臺(tái), PC 機(jī)