【文章內(nèi)容簡介】
17, VLAN0025VLAN0026, VLAN0031, VLAN0050, VLAN0056VLAN0057 VLAN0064VLAN0065, VLAN0068, VLAN0100, VLAN02004506A將所有vlan的spanningtree的優(yōu)先級配置成最高,由4506A作為root。4506A將決定使用那條連路。4506Bspanningtree vlan 14,710,1415,17,2526,31,50,5657,6465,68 priority 8192spanningtree vlan 100,200 priority 81924506B將所有vlan的spanningtree的優(yōu)先級低于4506A,做為備root216。 端口配置配置端口為二層trunk模式、access模式和三層接口interface GigabitEthernet1/1 switchport trunk encapsulation dot1q switchport mode trunk!interface GigabitEthernet6/11 switchport access vlan 10 switchport mode accessinterface GigabitEthernet2/1 no switchport ip address ! 216。 建立VLANRouter16L3 (config)vlan 100Router16L3 (config)vlan 200216。 VTP配置所有交換機配置vtp為transparent模式Router16L3conf tRouter16L3 (config)vtp mode transparentSetting device to VTP TRANSPARENT mode216。 4506 HSRP4506A、4506B中的vlan 1,2,3,4,7,8,9,50配置了HSRP,以4506A做為主IP網(wǎng)關(guān),4506B做為備份IP網(wǎng)關(guān)。interface Vlan1 description for manage switch ip address ip accessgroup 120 out ip helperaddress no ip redirects ip ospf network broadcast standby 1 ip //虛擬IP standby 1 priority 150 //HSRP優(yōu)先級 standby 1 preempt!Router16L3show standby bri P indicates configured to preempt.Interface Grp Prio P State Active Standby Virtual IP Vl1 1 150 P Active local Vl2 2 150 P Active local Vl3 3 150 P Active local Vl4 4 150 P Active local Vl7 7 150 P Active local Vl8 8 150 P Active local Vl9 9 150 P Active local Vl50 50 150 P Active local Router16L3可以看到4506A上HSRP的狀態(tài)。所有vlan都是active4506Bshow stan bri P indicates configured to preempt. |Interface Grp Prio P State Active Standby Virtual IP Vl1 1 90 P Standby local Vl2 2 90 P Standby local Vl3 3 90 P Standby local Vl4 4 90 P Standby local Vl7 7 90 P Standby local Vl8 8 90 P Standby local Vl9 9 90 P Standby local Vl50 50 90 P Standby local 4506B在4506B上看到所有的vlan都是standby,只有在4506A的連路出現(xiàn)問題時,4506B會接管這些vlan ,從邏輯上保證了雙連路的有效。216。 4506路由4506A增加了vlan 101 vlan 300做為4506A與3750和4506B的互連vlan,起用ospf 協(xié)議。interface Vlan101 ip address !interface Vlan300 ip address router ospf 100network area 0 network area 0Router16L3show ip ospf neiNeighbor ID Pri State Dead Time Address Interface 1 FULL/BDR 00:00:32 Vlan