HSRP实现链路冗余实验
这是我用小黄帽做得实验,实验拓扑图如下:下面是配置(以上设备均使用的是思科的3640的IOS):R1#show running-configBuilding configuration...Current configuration : 943 bytesversion 12.4service timestamps debug datetimemsecservice timestamps log datetimemsecno service password-encryptionhostname R1boot-start-markerboot-end-markernoaaa new-modelmemory-sizeiomem 5ipcefnoip domain lookup interface FastEthernet0/0ip address 192.168.100.1 255.255.255.0duplex autospeed auto interface FastEthernet1/0ip address 192.168.0.1 255.255.255.0duplex autospeed auto interface FastEthernet2/0ip address 192.168.1.1 255.255.255.0shutdownduplex autospeed autoip http servernoip http secure-serverip route 192.168.2.0 255.255.255.0192.168.0.2 50ip route 192.168.2.0 255.255.255.0192.168.1.2 60ip route 192.168.3.0 255.255.255.0192.168.1.2 50ip route 192.168.3.0 255.255.255.0192.168.0.2 60 control-planeline con 0exec-timeout 0 0logging synchronousline aux 0linevty 0 4 endSW1#show running-configBuilding configuration...
Current configuration : 1500 bytesversion 12.4service timestamps debug datetimemsecservice timestamps log datetimemsecno service password-encryptionhostname SW1boot-start-markerboot-end-markernoaaa new-modelmemory-sizeiomem 5ipcefnoip domain lookupspanning-treevlan 2 priority 8192spanning-treevlan 3 priority 16384interface FastEthernet0/0noswitchportip address 192.168.0.2 255.255.255.0interface FastEthernet0/1interface FastEthernet0/2interface FastEthernet0/3interface FastEthernet0/4interface FastEthernet0/5interface FastEthernet0/6interface FastEthernet0/7interface FastEthernet0/8interface FastEthernet0/9interface FastEthernet0/10interface FastEthernet0/11interface FastEthernet0/12interface FastEthernet0/13interface FastEthernet0/14switchport mode trunkinterface FastEthernet0/15switchport mode trunk interface Vlan1noip address interface Vlan2ip address 192.168.2.1 255.255.255.0standby 2 ip 192.168.2.254standby 2 priority 200standby 2 preemptstandby 2 track FastEthernet0/0 100standby 2 track FastEthernet0/14 100 interface Vlan3ip address 192.168.3.1 255.255.255.0standby 3 ip 192.168.3.254standby 3 priority 150standby 3 preempt ip http servernoip http secure-server ip route 192.168.100.0 255.255.255.0192.168.0.1control-planeline con 0exec-timeout 0 0logging synchronousline aux 0linevty 0 4 endSW2#show running-configBuilding configuration...Current configuration : 1510 bytesversion 12.4service timestamps debug datetimemsecservice timestamps log datetimemsecno service password-encryptionhostname SW2boot-start-markerboot-end-markernoaaa new-modelmemory-sizeiomem 5ipcefnoip domain lookupspanning-treevlan 2 priority 16384spanning-treevlan 3 priority 8192interface FastEthernet0/0noswitchportip address 192.168.1.2 255.255.255.0shutdowninterface FastEthernet0/1interface FastEthernet0/2interface FastEthernet0/3interface FastEthernet0/4interface FastEthernet0/5interface FastEthernet0/6interface FastEthernet0/7interface FastEthernet0/8interface FastEthernet0/9interface FastEthernet0/10interface FastEthernet0/11interface FastEthernet0/12interface FastEthernet0/13interface FastEthernet0/14switchport mode trunkinterface FastEthernet0/15switchport mode trunkinterface Vlan1noip addressinterface Vlan2ip address 192.168.2.2 255.255.255.0standby 2 ip 192.168.2.254standby 2 priority 150standby 2 preemptinterface Vlan3ip address 192.168.3.2 255.255.255.0standby 3 ip 192.168.3.254standby 3 priority 200standby 3 preemptstandby 3 track FastEthernet0/0 100standby 3 track FastEthernet0/14 100ip http servernoip http secure-serverip route 192.168.100.0 255.255.255.0192.168.1.1control-planeline con 0exec-timeout 0 0logging synchronousline aux 0linevty 0 4 end
SW3#show running-configBuilding configuration...Current configuration : 1080 bytesversion 12.4service timestamps debug datetimemsecservice timestamps log datetimemsecno service password-encryptionhostname SW3boot-start-markerboot-end-markernoaaa new-modelmemory-sizeiomem 5noip routingnoipcefnoip domain lookupinterface FastEthernet0/0switchport access vlan 2interface FastEthernet0/1switchport access vlan 3interface FastEthernet0/2interface FastEthernet0/3interface FastEthernet0/4interface FastEthernet0/5interface FastEthernet0/6interface FastEthernet0/7interface FastEthernet0/8interface FastEthernet0/9interface FastEthernet0/10interface FastEthernet0/11interface FastEthernet0/12interface FastEthernet0/13interface FastEthernet0/14switchport mode trunkinterface FastEthernet0/15switchport mode trunkinterface Vlan1noip addressnoip route-cacheip http servernoip http secure-servercontrol-planeline con 0exec-timeout 0 0logging synchronousline aux 0linevty 0 4end
PC1#show running-configBuilding configuration...Current configuration : 620 bytesversion 12.4service timestamps debug datetimemsecservice timestamps log datetimemsecno service password-encryptionhostname PC1boot-start-markerboot-end-markernoaaa new-modelmemory-sizeiomem 5noip routingnoipcefnoip domain lookupinterface FastEthernet0/0ip address 192.168.2.10 255.255.255.0noip route-cacheduplex autospeed autoip default-gateway 192.168.2.254ip http servernoip http secure-servercontrol-planeline con 0exec-timeout 0 0logging synchronousline aux 0linevty 0 4end
PC2#show running-configBuilding configuration...Current configuration : 620 bytesversion 12.4service timestamps debug datetimemsecservice timestamps log datetimemsecno service password-encryptionhostname PC2boot-start-markerboot-end-markernoaaa new-modelmemory-sizeiomem 5noip routingnoipcefnoip domain lookupinterface FastEthernet0/0ip address 192.168.3.10 255.255.255.0noip route-cacheduplex autospeed auto ip default-gateway 192.168.3.254ip http servernoip http secure-server control-planeline con 0exec-timeout 0 0logging synchronousline aux 0linevty 0 4end
PC3#show running-configBuilding configuration...Current configuration : 621 bytesversion 12.4service timestamps debug datetimemsecservice timestamps log datetimemsecno service password-encryptionhostname PC3boot-start-markerboot-end-markernoaaa new-modelmemory-sizeiomem 5noip routingnoipcefnoip domain lookupinterface FastEthernet0/0ip address 192.168.100.2 255.255.255.0noip route-cacheduplex autospeed autoip default-gateway 192.168.100.1ip http servernoip http secure-servercontrol-planeline con 0exec-timeout 0 0logging synchronousline aux 0linevty 0 4end下面是配置后的实验效果:
在用PC1 PING PC3 1000次时,过一会把SW1的f0/0端口和R1的f1/0端口DOWN时,出现如下现象:在用PC2 PING PC3 1000次时,过一会把SW2的f0/0端口和R1的f2/0端口DOWN时,出现如下现象:以上两个图很容易看到HSRP的运行效果。
走过了年少,脚起了水泡 如果有一双眼睛陪我一同哭泣,就值得我为生命受苦。 有事秘书干,没事干秘书! 找到好贴不容易,我顶你了,谢了 为中华而努力读书!一包中华好多钱啊~~~ 不知该说些什么。。。。。。就是谢谢
页:
[1]