1. 实验目的
- 熟悉单臂回声的应用场景
- 掌握单臂回声的配置方法
2. 实验拓扑
想要华为数通配套实验拓扑和配置笔记的朋友们点赞+关注,评论区留下邮箱发给你
3. 实验步骤
1)配置IP地址
AR1的配置
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname AR1
[AR1]interface g0/0/0
[AR1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
[AR1-GigabitEthernet0/0/0]quit
[AR1]interface g0/0/1
[AR1-GigabitEthernet0/0/1]ip address 13.1.1.1 24
[AR1-GigabitEthernet0/0/1]quit
[AR1]interface LoopBack 0
[AR1-LoopBack0]ip address 1.1.1.1 32
[AR1-LoopBack0]quit
AR2的配置
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname AR2
[AR2]interface g0/0/1
[AR2-GigabitEthernet0/0/1]ip address 12.1.1.2 24
[AR2-GigabitEthernet0/0/1]quit
[AR2]interface LoopBack 0
[AR2-LoopBack0]ip address 8.8.8.8 32
[AR2-LoopBack0]quit
AR3的配置
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname AR3
[AR3]interface g0/0/2
[AR3-GigabitEthernet0/0/2]ip address 13.1.1.3 24
[AR3-GigabitEthernet0/0/2]quit
[AR3]interface LoopBack 0
[AR3-LoopBack0]ip address 8.8.8.8 32
[AR3-LoopBack0]quit
2)单臂回声配置
[AR1]bfd
[AR1-bfd]quit
[AR1]bfd joinlabs bind peer-ip 12.1.1.2 interface g0/0/0 one-arm-echo
[AR1-bfd-session-joinlabs]discriminator local 100
[AR1-bfd-session-joinlabs]min-echo-rx-interval 300
[AR1-bfd-session-joinlabs]commit
[AR1-bfd-session-joinlabs]quit
3)配置默认路由
AR1的配置
[AR1]ip route-static 0.0.0.0 0 12.1.1.2 track bfd-session joinlabs
[AR1]ip route-static 0.0.0.0 0 13.1.1.3 preference 100
AR2的配置
[AR2]ip route-static 1.1.1.1 32 12.1.1.1
AR3的配置
[AR3]ip route-static 1.1.1.1 32 13.1.1.1
4)实验调试
在AR1上Tracert 8.8.8.8
<AR1>tracert -a 1.1.1.1 8.8.8.8
traceroute to 8.8.8.8(8.8.8.8), max hops: 30 ,packet length: 40,press CTRL_C to break
1 12.1.1.2 40 ms 40 ms 50 ms
通过以上输出可以看到1.1.1.1去访问8.8.8.8走的AR2
在AR1上查看bfd的详细信息
<AR1>display bfd session all verbose
----------------------------------------------------------------------------
Session MIndex : 512 (One Hop) State : Up Name : joinlabs
----------------------------------------------------------------------------
Local Discriminator : 100 Remote Discriminator : -
Session Detect Mode : Asynchronous One-arm-echo Mode
BFD Bind Type : Interface(GigabitEthernet0/0/0)
Bind Session Type : Static
Bind Peer IP Address : 12.1.1.2
NextHop Ip Address : 12.1.1.2
Bind Interface : GigabitEthernet0/0/0
FSM Board Id : 0 TOS-EXP : 7
Echo Rx Interval (ms) : 300
Actual Tx Interval (ms): 300 Actual Rx Interval (ms): 300
Local Detect Multi : 3 Detect Interval (ms) : 900
Echo Passive : Disable Acl Number : -
Destination Port : 3784 TTL : 255
Proc Interface Status : Disable Process PST : Disable
WTR Interval (ms) : -
Active Multi : 3
Last Local Diagnostic : Control Detection Time Expired
Bind Application : No Application Bind
Session TX TmrID : - Session Detect TmrID : -
Session Init TmrID : - Session WTR TmrID : -
Session Echo Tx TmrID : -
PDT Index : FSM-0 | RCV-0 | IF-0 | TOKEN-0
Session Description : -
----------------------------------------------------------------------------
Total UP/DOWN Session Number : 1/0
把AR2上的g0/0/1阻塞掉,再次在AR1上Tracert 8.8.8.8
[AR2]interface g0/0/1
[AR2-GigabitEthernet0/0/1]shutdown
[AR2-GigabitEthernet0/0/1]quit
<AR1>tracert -a 1.1.1.1 8.8.8.8
traceroute to 8.8.8.8(8.8.8.8), max hops: 30 ,packet length: 40,press CTRL_C to break
1 13.1.1.3 50 ms 40 ms 50 ms
想要华为数通配套实验拓扑和配置笔记的朋友们点赞+关注,评论区留下邮箱发给你