实验要求   1、R1创建环回口,模拟外网   2、R2,R3使用VRRP技术   3、路由器之间使用EIGRP路由协议  


  实验拓扑  


实验配置     R1(config)#interface loopback 0 R1(config-if)#ip address 1.1.1.1 255.255.255.0 R1(config-if)#int e0/0 R1(config-if)#ip address 12.1.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#int e0/1 R1(config-if)#ip address 13.1.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config)#router eigrp 100 R1(config-router)#no auto-summary R1(config-router)#network 1.1.1.0 0.0.0.255 R1(config-router)#network 12.1.1.0 0.0.0.255 R1(config-router)#network 13.1.1.0 0.0.0.255 R1开启环回口以及直连线路并配置IP,进入eigrp关闭自动汇总,宣告自己的直连路由条目     R2(config)#int e0/1 R2(config-if)#ip address 12.1.1.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#int e0/0 R2(config-if)#ip add 100.1.1.2 255.255.255.0 R2(config-if)#no shut R2(config-if)#vrrp 100 ip 100.1.1.100 R2(config-if)#vrrp 100 priority 110 R2(config-if)#vrrp 100 track 10 decrement 20 R2(config-if)#exit R2(config)#track 10 interface ethernet 0/1 line-protocol R2(config)#router eigrp 100 R2(config-router)#no auto-summary R2(config-router)#network 1.1.1.0 0.0.0.255 R2(config-router)#network 12.1.1.0 0.0.0.255

R2配置为VRRP主用,优先级设置为110(默认为100), 并且跟踪检测e0/1接口,若出现问题则优先级降低20。     R3(config)#int e0/1 R3(config-if)#ip add 13.1.1.3 255.255.255.0 R3(config-if)#no shut R3(config-if)#int e0/0 R3(config-if)#ip add 100.1.1.3 255.255.255.0 R3(config-if)#no shut R3(config-if)#vrrp 100 ip 100.1.1.100 R3(config)#router eigrp 100 R3(config-router)#no auto-summary R3(config-router)#network 13.1.1.0 0.0.0.255 R3(config-router)#network 100.1.1.0 0.0.0.255 R3为VRRP备用,设置虚拟网关即可。    

为了验证使用PC trace 1.1.1.1 来看具体路径 PC1> ip 100.1.1.1 255.255.255.0 100.1.1.100 Checking for duplicate address... PC1 : 100.1.1.1 255.255.255.0 gateway 100.1.1.100

PC1> trace 1.1.1.1 trace to 1.1.1.1, 8 hops max, press Ctrl+C to stop 1 100.1.1.2 0.955 ms 0.000 ms 1.958 ms 2 12.1.1.1 1.956 ms 发现是可以通的 关闭R2的e1/0试试 PC1> trace 1.1.1.1 trace to 1.1.1.1, 8 hops max, press Ctrl+C to stop 1 100.1.1.3 0.908 ms 1.899 ms 1.007 ms 2 13.1.1.1 1.029 ms 试验成功