一、实验拓扑实验拓扑比较容易理解,一主一备两条广域网链路,连接两台PC
二、基础实验配置R1的基础配置
# interface Vlanif1 ip address 192.168.10.1 255.255.255.0 # interface GigabitEthernet0/0/0 ip address 12.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 102.1.1.1 255.255.255.0 # ip route-static 192.168.20.0 255.255.255.0 102.1.1.2 ip route-static 192.168.20.0 255.255.255.0 12.1.1.2 preference 100 # |
# interface Vlanif1 ip address 192.168.20.1 255.255.255.0 # interface GigabitEthernet0/0/0 ip address 12.1.1.2 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 102.1.1.2 255.255.255.0 # ip route-static 192.168.10.0 255.255.255.0 102.1.1.1 ip route-static 192.168.10.0 255.255.255.0 12.1.1.1 preference 100 # |
PC>ping 192.168.20.20 Ping 192.168.20.20: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout! --- 192.168.20.20 ping statistics --- 5 packet(s) transmitted 0 packet(s) received 100.00% packet loss |
bfd bfd manual001 bind peer-ip 102.1.1.2 source-ip 102.1.1.1 discriminator local 100 discriminator remote 200 min-tx-interval 500 min-rx-interval 500 commit |
bfd bfd manual001 bind peer-ip 102.1.1.1 source-ip 102.1.1.2 discriminator local 200 discriminator remote 100 min-tx-interval 500 min-rx-interval 500 commit |
[AR2]dis bfd session all -------------------------------------------------------------------------------- Local Remote PeerIpAddr State Type InterfaceName -------------------------------------------------------------------------------- 200 100 102.1.1.1 Up S_IP_PEER - -------------------------------------------------------------------------------- Total UP/DOWN Session Number : 1/0 |
bfd bfd testauto bind peer-ip 102.1.1.2 source-ip 102.1.1.1 auto min-tx-interval 500 min-rx-interval 500 commit |
bfd bfd testauto bind peer-ip 102.1.1.1 source-ip 102.1.1.2 auto min-tx-interval 500 min-rx-interval 500 commit |
[AR2]dis bfd session dynamic -------------------------------------------------------------------------------- Local Remote PeerIpAddr State Type InterfaceName -------------------------------------------------------------------------------- 8193 8192 102.1.1.1 Up S_AUTO_PEER - -------------------------------------------------------------------------------- Total UP/DOWN Session Number : 1/0 |
[AR1]ip route-static 192.168.20.0 24 102.1.1.2 track bfd-session manual001 |
[AR2]ip route-static 192.168.10.0 24 102.1.1.1 track bfd-session manual001 |
PC>ping 192.168.20.20 -c 20Ping 192.168.20.20: 32 data bytes, Press Ctrl_C to break From 192.168.20.20: bytes=32 seq=1 ttl=126 time=31 ms From 192.168.20.20: bytes=32 seq=2 ttl=126 time=16 ms From 192.168.20.20: bytes=32 seq=3 ttl=126 time=15 ms From 192.168.20.20: bytes=32 seq=4 ttl=126 time=15 ms From 192.168.20.20: bytes=32 seq=5 ttl=126 time=15 ms From 192.168.20.20: bytes=32 seq=6 ttl=126 time=15 ms Request timeout! From 192.168.20.20: bytes=32 seq=8 ttl=126 time=31 ms From 192.168.20.20: bytes=32 seq=9 ttl=126 time=16 ms From 192.168.20.20: bytes=32 seq=10 ttl=126 time=16 ms |
[AR1]dis ip routing-table protocol static Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Public routing table : Static Destinations : 1 Routes : 2 Configured Routes : 2 Static routing table status : <Active> Destinations : 1 Routes : 1 Destination/Mask Proto Pre Cost Flags NextHop Interface 192.168.20.0/24 Static 100 0 RD 12.1.1.2 GigabitEthernet0 /0/0 Static routing table status : <Inactive> Destinations : 1 Routes : 1 Destination/Mask Proto Pre Cost Flags NextHop Interface 192.168.20.0/24 Static 60 0 R 102.1.1.2 GigabitEthernet0 /0/1 [AR1] |
京公网安备11010602022021 京ICP备11016550号-7号 24小时客服QQ 504927 客服微信 504927
Copyright © 2010-2025 北京世博云创科技有限公司 《中华人民共和国增值电信业务经营许可证 B1-20161178》
想了解更多的我们
关注我们的微信吧!