玩转华为ENSP模拟器系列 | 配置静态BFD for IS-IS特性示例
2023-09-14 09:09:06 时间
素材来源:华为路由器配置指南
一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!
附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全
目标
介绍静态BFD for IS-IS的配置过程,包括配置BFD参数和使能静态BFD。
组网需求
DeviceA和DeviceB之间采用二层交换机相连。
DeviceA、DeviceB和DeviceC之间运行IS-IS。
使用BFD检测DeviceA和DeviceB的IS-IS邻居关系。当DeviceA和DeviceB之间的链路发生故障时,BFD能够快速检测到故障并通告给IS-IS协议。
配置思路
- 在各路由器上使能IS-IS基本功能。
- 在DeviceA和DeviceB上使能BFD检测机制。
操作步骤
- 配置各路由器接口的IP地址(略)
- 配置IS-IS基本功能
配置DeviceA。
DeviceA:
isis 1
is-level level-2
network-entity aa.1111.1111.1111.00
interface Ethernet1/0/0
isis enable 1
配置DeviceB。
DeviceB:
isis 1
is-level level-2
network-entity aa.2222.2222.2222.00
interface Ethernet1/0/0
isis enable 1
interface Ethernet1/0/1
isis enable 1
配置DeviceC。
DeviceC:
isis 1
is-level level-2
network-entity aa.3333.3333.3333.00
interface Ethernet1/0/0
isis enable 1
配置完成后,可以看到DeviceA与DeviceB建立了邻居关系。
[~DeviceA]dis isis peer
Peer information for ISIS(1)
System Id Interface Circuit Id State HoldTime Type PRI
--------------------------------------------------------------------------------
2222.2222.2222 Eth1/0/0 2222.2222.2222.02 Up 9s L2 64
Total Peer(s): 1
[~DeviceA]
DeviceA的IS-IS路由表中有去往DeviceB和DeviceC的表项。
[~DeviceA]dis isis route
Route information for ISIS(1)
-----------------------------
ISIS(1) Level-2 Forwarding Table
--------------------------------
IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags
-------------------------------------------------------------------------------
10.1.1.0/24 10 NULL Eth1/0/0 Direct D/-/L/-
10.2.1.0/24 20 NULL Eth1/0/0 10.1.1.2 A/-/-/-
Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
U-Up/Down Bit Set, LP-Local Prefix-Sid
[~DeviceA]
- 配置BFD
在DeviceA上使能BFD,并配置BFD Session。
DeviceA:
bfd
bfd atob bind peer-ip 10.1.1.2 interface Ethernet1/0/0
discriminator local 1
discriminator remote 2
在DeviceB上使能BFD,并配置BFD Session。
DeviceB:
bfd
bfd btoa bind peer-ip 10.1.1.1 interface Ethernet1/0/1
discriminator local 2
discriminator remote 1
配置完成后,在DeviceA或DeviceB上执行display bfd session命令,可以看到BFD Session的状态为Up。
以DeviceA的显示为例。
[~DeviceA]dis bfd session all
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName
--------------------------------------------------------------------------------
1 2 10.1.1.2 Up S_IP_IF Ethernet1/0/0
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 1/0
[~DeviceA]
- 使能IS-IS的快速感知功能
配置DeviceA。
DeviceA:
interface Ethernet1/0/0
isis bfd static
配置DeviceB。
DeviceB:
interface Ethernet1/0/1
isis bfd static
- 检查配置结果
在DeviceA上打开调试信息开关。
<DeviceA>debugging isis adjacency
<DeviceA>debugging isis circuit-information
<DeviceA>terminal debugging
<DeviceA>terminal monitor
对DeviceB的GigabitEthernet1/0/0接口执行shutdown命令,模拟链路故障。
[~DeviceB-Ethernet1/0/1]shut
[*DeviceB-Ethernet1/0/1]commit
在DeviceA上可以看到以下日志信息,表明IS-IS根据BFD报告的故障删除了与DeviceB的邻居关系。
<DeviceA>
Dec 19 2019 16:48:40.063 DeviceA %%01ISIS/6/RX_LAN_IIH(d):CID=0x80890467;ISIS-1-ADJ: Received Lan Level-2 IIH. (IfName=Ethernet1/0/0, RemoteSnpa=38.60.aa.02.01.01)
Dec 19 2019 16:48:40.063 DeviceA %%01ISIS/6/LAN_ADJ_USAGE(d):CID=0x80890467;ISIS-1-ADJ: Set LAN ADJ usage to Level-2. (IfName=Ethernet1/0/0, CircLevel=2, PduCircType=2)
Dec 19 2019 16:48:43.074 DeviceA %%01ISIS/6/RX_LAN_IIH(d):CID=0x80890467;ISIS-1-ADJ: Received Lan Level-2 IIH. (IfName=Ethernet1/0/0, RemoteSnpa=38.60.aa.02.01.01)
Dec 19 2019 16:48:43.074 DeviceA %%01ISIS/6/LAN_ADJ_USAGE(d):CID=0x80890467;ISIS-1-ADJ: Set LAN ADJ usage to Level-2. (IfName=Ethernet1/0/0, CircLevel=2, PduCircType=2)
Dec 19 2019 16:48:44.267 DeviceA %%01ISIS/6/ADJ_DOWN(d):CID=0x80890467;ISIS-1-ADJ: ADJ state change to down, reason: ADJ IPv4 down. (IfName=Ethernet1/0/0, AdjSysId=2222.2222.2222, OldState=0, AdjUsage=2)
Dec 19 2019 16:48:44.267 DeviceA %%01ISIS/6/DIS_NO_UP_ADJ(d):CID=0x80890467;ISIS-1-DIS: DIS down, reason: circuit has no up adjacency. (IfName=Ethernet1/0/0, Level=2, DisIdLen=0, DrStatus=4)
Dec 19 2019 16:48:44.370 DeviceA %%01ISIS/6/TX_LAN_IIH(d):CID=0x80890467;ISIS-1-ADJ: Sending Lan Level-2 IIH. (IfName=Ethernet1/0/0, LocalSnpa=38.60.aa.01.01.00)
Dec 19 2019 16:48:44 DeviceA %%01BFD/4/STACHG_TODWN(l):CID=0x80740421;BFD session changed to Down. (SlotNumber=1, Discriminator=1, Diagnostic=DetectDown, Applications=No Application Bind, ProcessPST=False, BindInterfaceName=Ethernet1/0/0, InterfacePhysicalState=Up, InterfaceProtocolState=Up, TunnelName=-)
#24/active/isisAdjacencyChange/Major/occurredTime:2019-12-19 16:48:44/-/-/alarmID:0x0001009e/CID=0x80890467:ISIS adjacency state change. (SysInstance=1, SysLevel=2, CircIndex=1, CircIfIndex=6, LspId=2222.2222.2222.00.00, AdjState=1, IfIndex=6, IfName=Ethernet1/0/0, Reason=BFD detected that the neighbor went Down, SubReason=The BFD session went Down)
Dec 19 2019 16:48:44 DeviceA %%01ISIS/2/isisAdjacencyChange_active(l):CID=0x80890467-alarmID=0x0001009e;ISIS adjacency state change. (SysInstance=1, SysLevel=2, CircIndex=1, CircIfIndex=6, LspId=2222.2222.2222.00.00, AdjState=1, IfIndex=6, IfName=Ethernet1/0/0, Reason=BFD detected that the neighbor went Down, SubReason=The BFD session went Down)
Dec 19 2019 16:48:53.380 DeviceA %%01ISIS/6/TX_LAN_IIH(d):CID=0x80890467;ISIS-1-ADJ: Sending Lan Level-2 IIH. (IfName=Ethernet1/0/0, LocalSnpa=38.60.aa.01.01.00)
相关文章
- H3C : S6550XE-56HF-HI 25G+100G光口交换机配置动静态端口聚合
- PHP各环境下的伪静态配置,可直接用
- apache2服务器_apache2配置
- OCR笔记① | 环境配置与简单操作
- 静态路由的基本配置实验总结_三个路由器配置静态路由
- 【经验】SpringMVC配置映射非WebRoot目录文件位置的静态资源访问
- nginx rewrite伪静态配置参数详解
- php 利用GD库实现一个验证码功能(封装成了函数可自定义配置验证码外观及功能)
- 【Android 安装包优化】使用 lib7zr.a 静态库处理压缩文件 ( 交叉编译 lib7zr.a 静态库 | 安卓工程导入静态库 | 配置 CMakeLists.txt 构建脚本 )
- 【Groovy】Groovy 扩展方法 ( 静态扩展方法配置 | 扩展方法示例 | 编译静态扩展类 | 打包静态扩展类字节码到 jar 包中 | 测试使用 Thread 静态扩展类 )
- 【错误记录】Groovy 扩展方法调用报错 ( 静态扩展方法 或 实例扩展方法 需要分别配置 | 没有配置调用会报错 groovy.lang.MissingMethodException )
- Spring Cloud Security配置JWT和OAuth2的集成实现单点登录-示例
- Ubuntu系统下静态DNS配置详解
- 香港服务器IIS 7.5配置伪静态教程
- IIS 7.5 如何配置伪静态,具体方法如下
- Windows10安装MongoDB4.0详细步骤及启动配置教程
- 快速简易地搭建Linux虚拟机(linux配置虚拟机)
- Linux环境下伪静态配置实践(linux配置伪静态)
- 改变MySQL配置:改变监听IP地址(mysql监听ip)
- Oracle静态监听端口配置实践(oracle配置静态监听)
- 172.16.1.1配置Linux系统的IP地址:172.16.1.1(linuxip)
- 在 RHEL8 配置静态 IP 地址的不同方法
- Linux需配置网络才能上网,操作简易免费,兼容性强(linux是否可以上网)
- iis6伪静态重写路径的配置步骤(.net项目)
- aspnetpager重写url(伪静态)配置实例