1.R2配置VRRP
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]vrrp vrid 1 virtual-ip 23.1.1.254
[R2-GigabitEthernet0/0/1]vrrp vrid 1 priority 120
[R2-GigabitEthernet0/0/1]vrrp vrid 2 virtual-ip 23.1.1.253
[R2-GigabitEthernet0/0/1]vrrp vrid 2 priority 100
2.R3配置VRRP
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 23.1.1.254
[R3-GigabitEthernet0/0/0]vrrp vrid 1 priority 100
[R3-GigabitEthernet0/0/0]vrrp vrid 2 virtual-ip 23.1.1.253
[R3-GigabitEthernet0/0/0]vrrp vrid 2 priority 120
3.配置静态路由
[R1]IP route-static 23.1.1.0 8 12.1.1.2
[R1]IP route-static 23.1.1.0 8 13.1.1.3
[R2]ip route-static 1.1.1.1 32 12.1.1.1
[R3]IP route-static 1.1.1.1 32 13.1.1.1
4.PC1路由跟踪
PC>tracert 1.1.1.1
traceroute to 1.1.1.1, 8 hops max
(ICMP), press Ctrl+C to stop
1 23.1.1.254 78 ms 47 ms 31 ms
2 *1.1.1.1 62 ms 31 ms
5.PC2路由跟踪
PC>tracert 1.1.1.1
traceroute to 1.1.1.1, 8 hops max
(ICMP), press Ctrl+C to stop
1 23.1.1.253 93 ms 32 ms 46 ms
2 * *1.1.1.1 47 ms
6.端口R3的G0/0/0口,观察PC2连通性测试和路由跟踪
[R3]interface GigabitEthernet 0/0/0
PC2>ping 1.1.1.1 -t
From 1.1.1.1: bytes=32 seq=52 ttl=254 time=31 ms
From 1.1.1.1: bytes=32 seq=53 ttl=254 time=47 ms
Request timeout!
Request timeout!
From 1.1.1.1: bytes=32 seq=56 ttl=254 time=31 ms
From 1.1.1.1: bytes=32 seq=57 ttl=254 time=31 ms
PC2>tracert 1.1.1.1
traceroute to 1.1.1.1, 8 hops max
(ICMP), press Ctrl+C to stop
1 23.1.1.254 31 ms 47 ms 31 ms
2 1.1.1.1 47 ms 47 ms 47 ms
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容