配置 BFD
使用以下示例在设备上配置双向转发检测 (BFD)。
示例:为静态路由配置 BFD,以便更快地检测网络故障
此示例说明如何为静态路由配置双向转发检测 (BFD)。
要求
在此示例中,除了设备初始化之外,不需要任何特殊配置。
概述
静态路由有许多实际应用。静态路由通常在网络边缘使用,以支持与短节网络的连接,鉴于其单入口点和出口点,非常适合静态路由的简单性。在 Junos OS 中,静态路由的全局优先级为 5。如果可访问指定的下一跃点,则激活静态路由。
在此示例中,您将使用下一跃点地址 172.16.1.2 配置从提供商网络到客户网络的静态路由 192.168.47.0/24。您还可以使用 172.16.1.1 的下一跃点地址配置从客户网络到提供商网络的静态默认路由 0.0.0.0/0。
为便于演示,在设备 B 和设备 D 上配置了一些环路接口。这些环路接口提供要 ping 的地址,从而验证静态路由是否正常工作。
示例网络如图 1 所示。

拓扑学
配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,然后将命令复制并粘贴到层 [edit]
级的 CLI 中。
设备 B
set interfaces ge-1/2/0 unit 0 description B->D set interfaces ge-1/2/0 unit 0 family inet address 172.16.1.1/24 set interfaces lo0 unit 57 family inet address 10.0.0.1/32 set interfaces lo0 unit 57 family inet address 10.0.0.2/32 set routing-options static route 192.168.47.0/24 next-hop 172.16.1.2 set routing-options static route 192.168.47.0/24 bfd-liveness-detection minimum-interval 1000 set routing-options static route 192.168.47.0/24 bfd-liveness-detection description Site-xxx set protocols bfd traceoptions file bfd-trace set protocols bfd traceoptions flag all
设备 D
set interfaces ge-1/2/0 unit 1 description D->B set interfaces ge-1/2/0 unit 1 family inet address 172.16.1.2/24 set interfaces lo0 unit 2 family inet address 192.168.47.5/32 set interfaces lo0 unit 2 family inet address 192.168.47.6/32 set routing-options static route 0.0.0.0/0 next-hop 172.16.1.1 set routing-options static route 0.0.0.0/0 bfd-liveness-detection minimum-interval 1000 set protocols bfd traceoptions file bfd-trace set protocols bfd traceoptions flag all
程序
分步过程
下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅《Junos OS CLI 用户指南》中的在配置模式下使用 CLI 编辑器。
要为静态路由配置 BFD,请执行以下作:
在设备 B 上,配置接口。
[edit interfaces] user@B# set ge-1/2/0 unit 0 description B->D user@B# set ge-1/2/0 unit 0 family inet address 172.16.1.1/24 user@B# set lo0 unit 57 family inet address 10.0.0.1/32 user@B# set lo0 unit 57 family inet address 10.0.0.2/32
在设备 B 上,创建静态路由并设置下一跳地址。
[edit routing-options] user@B# set static route 192.168.47.0/24 next-hop 172.16.1.2
在设备 B 上,为静态路由配置 BFD。
[edit routing-options] user@B# set static route 192.168.47.0/24 bfd-liveness-detection minimum-interval 1000 set routing-options static route 192.168.47.0/24 bfd-liveness-detection description Site-xxx
在设备 B 上,配置 BFD 的跟踪作。
[edit protocols] user@B# set bfd traceoptions file bfd-trace user@B# set bfd traceoptions flag all
如果完成设备 B 的配置,请提交配置。
[edit] user@B# commit
在设备 D 上,配置接口。
[edit interfaces] user@D# set ge-1/2/0 unit 1 description D->B user@D# set ge-1/2/0 unit 1 family inet address 172.16.1.2/24 user@D# set lo0 unit 2 family inet address 192.168.47.5/32 user@D# set lo0 unit 2 family inet address 192.168.47.6/32
在设备 D 上,创建静态路由并设置下一跳地址。
[edit routing-options] user@D# set static route 0.0.0.0/0 next-hop 172.16.1.1
在设备 D 上,为静态路由配置 BFD。
[edit routing-options] user@D# set static route 0.0.0.0/0 bfd-liveness-detection minimum-interval 1000
在设备 D 上,配置 BFD 的跟踪作。
[edit protocols] user@D# set bfd traceoptions file bfd-trace user@D# set bfd traceoptions flag all
如果完成设备 D 的配置,请提交配置。
[edit] user@D# commit
结果
通过发出 show interfaces
、 show protocols
和 show routing-options
命令来确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
设备 B
user@B# show interfaces ge-1/2/0 { unit 0 { description B->D; family inet { address 172.16.1.1/24; } } } lo0 { unit 57 { family inet { address 10.0.0.1/32; address 10.0.0.2/32; } } }
user@D# show protocols bfd { traceoptions { file bfd-trace; flag all; } }
user@B# show routing-options static { route 192.168.47.0/24 { next-hop 172.16.1.2; bfd-liveness-detection { description Site- xxx; minimum-interval 1000; } } }
设备 D
user@D# show interfaces ge-1/2/0 { unit 1 { description D->B; family inet { address 172.16.1.2/24; } } } lo0 { unit 2 { family inet { address 192.168.47.5/32; address 192.168.47.6/32; } } }
user@D# show routing-options static { route 0.0.0.0/0 { next-hop 172.16.1.1; bfd-liveness-detection { description Site - xxx; minimum-interval 1000; } } }
验证
确认配置工作正常。
验证 BFD 会话是否已启动
目的
验证 BFD 会话是否已启动,并查看有关 BFD 会话的详细信息。
行动
在作模式下,输入 show bfd session extensive
命令。
user@B> show bfd session extensive Detect Transmit Address State Interface Time Interval Multiplier 172.16.1.2 Up lt-1/2/0.0 3.000 1.000 3 Client Static, description Site-xxx, TX interval 1.000, RX interval 1.000 Session up time 00:14:30 Local diagnostic None, remote diagnostic None Remote state Up, version 1 Replicated, routing table index 172 Min async interval 1.000, min slow interval 1.000 Adaptive async TX interval 1.000, RX interval 1.000 Local min TX interval 1.000, minimum RX interval 1.000, multiplier 3 Remote min TX interval 1.000, min RX interval 1.000, multiplier 3 Local discriminator 2, remote discriminator 1 Echo mode disabled/inactive 1 sessions, 1 clients Cumulative transmit rate 1.0 pps, cumulative receive rate 1.0 pps
仅在 SRX 系列防火墙上受 description Site- <xxx> 支持。
如果每个客户端都有多个描述字段,则它会显示“和更多”以及第一个描述字段。
user@D> show bfd session extensive Detect Transmit Address State Interface Time Interval Multiplier 172.16.1.1 Up lt-1/2/0.1 3.000 1.000 3 Client Static, TX interval 1.000, RX interval 1.000 Session up time 00:14:35 Local diagnostic None, remote diagnostic None Remote state Up, version 1 Replicated, routing table index 170 Min async interval 1.000, min slow interval 1.000 Adaptive async TX interval 1.000, RX interval 1.000 Local min TX interval 1.000, minimum RX interval 1.000, multiplier 3 Remote min TX interval 1.000, min RX interval 1.000, multiplier 3 Local discriminator 1, remote discriminator 2 Echo mode disabled/inactive 1 sessions, 1 clients Cumulative transmit rate 1.0 pps, cumulative receive rate 1.0 pps
意义
TX interval 1.000, RX interval 1.000
输出表示使用语句配置的minimum-interval
设置。所有其他输出表示 BFD 的默认设置。要修改默认设置,bfd-liveness-detection
请在语句下包含可选语句。
查看详细的 BFD 事件
目的
如果需要,查看 BFD 跟踪文件的内容以帮助进行故障排除。
行动
在作模式下,输入 file show /var/log/bfd-trace
命令。
user@B> file show /var/log/bfd-trace Nov 23 14:26:55 Data (9) len 35: (hex) 42 46 44 20 70 65 72 69 6f 64 69 63 20 78 6d 69 74 20 72 Nov 23 14:26:55 PPM Trace: BFD periodic xmit rt tbl index 172 Nov 23 14:26:55 Received Downstream TraceMsg (22) len 108: Nov 23 14:26:55 IfIndex (3) len 4: 0 Nov 23 14:26:55 Protocol (1) len 1: BFD Nov 23 14:26:55 Data (9) len 83: (hex) 70 70 6d 64 5f 62 66 64 5f 73 65 6e 64 6d 73 67 20 3a 20 Nov 23 14:26:55 PPM Trace: ppmd_bfd_sendmsg : socket 12 len 24, ifl 78 src 172.16.1.1 dst 172.16.1.2 errno 65 Nov 23 14:26:55 Received Downstream TraceMsg (22) len 93: Nov 23 14:26:55 IfIndex (3) len 4: 0 Nov 23 14:26:55 Protocol (1) len 1: BFD Nov 23 14:26:55 Data (9) len 68: (hex) 42 46 44 20 70 65 72 69 6f 64 69 63 20 78 6d 69 74 20 74
意义
正在将 BFD 消息写入跟踪文件。
示例:在内部 BGP 对等会话上配置 BFD
此示例说明如何使用双向转发检测 (BFD) 协议配置内部 BGP (IBGP) 对等会话,以检测网络中的故障。
要求
配置此示例之前,不需要除设备初始化之外的特殊配置。
概述
在 IBGP 会话上启用 BFD 的最低配置是将语句包含在 bfd-liveness-detection minimum-interval
参与 BFD 会话的所有邻接方的 BGP 配置中。该 minimum-interval
语句指定故障检测的最小传输和接收间隔。具体而言,此值表示本地路由设备传输hello数据包的最小间隔,以及路由设备预期从已与之建立 BFD 会话的邻接方接收回复的最小间隔。可以配置 1 到 255,000 毫秒的值。
或者,您可以使用和 minimum-receive-interval
语句分别transmit-interval minimum-interval
指定最小传输间隔和接收间隔。有关这些和其他可选 BFD 配置语句的信息,请参阅bfd-liveness-detection
。
BFD 是一种消耗系统资源的密集型协议。如果为 BFD 指定最小间隔(对于基于路由引擎的会话小于 100 毫秒,对于分布式 BFD 会话指定小于 10 毫秒)可能会导致意外的 BFD 翻动。
根据您的网络环境,以下附加建议可能适用:
要防止在常规路由引擎切换事件期间发生 BFD 漂移,请为基于路由引擎的会话指定 5000 毫秒的最小间隔。此最小值是必需的,因为在常规路由引擎切换事件期间,RPD、MIBD 和 SNMPD 等进程利用 CPU 资源超过指定的阈值。因此,由于缺乏 CPU 资源,BFD 处理和调度会受到影响。
要使 BFD 会话在双机箱群集控制链路情景期间保持正常运行状态,当第一个控制链路出现故障时,请指定 6000 毫秒的最小间隔,以防止 LACP 在辅助节点上为基于路由引擎的会话发生抖动。
对于具有大量 BFD 会话的大规模网络部署,请为基于路由引擎的会话指定最小间隔 300 毫秒,为分布式 BFD 会话指定 100 毫秒。
对于具有大量 BFD 会话的超大规模网络部署,请联系瞻博网络客户支持,了解更多信息。
要使 BFD 会话在配置不间断活动路由 (NSR) 时在路由引擎切换事件期间保持开启状态,请为基于路由引擎的会话指定 2500 毫秒的最小间隔。对于配置了 NSR 的分布式 BFD 会话,最小间隔建议保持不变,仅取决于您的网络部署。
默认路由实例(主路由器)、路由实例和逻辑系统支持 BFD。此示例显示了逻辑系统上的 BFD。
图 2 显示了具有内部对等会话的典型网络。

配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,然后将命令复制并粘贴到层 [edit]
级的 CLI 中。
设备 A
set logical-systems A interfaces lt-1/2/0 unit 1 description to-B set logical-systems A interfaces lt-1/2/0 unit 1 encapsulation ethernet set logical-systems A interfaces lt-1/2/0 unit 1 peer-unit 2 set logical-systems A interfaces lt-1/2/0 unit 1 family inet address 10.10.10.1/30 set logical-systems A interfaces lo0 unit 1 family inet address 192.168.6.5/32 set logical-systems A protocols bgp group internal-peers type internal set logical-systems A protocols bgp group internal-peers traceoptions file bgp-bfd set logical-systems A protocols bgp group internal-peers traceoptions flag bfd detail set logical-systems A protocols bgp group internal-peers local-address 192.168.6.5 set logical-systems A protocols bgp group internal-peers export send-direct set logical-systems A protocols bgp group internal-peers bfd-liveness-detection minimum-interval 1000 set logical-systems A protocols bgp group internal-peers neighbor 192.163.6.4 set logical-systems A protocols bgp group internal-peers neighbor 192.168.40.4 set logical-systems A protocols ospf area 0.0.0.0 interface lo0.1 passive set logical-systems A protocols ospf area 0.0.0.0 interface lt-1/2/0.1 set logical-systems A policy-options policy-statement send-direct term 2 from protocol direct set logical-systems A policy-options policy-statement send-direct term 2 then accept set logical-systems A routing-options router-id 192.168.6.5 set logical-systems A routing-options autonomous-system 17
设备 B
set logical-systems B interfaces lt-1/2/0 unit 2 description to-A set logical-systems B interfaces lt-1/2/0 unit 2 encapsulation ethernet set logical-systems B interfaces lt-1/2/0 unit 2 peer-unit 1 set logical-systems B interfaces lt-1/2/0 unit 2 family inet address 10.10.10.2/30 set logical-systems B interfaces lt-1/2/0 unit 5 description to-C set logical-systems B interfaces lt-1/2/0 unit 5 encapsulation ethernet set logical-systems B interfaces lt-1/2/0 unit 5 peer-unit 6 set logical-systems B interfaces lt-1/2/0 unit 5 family inet address 10.10.10.5/30 set logical-systems B interfaces lo0 unit 2 family inet address 192.163.6.4/32 set logical-systems B protocols bgp group internal-peers type internal set logical-systems B protocols bgp group internal-peers local-address 192.163.6.4 set logical-systems B protocols bgp group internal-peers export send-direct set logical-systems B protocols bgp group internal-peers bfd-liveness-detection minimum-interval 1000 set logical-systems B protocols bgp group internal-peers neighbor 192.168.40.4 set logical-systems B protocols bgp group internal-peers neighbor 192.168.6.5 set logical-systems B protocols ospf area 0.0.0.0 interface lo0.2 passive set logical-systems B protocols ospf area 0.0.0.0 interface lt-1/2/0.2 set logical-systems B protocols ospf area 0.0.0.0 interface lt-1/2/0.5 set logical-systems B policy-options policy-statement send-direct term 2 from protocol direct set logical-systems B policy-options policy-statement send-direct term 2 then accept set logical-systems B routing-options router-id 192.163.6.4 set logical-systems B routing-options autonomous-system 17
设备 C
set logical-systems C interfaces lt-1/2/0 unit 6 description to-B set logical-systems C interfaces lt-1/2/0 unit 6 encapsulation ethernet set logical-systems C interfaces lt-1/2/0 unit 6 peer-unit 5 set logical-systems C interfaces lt-1/2/0 unit 6 family inet address 10.10.10.6/30 set logical-systems C interfaces lo0 unit 3 family inet address 192.168.40.4/32 set logical-systems C protocols bgp group internal-peers type internal set logical-systems C protocols bgp group internal-peers local-address 192.168.40.4 set logical-systems C protocols bgp group internal-peers export send-direct set logical-systems C protocols bgp group internal-peers bfd-liveness-detection minimum-interval 1000 set logical-systems C protocols bgp group internal-peers neighbor 192.163.6.4 set logical-systems C protocols bgp group internal-peers neighbor 192.168.6.5 set logical-systems C protocols ospf area 0.0.0.0 interface lo0.3 passive set logical-systems C protocols ospf area 0.0.0.0 interface lt-1/2/0.6 set logical-systems C policy-options policy-statement send-direct term 2 from protocol direct set logical-systems C policy-options policy-statement send-direct term 2 then accept set logical-systems C routing-options router-id 192.168.40.4 set logical-systems C routing-options autonomous-system 17
配置设备 A
分步过程
下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器。
要配置设备 A,请执行以下作:
将 CLI 设置为逻辑系统 A。
user@host> set cli logical-system A
配置接口。
[edit interfaces lt-1/2/0 unit 1] user@host:A# set description to-B user@host:A# set encapsulation ethernet user@host:A# set peer-unit 2 user@host:A# set family inet address 10.10.10.1/30 [edit interfaces lo0 unit 1] user@host:A# set family inet address 192.168.6.5/32
配置 BGP。
即使设备 A 未直接连接到设备 C,设备 B 和设备 C 都包含这些
neighbor
语句。[edit protocols bgp group internal-peers] user@host:A# set type internal user@host:A# set local-address 192.168.6.5 user@host:A# set export send-direct user@host:A# set neighbor 192.163.6.4 user@host:A# set neighbor 192.168.40.4
配置 BFD。
[edit protocols bgp group internal-peers] user@host:A# set bfd-liveness-detection minimum-interval 1000
您必须在连接对等方上配置相同的最小间隔。
(选答)配置 BFD 跟踪。
[edit protocols bgp group internal-peers] user@host:A# set traceoptions file bgp-bfd user@host:A# set traceoptions flag bfd detail
配置 OSPF。
[edit protocols ospf area 0.0.0.0] user@host:A# set interface lo0.1 passive user@host:A# set interface lt-1/2/0.1
配置接受直接路由的策略。
对于这种情况,其他有用的选项可能是接受通过 OSPF 或本地路由获知的路由。
[edit policy-options policy-statement send-direct term 2] user@host:A# set from protocol direct user@host:A# set then accept
配置路由器 ID 和自治系统 (AS) 编号。
[edit routing-options] user@host:A# set router-id 192.168.6.5 user@host:A# set autonomous-system 17
如果完成设备配置,请从配置模式输入
commit
。 重复这些步骤以配置设备 B 和设备 C。
结果
在配置模式下,输入show interfaces
、show policy-options
show protocols
、和show routing-options
命令,以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@host:A# show interfaces lt-1/2/0 { unit 1 { description to-B; encapsulation ethernet; peer-unit 2; family inet { address 10.10.10.1/30; } } } lo0 { unit 1 { family inet { address 192.168.6.5/32; } } }
user@host:A# show policy-options policy-statement send-direct { term 2 { from protocol direct; then accept; } }
user@host:A# show protocols bgp { group internal-peers { type internal; traceoptions { file bgp-bfd; flag bfd detail; } local-address 192.168.6.5; export send-direct; bfd-liveness-detection { minimum-interval 1000; } neighbor 192.163.6.4; neighbor 192.168.40.4; } } ospf { area 0.0.0.0 { interface lo0.1 { passive; } interface lt-1/2/0.1; } }
user@host:A# show routing-options router-id 192.168.6.5; autonomous-system 17;
验证
确认配置工作正常。
验证是否启用了 BFD
目的
验证是否在 IBGP 对等方之间启用了 BFD。
行动
在作模式下,输入 show bgp neighbor
命令。您可以使用 | match bfd
筛选器缩小输出范围。
user@host:A> show bgp neighbor | match bfd Options: <BfdEnabled> BFD: enabled, up Trace file: /var/log/A/bgp-bfd size 131072 files 10 Options: <BfdEnabled> BFD: enabled, up Trace file: /var/log/A/bgp-bfd size 131072 files 10
意义
输出显示逻辑系统 A 有两个启用了 BFD 的邻接方。未启用 BFD 时,输出将显示 BFD: disabled, down
,并且 <BfdEnabled>
缺少该选项。如果 BFD 已启用且会话已关闭,则输出将显示 BFD: enabled, down
。输出还显示,由于配置了追踪作,因此正在与 BFD 相关的事件写入日志文件。
验证 BFD 会话是否已启动
目的
验证 BFD 会话是否已启动,并查看有关 BFD 会话的详细信息。
行动
在作模式下,输入 show bfd session extensive
命令。
user@host:A> show bfd session extensive Detect Transmit Address State Interface Time Interval Multiplier 192.163.6.4 Up 3.000 1.000 3 Client BGP, TX interval 1.000, RX interval 1.000 Session up time 00:54:40 Local diagnostic None, remote diagnostic None Remote state Up, version 1 Logical system 12, routing table index 25 Min async interval 1.000, min slow interval 1.000 Adaptive async TX interval 1.000, RX interval 1.000 Local min TX interval 1.000, minimum RX interval 1.000, multiplier 3 Remote min TX interval 1.000, min RX interval 1.000, multiplier 3 Local discriminator 10, remote discriminator 9 Echo mode disabled/inactive Multi-hop route table 25, local-address 192.168.6.5 Detect Transmit Address State Interface Time Interval Multiplier 192.168.40.4 Up 3.000 1.000 3 Client BGP, TX interval 1.000, RX interval 1.000 Session up time 00:48:03 Local diagnostic None, remote diagnostic None Remote state Up, version 1 Logical system 12, routing table index 25 Min async interval 1.000, min slow interval 1.000 Adaptive async TX interval 1.000, RX interval 1.000 Local min TX interval 1.000, minimum RX interval 1.000, multiplier 3 Remote min TX interval 1.000, min RX interval 1.000, multiplier 3 Local discriminator 14, remote discriminator 13 Echo mode disabled/inactive Multi-hop route table 25, local-address 192.168.6.5 2 sessions, 2 clients Cumulative transmit rate 2.0 pps, cumulative receive rate 2.0 pps
意义
TX interval 1.000, RX interval 1.000
输出表示使用语句配置的minimum-interval
设置。所有其他输出表示 BFD 的默认设置。要修改默认设置,bfd-liveness-detection
请在语句下包含可选语句。
查看详细的 BFD 事件
目的
如果需要,查看 BFD 跟踪文件的内容以帮助进行故障排除。
行动
在作模式下,输入 file show /var/log/A/bgp-bfd
命令。
user@host:A> file show /var/log/A/bgp-bfd Aug 15 17:07:25 trace_on: Tracing to "/var/log/A/bgp-bfd" started Aug 15 17:07:26.492190 bgp_peer_init: BGP peer 192.163.6.4 (Internal AS 17) local address 192.168.6.5 not found. Leaving peer idled Aug 15 17:07:26.493176 bgp_peer_init: BGP peer 192.168.40.4 (Internal AS 17) local address 192.168.6.5 not found. Leaving peer idled Aug 15 17:07:32.597979 task_connect: task BGP_17.192.163.6.4+179 addr 192.163.6.4+179: No route to host Aug 15 17:07:32.599623 bgp_connect_start: connect 192.163.6.4 (Internal AS 17): No route to host Aug 15 17:07:36.869394 task_connect: task BGP_17.192.168.40.4+179 addr 192.168.40.4+179: No route to host Aug 15 17:07:36.870624 bgp_connect_start: connect 192.168.40.4 (Internal AS 17): No route to host Aug 15 17:08:04.599220 task_connect: task BGP_17.192.163.6.4+179 addr 192.163.6.4+179: No route to host Aug 15 17:08:04.601135 bgp_connect_start: connect 192.163.6.4 (Internal AS 17): No route to host Aug 15 17:08:08.869717 task_connect: task BGP_17.192.168.40.4+179 addr 192.168.40.4+179: No route to host Aug 15 17:08:08.869934 bgp_connect_start: connect 192.168.40.4 (Internal AS 17): No route to host Aug 15 17:08:36.603544 advertising receiving-speaker only capabilty to neighbor 192.163.6.4 (Internal AS 17) Aug 15 17:08:36.606726 bgp_read_message: 192.163.6.4 (Internal AS 17): 0 bytes buffered Aug 15 17:08:36.609119 Initiated BFD session to peer 192.163.6.4 (Internal AS 17): address=192.163.6.4 ifindex=0 ifname=(none) txivl=1000 rxivl=1000 mult=3 ver=255 Aug 15 17:08:36.734033 advertising receiving-speaker only capabilty to neighbor 192.168.40.4 (Internal AS 17) Aug 15 17:08:36.738436 Initiated BFD session to peer 192.168.40.4 (Internal AS 17): address=192.168.40.4 ifindex=0 ifname=(none) txivl=1000 rxivl=1000 mult=3 ver=255 Aug 15 17:08:40.537552 BFD session to peer 192.163.6.4 (Internal AS 17) up Aug 15 17:08:40.694410 BFD session to peer 192.168.40.4 (Internal AS 17) up
意义
在建立路由之前, No route to host
该消息将显示在输出中。建立路由后,最后两行显示两个 BFD 会话都已启动。
在停用和重新激活环路接口后查看详细的 BFD 事件
目的
检查关闭路由器或交换机然后将其恢复后会发生什么。要模拟关闭路由器或交换机,请停用逻辑系统 B 上的环路接口。
行动
从配置模式,输入
deactivate logical-systems B interfaces lo0 unit 2 family inet
命令。user@host:A# deactivate logical-systems B interfaces lo0 unit 2 family inet user@host:A# commit
在作模式下,输入
file show /var/log/A/bgp-bfd
命令。user@host:A> file show /var/log/A/bgp-bfd ... Aug 15 17:20:55.995648 bgp_read_v4_message:9747: NOTIFICATION received from 192.163.6.4 (Internal AS 17): code 6 (Cease) subcode 6 (Other Configuration Change) Aug 15 17:20:56.004508 Terminated BFD session to peer 192.163.6.4 (Internal AS 17) Aug 15 17:21:28.007755 task_connect: task BGP_17.192.163.6.4+179 addr 192.163.6.4+179: No route to host Aug 15 17:21:28.008597 bgp_connect_start: connect 192.163.6.4 (Internal AS 17): No route to host
从配置模式,输入
activate logical-systems B interfaces lo0 unit 2 family inet
命令。user@host:A# activate logical-systems B interfaces lo0 unit 2 family inet user@host:A# commit
在作模式下,输入
file show /var/log/A/bgp-bfd
命令。user@host:A> file show /var/log/A/bgp-bfd ... Aug 15 17:25:53.623743 advertising receiving-speaker only capabilty to neighbor 192.163.6.4 (Internal AS 17) Aug 15 17:25:53.631314 Initiated BFD session to peer 192.163.6.4 (Internal AS 17): address=192.163.6.4 ifindex=0 ifname=(none) txivl=1000 rxivl=1000 mult=3 ver=255 Aug 15 17:25:57.570932 BFD session to peer 192.163.6.4 (Internal AS 17) up
示例:为 OSPF 配置 BFD
此示例说明如何为 OSPF 配置双向转发检测 (BFD) 协议。
要求
开始之前:
配置设备接口。请参阅 路由设备 Junos OS 网络接口库。
为 OSPF 网络中的设备配置路由器标识符。请参阅 示例:配置 OSPF 路由器标识符。
控制 OSPF 指定的路由器选择。请参阅 示例:控制 OSPF 指定路由器选择。
配置单区域 OSPF 网络。请参阅 示例:配置单区域 OSPF 网络。
配置多区域 OSPF 网络。请参阅 示例:配置多区域 OSPF 网络。
配置多区域 OSPF 网络。请参阅 示例:配置多区域 OSPF 网络。
概述
要想增加路由收敛性,可通过调整 OSPF hello 间隔和无效间隔设置来增加路由收敛性,另一种方法是配置 BFD。BFD 协议是一种检测网络故障的简单发送机制。BFD 故障检测计时器的计时器限制比 OSPF 故障检测机制短,因此检测速度更快。
BFD 在无法快速检测到故障的接口(如以太网接口)上很有用。其他接口(如 SONET 接口)已内置故障检测。无需在这些接口上配置 BFD。
您可以在一对相邻的 OSPF 接口上配置 BFD。与 OSPF hello 间隔和无效间隔设置不同,您不必在 OSPF 区域中的所有接口上启用 BFD。
在此示例中,您可以通过在区域 0.0.0.0 中的邻接方 OSPF 接口 fe-0/1/0 上包含bfd-liveness-detection
语句来启用故障检测,并将 BFD 数据包交换间隔配置为 300 毫秒,将 4 配置为导致始发接口声明关闭的未接送数据包数,并通过包括以下设置,仅为具有完全邻接邻接的 OSPF 邻接方配置 BFD 会话:
仅限全邻接方 — 在 Junos OS 9.5 及更高版本中,将 BFD 协议配置为仅为具有完全邻接邻接的 OSPF 邻接方建立 BFD 会话。默认行为是为所有 OSPF 邻接方建立 BFD 会话。
minimum-interval — 配置本地路由设备传输hello数据包的最小间隔(以毫秒为单位),以及路由设备期望从与之建立BFD会话的邻接方接收回复的最短间隔。您可以配置 1 到 255,000 毫秒范围内的数字。您还可以使用 transmit-interval、minimum-interval 和
minimum-receive-interval
语句分别指定最小传输间隔和接收间隔。注意:BFD 是一种消耗系统资源的密集型协议。对于基于路由引擎的会话,将 BFD 的最小间隔指定为小于 100 毫秒,对于分布式 BFD 会话,指定小于 10 毫秒的最小间隔可能会导致意外的 BFD 漂移。
根据您的网络环境,以下附加建议可能适用:
对于具有大量 BFD 会话的大规模网络部署,请指定不小于 500 毫秒的最小间隔。建议间隔 1000 毫秒以避免任何不稳定问题。
注意:-
对于 bfdd 进程,设置的检测时间间隔小于 300 毫秒。如果系统上运行高优先级进程(如 ppmd),则 CPU 可能会将时间花在 ppmd 进程而不是 bfdd 进程上。
-
对于分支机构 SRX 系列防火墙,建议 1000 毫秒作为 BFD 数据包的最短激活时间间隔。
-
对于 vSRX 3.0,我们建议将 300 毫秒作为 BFD 数据包的最小激活时间间隔。
-
对于具有大量 BFD 会话的超大规模网络部署,请联系瞻博网络客户支持,了解更多信息。
要使 BFD 会话在配置不间断活动路由 (NSR) 时在路由引擎切换事件期间保持开启状态,请为基于路由引擎的会话指定 2500 毫秒的最小间隔。对于配置了 NSR 的分布式 BFD 会话,最小间隔建议保持不变,仅取决于您的网络部署。
乘数 — 配置导致始发接口声明关闭的邻接方未接收的hello数据包数。默认情况下,三个未接的hello数据包会导致始发接口被声明为关闭。您可以配置 1 到 255 范围内的值。
拓扑学
配置
程序
CLI 快速配置
要快速配置 OSPF 的 BFD 协议,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,将命令复制并粘贴到 [edit] 层次结构级别的 CLI 中,然后从配置模式进入 commit
。
[edit] set protocols ospf area 0.0.0.0 interface fe-0/0/1 bfd-liveness-detection minimum-interval 300 set protocols ospf area 0.0.0.0 interface fe-0/0/1 bfd-liveness-detection multiplier 4 set protocols ospf area 0.0.0.0 interface fe-0/0/1 bfd-liveness-detection full-neighbors-only
分步过程
要在一个相邻接口上为 OSPF 配置 BFD 协议,请执行以下作:
创建 OSPF 区域。
注意:要指定 OSPFv3,请在
[edit protocols]
层次结构级别包含语ospf3
句。[edit] user@host# edit protocols ospf area 0.0.0.0
指定接口。
[edit protocols ospf area 0.0.0.0] user@host# set interface fe-0/0/1
指定最小传输和接收间隔。
[edit protocols ospf area 0.0.0.0 ] user@host# set interface fe-0/0/1 bfd-liveness-detection minimum-interval 300
配置导致始发接口声明关闭的未发送hello数据包数。
[edit protocols ospf area 0.0.0.0 ] user@host# set interface fe-0/0/1 bfd-liveness-detection multiplier 4
仅为具有完全邻接邻接的 OSPF 邻接方配置 BFD 会话。
[edit protocols ospf area 0.0.0.0 ] user@host# set interface fe-0/0/1 bfd-liveness-detection full-neighbors-only
如果完成设备配置,请提交配置。
[edit protocols ospf area 0.0.0.0 ] user@host# commit
注意:在另一个相邻接口上重复整个配置。
结果
输入 show protocols ospf
命令以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@host# show protocols ospf area 0.0.0.0 { interface fe-0/0/1.0 { bfd-liveness-detection { minimum-interval 300; multiplier 4; full-neighbors-only; } } }
要确认您的 OSPFv3 配置,请输入 show protocols ospf3
命令。
验证
确认配置工作正常。
验证 BFD 会话
目的
验证 OSPF 接口是否具有活动 BFD 会话,以及会话组件配置是否正确。
行动
在作模式下,输入 show bfd session detail
命令。
意义
输出显示有关 BFD 会话的信息。
“地址”字段显示邻接方的 IP 地址。
接口字段显示您为 BFD 配置的接口。
“状态”字段显示邻接方的状态,并应显示“完整”以反映您配置的完整邻接邻接。
“传输间隔”字段显示您配置用于发送 BFD 数据包的时间间隔。
“乘数”字段显示您配置的乘数。
示例:为 IS-IS 配置 BFD
此示例介绍如何配置双向转发检测 (BFD) 协议以检测 IS-IS 网络中的故障。
QFX10000 系列交换机上的 ISIS for IPV6 不支持 BFD。
要求
开始之前,在两台路由器上配置 IS-IS。有关所需 IS-IS 配置的信息,请参阅 示例:配置 IS-IS 。
我们在 CLI 快速配置部分中提供了 IS-IS 配置,但未在分步介绍中介绍 IS-IS 配置。
此示例使用以下硬件和软件组件:
-
Junos OS 7.3 或更高版本
-
使用 Junos OS 22.4 版进行更新和重新验证
-
-
M Series、MX 系列和 T Series 路由器
概述
此示例显示了两个相互连接的路由器。每个路由器上都配置了一个环路接口。两台路由器上都配置了 IS-IS 和 BFD 协议。
配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,然后将命令复制并粘贴到层 [edit]
级的 CLI 中。
路由器 R1
set interfaces ge-0/0/0 unit 0 family inet address 10.0.0.1/30 set interfaces ge-0/0/0 unit 0 family iso set interfaces lo0 unit 0 family inet address 10.0.255.1/32 set interfaces lo0 unit 0 family iso address 49.0001.0010.0255.0001.00 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection version automatic set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection minimum-interval 200 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection minimum-receive-interval 100 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection multiplier 2 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection no-adaptation set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection transmit-interval minimum-interval 100 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection transmit-interval threshold 300 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection detection-time threshold 500 set protocols isis interface lo0.0
路由器 R2
set interfaces ge-0/0/0 unit 0 family inet address 10.0.0.2/30 set interfaces ge-0/0/0 unit 0 family iso set interfaces lo0 unit 0 family inet address 10.0.255.2/32 set interfaces lo0 unit 0 family iso address 49.0001.0010.0255.0002.00 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection version automatic set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection minimum-interval 200 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection minimum-receive-interval 100 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection multiplier 2 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection no-adaptation set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection transmit-interval minimum-interval 100 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection transmit-interval threshold 300 set protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection detection-time threshold 500 set protocols isis interface lo0.0
程序
分步过程
下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 在配置模式下使用 CLI 编辑器。
要简单地为 IS-IS 配置 BFD,只需使用 minimum-interval
语句。当您使用该语句时, bfd-liveness-detection
BFD 协议会为所有其他配置语句选择默认参数,而不指定任何参数。
您可以随时更改参数,而无需停止或重新启动现有会话。BFD 会自动调整到新的参数值。但是,在值与每个 BFD 对等方重新同步之前,不会对 BFD 参数进行更改。
要在路由器 R1 和 R2 上为 IS-IS 配置 BFD:
我们仅显示 R1 的步骤。
-
配置检测时间适配阈值,该阈值必须大于乘数乘以最小间隔。
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set detection-time threshold 500
-
配置故障检测的最小传输和接收间隔。
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set minimum-interval 200
-
仅配置故障检测的最小接收间隔。
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set minimum-receive-interval 100
-
禁用 BFD 适配。
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set no-adaptation
-
配置传输间隔阈值,该阈值必须大于最小传输间隔。
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set transmit-interval threshold 300
-
配置故障检测的最小传输间隔。
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set transmit-interval minimum-interval 100
-
配置乘数,即导致始发接口声明关闭的邻接方未接收的发送消息数据包数。
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set multiplier 2
-
配置用于检测的 BFD 版本。
默认设置为自动检测版本。
[edit protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection] user@R1# set version automatic
结果
在配置模式下,发出 show protocols isis interface
命令以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@R1# show protocols isis interface ge-0/0/0.0 family inet bfd-liveness-detection { version automatic; minimum-interval 200; minimum-receive-interval 100; multiplier 2; no-adaptation; transmit-interval { minimum-interval 100; threshold 300; } detection-time { threshold 500; } }
验证
确认配置工作正常。
验证路由器 R1 和 R2 之间的连接
目的
确保路由器 R1 和 R2 可以相互连接。
行动
根据网络拓扑对另一台路由器执行 Ping 命令,以检查两台路由器之间的连接。
user@R1> ping 10.0.0.2 count 2 PING 10.0.0.2 (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=64 time=2.148 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=1.923 ms --- 10.0.0.2 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.923/2.035/2.148/0.113 ms
意义
路由器 R1 和 R2 能够相互 ping 通。
验证是否配置了 IS-IS
目的
确保 IS-IS 实例在两个路由器上运行。
行动
使用语 show isis database
句检查 IS-IS 实例是否在两个路由器(R1 和 R2)上运行。
user@R1> show isis database IS-IS level 1 link-state database: LSP ID Sequence Checksum Lifetime Attributes R1.00-00 0x1b 0xa2d5 552 L1 L2 R1.02-00 0x2b 0x8da3 545 L1 L2 R2.00-00 0x1a 0x628d 543 L1 L2 3 LSPs IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes R1.00-00 0x1e 0xb9ba 552 L1 L2 R1.02-00 0x2b 0x8da3 545 L1 L2 R2.00-00 0x1d 0x877e 543 L1 L2 3 LSPs
意义
在两个路由器 R1 和 R2 上都配置了 IS-IS。
验证是否配置了 BFD
目的
确保 BFD 实例在两个路由器 R1 和 R2 上运行。
行动
show bfd session detail
使用语句检查路由器上是否正在运行 BFD 实例。
user@R1> show bfd session detail Detect Transmit Address State Interface Time Interval Multiplier 10.0.0.2 Up ge-0/0/0.0 0.200 0.100 2 Client ISIS L1, TX interval 0.100, RX interval 0.100 Client ISIS L2, TX interval 0.100, RX interval 0.100 Session up time 00:02:41, previous down time 00:00:09 Local diagnostic None, remote diagnostic None Remote state Up, version 1 Session type: Single hop BFD 1 sessions, 2 clients Cumulative transmit rate 10.0 pps, cumulative receive rate 10.0 pps
意义
在路由器 R1 和 R2 上配置了 BFD,用于检测 IS-IS 网络中的故障。
示例:为 RIP 配置 BFD
此示例说明如何为 RIP 网络配置双向转发检测 (BFD)。
要求
配置此示例之前,不需要除设备初始化之外的特殊配置。
概述
要启用故障检测,请包含以下 bfd-liveness-detection
语句:
bfd-liveness-detection { detection-time { threshold milliseconds; } minimum-interval milliseconds; minimum-receive-interval milliseconds; multiplier number; no-adaptation; transmit-interval { threshold milliseconds; minimum-interval milliseconds; } version (1 | automatic); }
或者,您可以通过包含 threshold
语句来指定检测时间适配的阈值。当 BFD 会话检测时间适应于等于或大于阈值的值时,将发送单个陷阱和系统日志消息。
要指定故障检测的最小传输和接收间隔,请包含语 minimum-interval
句。此值表示本地路由设备传输hello数据包的最小间隔,以及路由设备预期从已与之建立 BFD 会话的邻接方接收回复的最小间隔。可以配置 1 到 255,000 毫秒的值。此示例将最小间隔设置为 600 毫秒。
BFD 是一种消耗系统资源的密集型协议。对于基于路由引擎的会话,将 BFD 的最小间隔指定为小于 100 毫秒,对于分布式 BFD 会话,指定小于 10 毫秒的最小间隔可能会导致意外的 BFD 漂移。
根据您的网络环境,以下附加建议可能适用:
对于具有大量 BFD 会话的大规模网络部署,请为基于路由引擎的会话指定最小间隔 300 毫秒,为分布式 BFD 会话指定 100 毫秒的最小间隔。
对于具有大量 BFD 会话的超大规模网络部署,请联系瞻博网络客户支持,了解更多信息。
要使 BFD 会话在配置不间断活动路由 (NSR) 时在路由引擎切换事件期间保持开启状态,请为基于路由引擎的会话指定 2500 毫秒的最小间隔。对于配置了不间断活动路由的分布式 BFD 会话,最小间隔建议保持不变,仅取决于您的网络部署。
您可以选择单独指定最小传输间隔和接收间隔。
要仅指定故障检测的最小接收间隔,请包含语 minimum-receive-interval
句。此值表示本地路由设备预期从与之建立 BFD 会话的邻接方接收回复的最小间隔。您可以配置一个介于 1 到 255,00 毫秒之间的值。
要仅指定故障检测的最小传输间隔,请包含 transmit-interval minimum-interval
语句。此值表示本地路由设备向与其建立 BFD 会话的邻接方传输hello 数据包的最小间隔。可以配置 1 到 255,000 毫秒的值。
要指定导致始发接口声明关闭的邻接方未接收的hello 数据包数,请包含语 multiplier
句。默认值为 3,您可以在 1 到 255 的范围内配置值。
要指定用于检测传输间隔适配的阈值,请包含 transmit-interval threshold
语句。阈值必须大于传输间隔。
要指定用于检测的 BFD 版本,请包含语 version
句。默认设置为自动检测版本。
您可以通过在[edit protocols bfd]
层次结构级别包含traceoptions
语句来跟踪 BFD作。
在 Junos OS 9.0 及更高版本中,您可以将 BFD 会话配置为不适应不断变化的网络条件。要禁用 BFD 适配,请包含语 no-adaptation
句。我们建议您不要禁用 BFD 适配,除非最好不要在网络中启用 BFD 适配。
图 4 显示了此示例中使用的拓扑。

CLI 快速配置 显示了 图 4 中所有设备的配置。 分步过程 部分介绍了设备 R1 上的步骤。
拓扑学
配置
程序
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,然后将命令复制并粘贴到层 [edit]
级的 CLI 中。
设备 R1
set interfaces fe-1/2/0 unit 1 family inet address 10.0.0.1/30 set protocols bfd traceoptions file bfd-trace set protocols bfd traceoptions flag all set protocols rip group rip-group export advertise-routes-through-rip set protocols rip group rip-group neighbor fe-1/2/0.1 set protocols rip group rip-group bfd-liveness-detection minimum-interval 600 set policy-options policy-statement advertise-routes-through-rip term 1 from protocol direct set policy-options policy-statement advertise-routes-through-rip term 1 from protocol rip set policy-options policy-statement advertise-routes-through-rip term 1 then accept
设备 R2
set interfaces fe-1/2/0 unit 2 family inet address 10.0.0.2/30 set interfaces fe-1/2/1 unit 5 family inet address 10.0.0.5/30 set protocols rip group rip-group export advertise-routes-through-rip set protocols rip group rip-group neighbor fe-1/2/0.2 set protocols rip group rip-group neighbor fe-1/2/1.5 set protocols rip group rip-group bfd-liveness-detection minimum-interval 600 set policy-options policy-statement advertise-routes-through-rip term 1 from protocol direct set policy-options policy-statement advertise-routes-through-rip term 1 from protocol rip set policy-options policy-statement advertise-routes-through-rip term 1 then accept
设备 R3
set interfaces fe-1/2/0 unit 6 family inet address 10.0.0.6/30 set protocols rip group rip-group export advertise-routes-through-rip set protocols rip group rip-group neighbor fe-1/2/0.6 set protocols rip group rip-group bfd-liveness-detection minimum-interval 600 set policy-options policy-statement advertise-routes-through-rip term 1 from protocol direct set policy-options policy-statement advertise-routes-through-rip term 1 from protocol rip set policy-options policy-statement advertise-routes-through-rip term 1 then accept
分步过程
下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器。
要为 RIP 网络配置 BFD,请执行以下作:
-
配置网络接口。
[edit interfaces] user@R1# set fe-1/2/0 unit 1 family inet address 10.0.0.1/30
-
创建 RIP 组并添加接口。
要在 Junos OS 中配置 RIP,必须配置一个包含启用了 RIP 的接口的组。无需在环路接口上启用 RIP。
[edit protocols rip group rip-group] user@R1# set neighbor fe-1/2/0.1
-
创建路由策略以通告直接路由和 RIP 获知的路由。
[edit policy-options policy-statement advertise-routes-through-rip term 1] user@R1# set from protocol direct user@R1# set from protocol rip user@R1# set then accept
-
应用路由策略。
在 Junos OS 中,只能在组级别应用 RIP 导出策略。
[edit protocols rip group rip-group] user@R1# set export advertise-routes-through-rip
-
启用 BFD。
[edit protocols rip group rip-group] user@R1# set bfd-liveness-detection minimum-interval 600
-
配置跟踪作以跟踪 BFD 消息。
[edit protocols bfd traceoptions] user@R1# set file bfd-trace user@R1# set flag all
结果
在配置模式下,输入show interfaces
show protocols
、和show policy-options
命令,以确认您的配置。如果输出未显示预期的配置,请重复此示例中的配置说明,以便进行更正。
user@R1# show interfaces
fe-1/2/0 {
unit 1 {
family inet {
address 10.0.0.1/30;
}
}
}
user@R1# show protocols
bfd {
traceoptions {
file bfd-trace;
flag all;
}
}
rip {
group rip-group {
export advertise-routes-through-rip;
bfd-liveness-detection {
minimum-interval 600;
}
neighbor fe-1/2/0.1;
}
}
user@R1# show policy-options
policy-statement advertise-routes-through-rip {
term 1 {
from protocol [ direct rip ];
then accept;
}
}
如果完成设备配置,请从配置模式进入 提交 。
验证
确认配置工作正常。
验证 BFD 会话是否已启动
目的
确保 BFD 会话正在运行。
行动
在作模式下,输入 show bfd session
命令。
user@R1> show bfd session Detect Transmit Address State Interface Time Interval Multiplier 10.0.0.2 Up fe-1/2/0.1 1.800 0.600 3 1 sessions, 1 clients Cumulative transmit rate 1.7 pps, cumulative receive rate 1.7 pps
意义
输出显示没有身份验证失败。
检查 BFD 跟踪文件
目的
使用跟踪作验证是否正在交换 BFD 数据包。
行动
在作模式下,输入 show log
命令。
user@R1> show log bfd-trace Feb 16 10:26:32 PPM Trace: BFD periodic xmit to 10.0.0.2 (IFL 124, rtbl 53, single-hop port) Feb 16 10:26:32 Received Downstream TraceMsg (24) len 86: Feb 16 10:26:32 IfIndex (3) len 4: 0 Feb 16 10:26:32 Protocol (1) len 1: BFD Feb 16 10:26:32 Data (9) len 61: (hex) 42 46 44 20 70 61 63 6b 65 74 20 66 72 6f 6d 20 31 30 2e Feb 16 10:26:32 PPM Trace: BFD packet from 10.0.0.1 (IFL 73, rtbl 56, ttl 255) absorbed Feb 16 10:26:32 Received Downstream TraceMsg (24) len 60: Feb 16 10:26:32 IfIndex (3) len 4: 0 Feb 16 10:26:32 Protocol (1) len 1: BFD Feb 16 10:26:32 Data (9) len 35: (hex) 42 46 44 20 70 65 72 69 6f 64 69 63 20 78 6d 69 74 20 6f ...
意义
输出显示 BFD 的正常功能。
为 LAG 配置微型 BFD 会话
双向转发检测 (BFD) 协议是一种简单的检测协议,可快速检测转发路径中的故障。链路聚合组 (LAG) 将点对点连接中的设备之间的多个链路组合在一起,从而增加带宽,提供可靠性,并允许负载平衡。要在 LAG 接口上运行 BFD 会话,请在 LAG 捆绑包中的每个 LAG 成员链路上配置独立的异步模式 BFD 会话。独立的微型 BFD 会话不是监控 UDP 端口的状态,而是监控单个成员链路的状态。
从 Junos OS 演化版 20.1R1 版开始,可以在链路聚合组 (LAG) 捆绑包的每个成员链路上启用独立的微双向转发检测 (BFD) 会话。
要为聚合以太网接口启用故障检测:
QFX 系列不支持选项
version
。从 Junos OS 17.2R1 版开始,如果尝试使用此命令,将出现警告。当两台设备都支持 BFD 时,此功能有效。如果仅在 LAG 的一端配置了 BFD,则此功能不起作用。
另见
示例:为 LAG 配置独立的 Micro BFD 会话
此示例说明如何为聚合以太网接口配置独立的 Micro BFD 会话。
要求
此示例使用以下硬件和软件组件:
配备 Junos Trio 芯片组的 MX 系列路由器
采用 4 类 FPC 或 5 类 FPC 的 T Series 路由器
T 系列上的以下 PIC 类型支持用于 LAG 的 BFD:
PC-1XGE-XENPAK(3 型 FPC),
PD-4XGE-XFP(4 类 FPC),
PD-5-10XGE-SFPP(4 类 FPC),
24 个 10GE (LAN/WAN) SFPP、12 个 10GE (LAN/WAN) SFPP、1 个 100GE 5 类 PIC
带 24 个 10GE (LAN/WAN) SFPP 的 PTX 系列路由器
在所有设备上运行的 Junos OS 13.3 或更高版本
概述
该示例包括两个直接连接的路由器。配置两个聚合以太网接口,AE0 用于 IPv4 连接,AE1 用于 IPv6 连接。在 AE0 捆绑包上配置 micro BFD 会话,使用 IPv4 地址作为两个路由器上的本地和邻居端点。使用 IPv6 地址作为两台路由器上的本地和邻居端点,在 AE1 捆绑包上配置微型 BFD 会话。此示例验证输出中独立 micro BFD 会话是否处于活动状态。
配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,然后将命令复制并粘贴到层 [edit] 级的 CLI 中。
路由器 R0
set interfaces ge-1/0/1 unit 0 family inet address 20.20.20.1/30 set interfaces ge-1/0/1 unit 0 family inet6 address 3ffe::1:1/126 set interfaces xe-4/0/0 gigether-options 802.3ad ae0 set interfaces xe-4/0/1 gigether-options 802.3ad ae0 set interfaces xe-4/1/0 gigether-options 802.3ad ae1 set interfaces xe-4/1/1 gigether-options 802.3ad ae1 set interfaces lo0 unit 0 family inet address 10.255.106.107/32 set interfaces lo0 unit 0 family inet6 address 201:DB8:251::aa:aa:1/126 set interfaces ae0 aggregated-ether-options bfd-liveness-detection minimum-interval 100 set interfaces ae0 aggregated-ether-options bfd-liveness-detection neighbor 10.255.106.102 set interfaces ae0 aggregated-ether-options bfd-liveness-detection local-address 10.255.106.107 set interfaces ae0 aggregated-ether-options minimum-links 1 set interfaces ae0 aggregated-ether-options link-speed 10g set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 unit 0 family inet address 10.0.0.1/30 set interfaces ae1 aggregated-ether-options bfd-liveness-detection minimum-interval 100 set interfaces ae1 aggregated-ether-options bfd-liveness-detection multiplier 3 set interfaces ae1 aggregated-ether-options bfd-liveness-detection neighbor 201:DB8:251::bb:bb:1 set interfaces ae1 aggregated-ether-options bfd-liveness-detection local-address 201:DB8:251::aa:aa:1 set interfaces ae1 aggregated-ether-options minimum-links 1 set interfaces ae1 aggregated-ether-options link-speed 10g set interfaces ae1 aggregated-ether-options lacp active set interfaces ae1 unit 0 family inet6 address 5555::1/126 set interface ae1 unit 0 family inet6 dad-disable set routing-options nonstop-routing set routing-options static route 30.30.30.0/30 next-hop 10.0.0.2 set routing-options rib inet6.0 static route 3ffe::1:2/126 next-hop 5555::2 set protocols bfd traceoptions file bfd set protocols bfd traceoptions file size 100m set protocols bfd traceoptions file files 10 set protocols bfd traceoptions flag all
路由器 R1
set interfaces ge-1/1/8 unit 0 family inet address 30.30.30.1/30 set interfaces ge-1/1/8 unit 0 family inet6 address 3ffe::1:2/126 set interfaces xe-0/0/0 gigether-options 802.3ad ae0 set interfaces xe-0/0/1 gigether-options 802.3ad ae0 set interfaces xe-0/0/2 gigether-options 802.3ad ae1 set interfaces xe-0/0/3 gigether-options 802.3ad ae1 set interfaces lo0 unit 0 family inet address 10.255.106.102/32 set interfaces lo0 unit 0 family inet6 address 201:DB8:251::bb:bb:1/126 set interfaces ae0 aggregated-ether-options bfd-liveness-detection minimum-interval 150 set interfaces ae0 aggregated-ether-options bfd-liveness-detection multiplier 3 set interfaces ae0 aggregated-ether-options bfd-liveness-detection neighbor 10.255.106.107 set interfaces ae0 aggregated-ether-options bfd-liveness-detection local-address 10.255.106.102 set interfaces ae0 aggregated-ether-options minimum-links 1 set interfaces ae0 aggregated-ether-options link-speed 10g set interfaces ae0 aggregated-ether-options lacp passive set interfaces ae0 unit 0 family inet address 10.0.0.2/30 set interfaces ae1 aggregated-ether-options bfd-liveness-detection minimum-interval 200 set interfaces ae1 aggregated-ether-options bfd-liveness-detection multiplier 3 set interfaces ae1 aggregated-ether-options bfd-liveness-detection neighbor 201:DB8:251::aa:aa:1 set interfaces ae1 aggregated-ether-options bfd-liveness-detection local-address 201:DB8:251::bb:bb:1 set interfaces ae1 aggregated-ether-options minimum-links 1 set interfaces ae1 aggregated-ether-options link-speed 10g set interfaces ae1 aggregated-ether-options lacp passive set interfaces ae1 unit 0 family inet6 address 5555::2/126 set routing-options static route 20.20.20.0/30 next-hop 10.0.0.1 set routing-options rib inet6.0 static route 3ffe::1:1/126 next-hop 5555::1
为聚合以太网接口配置 Micro BFD 会话
程序
分步过程
下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅 CLI 用户指南中的“在配置模式下使用 CLI 编辑器”。
对路由器 R1 重复此过程,修改每个路由器的相应接口名称、地址和任何其他参数。
要为路由器 R0 上的聚合以太网接口配置 micro BFD 会话:
配置物理接口。
[edit interfaces] user@R0# set ge-1/0/1 unit 0 family inet address 20.20.20.1/30 user@R0# set ge-1/0/1 unit 0 family inet6 address 3ffe::1:1/126 user@R0# set xe-4/0/0 gigether-options 802.3ad ae0 user@R0# set xe-4/0/1 gigether-options 802.3ad ae0 user@R0# set xe-4/1/0 gigether-options 802.3ad ae1 user@R0# set xe-4/1/1 gigether-options 802.3ad ae1
配置环路接口。
[edit interfaces] user@R0# set lo0 unit 0 family inet address 10.255.106.107/32 user@R0# set lo0 unit 0 family inet6 address 201:DB8:251::aa:aa:1/128
根据您的网络要求,使用 IPv4 或 IPv6 地址在聚合以太网接口 ae0 上配置 IP 地址。
[edit interfaces] user@R0# set ae0 unit 0 family inet address 10.0.0.1/30
设置路由选项,创建静态路由,然后设置下一跃点地址。
注意:您可以根据网络要求配置 IPv4 或 IPv6 静态路由。
[edit routing-options] user@R0# set nonstop-routing user@R0# set static route 30.30.30.0/30 next-hop 10.0.0.2 user@R0# set rib inet6.0 static route 3ffe::1:2/126 next-hop 5555::2
配置链路聚合控制协议 (LACP)。
[edit interfaces] user@R0# set ae0 aggregated-ether-options lacp active
为聚合以太网接口 ae0 配置 BFD,并指定最小间隔、本地 IP 地址和邻居 IP 地址。
[edit interfaces] user@R0# set ae0 aggregated-ether-options bfd-liveness-detection minimum-interval 100 user@R0# set ae0 aggregated-ether-options bfd-liveness-detection multiplier 3 user@R0# set ae0 aggregated-ether-options bfd-liveness-detection neighbor 10.255.106.102 user@R0# set ae0 aggregated-ether-options bfd-liveness-detection local-address 10.255.106.107 user@R0# set ae0 aggregated-ether-options minimum-links 1 user@R0# set ae0 aggregated-ether-options link-speed 10g
在聚合以太网接口 ae1 上配置 IP 地址。
您可以根据网络要求分配 IPv4 或 IPv6 地址。
[edit interfaces] user@R0# set ae1 unit 0 family inet6 address 5555::1/126
为聚合以太网接口 ae1 配置 BFD。
[edit interfaces] user@R0# set ae1 aggregated-ether-options bfd-liveness-detection minimum-interval 100 user@R0# set ae1 aggregated-ether-options bfd-liveness-detection multiplier 3 user@R0# set ae1 aggregated-ether-options bfd-liveness-detection neighbor 201:DB8:251::bb:bb:1 user@R0# set ae1 aggregated-ether-options bfd-liveness-detection local-address 201:DB8:251::aa:aa:1 user@R0# set ae1 aggregated-ether-options minimum-links 1 user@R0# set ae1 aggregated-ether-options link-speed 10g
注意:从 Junos OS 16.1 版开始,您还可以在微型 BFD 会话中使用 AE 接口地址作为本地地址来配置此功能。
从版本 16.1R2 开始,Junos OS 会在配置提交之前根据接口或环路 IP 地址检查并验证配置的微型 BFD
local-address
。Junos OS 会对 IPv4 和 IPv6 微型 BFD 地址配置执行此检查,如果它们不匹配,则提交失败。为 BFD 配置跟踪选项以进行故障排除。
[edit protocols] user@R0# set bfd traceoptions file bfd user@R0# set bfd traceoptions file size 100m user@R0# set bfd traceoptions file files 10 user@R0# set bfd traceoptions flag all
结果
在配置模式下,输入、show interfaces和show routing-options命令并show protocols确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@R0> show interfaces traceoptions { flag bfd-events; } ge-1/0/1 { unit 0 { family inet { address 20.20.20.1/30; } family inet6 { address 3ffe::1:1/126; } } } xe-4/0/0 { enable; gigether-options { 802.3ad ae0; } } xe-4/0/1 { gigether-options { 802.3ad ae0; } } xe-4/1/0 { enable; gigether-options { 802.3ad ae1; } } xe-4/1/1 { gigether-options { 802.3ad ae1; } } lo0 { unit 0 { family inet { address 10.255.106.107/32; } family inet6 { address 201:DB8:251::aa:aa:1/128; } } } ae0 { aggregated-ether-options { bfd-liveness-detection { minimum-interval 100; neighbor 10.255.106.102; local-address 10.255.106.107; } minimum-links 1; link-speed 10g; lacp { active; } } unit 0 { family inet { address 10.0.0.1/30; } } } ae1 { aggregated-ether-options { bfd-liveness-detection { minimum-interval 100; multiplier 3; neighbor 201:DB8:251::bb:bb:1; local-address 201:DB8:251::aa:aa:1; } minimum-links 1 link-speed 10g; } unit 0 { family inet6 { address 5555::1/126; } } }
user@R0> show protocols bfd { traceoptions { file bfd size 100m files 10; flag all; } }
user@R0> show routing-options nonstop-routing ; rib inet6.0 { static { route 3ffe:1:2/126 { next-hop 5555::2; } } } static { route 30.30.30.0/30 { next-hop 10.0.0.2; } }
如果完成设备配置,请提交配置。
user@R0# commit
验证
确认配置工作正常。
验证独立 BFD 会话是否已启动
目的
验证微型 BFD 会话是否已启动,并查看有关 BFD 会话的详细信息。
行动
在作模式下,输入 show bfd session extensive
命令。
user@R0> show bfd session extensive
Detect Transmit
Address State Interface Time Interval Multiplier
10.255.106.102 Up xe-4/0/0 9.000 3.000 3
Client LACPD, TX interval 0.100, RX interval 0.100
Session up time 4d 23:13, previous down time 00:00:06
Local diagnostic None, remote diagnostic None
Remote heard, hears us, version 1
Replicated
Session type: Micro BFD
Min async interval 0.100, min slow interval 1.000
Adaptive async TX interval 0.100, RX interval 0.100
Local min TX interval 0.100, minimum RX interval 0.100, multiplier 3
Remote min TX interval 3.000, min RX interval 3.000, multiplier 3
Local discriminator 21, remote discriminator 75
Echo mode disabled/inactive
Remote is control-plane independent
Session ID: 0x0
Detect Transmit
Address State Interface Time Interval Multiplier
10.255.106.102 Up xe-4/0/1 9.000 3.000 3
Client LACPD, TX interval 0.100, RX interval 0.100
Session up time 4d 23:13, previous down time 00:00:07
Local diagnostic None, remote diagnostic None
Remote heard, hears us, version 1
Replicated
Session type: Micro BFD
Min async interval 0.100, min slow interval 1.000
Adaptive async TX interval 0.100, RX interval 0.100
Local min TX interval 0.100, minimum RX interval 0.100, multiplier 3
Remote min TX interval 3.000, min RX interval 3.000, multiplier 3
Local discriminator 19, remote discriminator 74
Echo mode disabled/inactive
Remote is control-plane independent
Session ID: 0x0
Detect Transmit
Address State Interface Time Interval Multiplier
201:DB8:251::bb:bb:1 Up xe-4/1/1 9.000 3.000 3
Client LACPD, TX interval 0.100, RX interval 0.100
Session up time 4d 23:13
Local diagnostic None, remote diagnostic None
Remote not heard, hears us, version 1
Replicated
Session type: Micro BFD
Min async interval 0.100, min slow interval 1.000
Adaptive async TX interval 0.100, RX interval 0.100
Local min TX interval 1.000, minimum RX interval 0.100, multiplier 3
Remote min TX interval 3.000, min RX interval 3.000, multiplier 3
Local discriminator 17, remote discriminator 67
Echo mode disabled/inactive, no-absorb, no-refresh
Remote is control-plane independent
Session ID: 0x0
Detect Transmit
Address State Interface Time Interval Multiplier
201:DB8:251::bb:bb:1 UP xe-4/1/0 9.000 3.000 3
Client LACPD, TX interval 0.100, RX interval 0.100
Session up time 4d 23:13
Local diagnostic None, remote diagnostic None
Remote not heard, hears us, version 1
Replicated
Session type: Micro BFD
Min async interval 0.100, min slow interval 1.000
Adaptive async TX interval 0.100, RX interval 0.100
Local min TX interval 1.000, minimum RX interval 0.100, multiplier 3
Remote min TX interval 3.000, min RX interval 3.000, multiplier 3
Local discriminator 16, remote discriminator 66
Echo mode disabled/inactive, no-absorb, no-refresh
Remote is control-plane independent
Session ID: 0x0
4 sessions, 4 clients
Cumulative transmit rate 2.0 pps, cumulative receive rate 1.7 pps
意义
Micro BFD 字段表示在 LAG 中的链路上运行的独立 Micro BFD 会话。TX 间隔 item、RX 间隔 item 输出表示使用 minimum-interval
语句配置的设置。所有其他输出表示 BFD 的默认设置。要修改缺省设置,请在语句下 bfd-liveness-detection
包含可选语句。
查看详细的 BFD 事件
目的
如果需要,查看 BFD 跟踪文件的内容以帮助进行故障排除。
行动
在作模式下,输入 file show /var/log/bfd 命令。
user@R0> file show /var/log/bfd Jun 5 00:48:59 Protocol (1) len 1: BFD Jun 5 00:48:59 Data (9) len 41: (hex) 42 46 44 20 6e 65 69 67 68 62 6f 72 20 31 30 2e 30 2e 30 Jun 5 00:48:59 PPM Trace: BFD neighbor 10.255.106.102 (IFL 349) set, 9 0 Jun 5 00:48:59 Received Downstream RcvPkt (19) len 108: Jun 5 00:48:59 IfIndex (3) len 4: 329 Jun 5 00:48:59 Protocol (1) len 1: BFD Jun 5 00:48:59 SrcAddr (5) len 8: 10.255.106.102 Jun 5 00:48:59 Data (9) len 24: (hex) 00 88 03 18 00 00 00 4b 00 00 00 15 00 2d c6 c0 00 2d c6 Jun 5 00:48:59 PktError (26) len 4: 0 Jun 5 00:48:59 RtblIdx (24) len 4: 0 Jun 5 00:48:59 MultiHop (64) len 1: (hex) 00 Jun 5 00:48:59 Unknown (168) len 1: (hex) 01 Jun 5 00:48:59 Unknown (171) len 2: (hex) 02 3d Jun 5 00:48:59 Unknown (172) len 6: (hex) 80 71 1f c7 81 c0 Jun 5 00:48:59 Authenticated (121) len 1: (hex) 01 Jun 5 00:48:59 BFD packet from 10.0.0.2 (IFL 329), len 24 Jun 5 00:48:59 Ver 0, diag 0, mult 3, len 24 Jun 5 00:48:59 Flags: IHU Fate Jun 5 00:48:59 My discr 0x0000004b, your discr 0x00000015 Jun 5 00:48:59 Tx ivl 3000000, rx ivl 3000000, echo rx ivl 0 Jun 5 00:48:59 [THROTTLE]bfdd_rate_limit_can_accept_pkt: session 10.255.106.102 is up or already in program thread Jun 5 00:48:59 Replicate: marked session (discr 21) for update
意义
BFD 消息正在写入指定的跟踪文件。
为 PIM 配置 BFD
双向转发检测 (BFD) 协议是一种检测网络故障的简单问候机制。BFD 适用于各种网络环境和拓扑结构。一对路由设备交换 BFD 数据包。hello 数据包按指定的定期间隔发送。当路由设备在指定时间间隔后停止接收回复时,将检测到邻接方故障。BFD 故障检测计时器的时间限制比协议无关组播 (PIM) hello 保持时间短,因此检测速度更快。
BFD 故障检测计时器是自适应的,可以调整为更快或更慢。BFD 故障检测计时器值越低,故障检测速度越快,反之亦然。例如,如果邻接失败(即计时器检测故障的速度较慢),计时器可以适应更高的值。或者,邻接方可以协商计时器高于配置值的值。当 BFD 会话翻动在 15 秒内发生 3 次以上时,计时器将适应更高的值。如果本地 BFD 实例是会话翻动的原因,则回退算法会将接收 (Rx) 间隔增加两个。如果远程 BFD 实例是会话翻动的原因,则传输 (Tx) 间隔将增加 2。您可以使用 clear bfd adaptation
命令将 BFD 间隔计时器返回到其配置的值。命令 clear bfd adaptation
是无中断的,这意味着命令不会影响路由设备上的流量。
您必须指定最小传输间隔和最小接收间隔,才能在 PIM 上启用 BFD。
要启用故障检测,请执行以下作:
另见
在 SRX 系列防火墙上启用专用和实时 BFD
默认情况下,SRX 系列防火墙在集中式 BFD 模式下运行。它们还支持分布式 BFD、专用 BFD 和实时 BFD。
专用 BFD
启用专用 BFD 会影响流量吞吐量,因为一个 CPU 内核已从数据平面处理中移除。
要在 SRX300、SRX320、SRX340、SRX345、SRX380、SRX1500、vSRX 和 vSRX3.0 设备上启用专用 BFD:
-
在
[edit chassis]
层次结构级别包含dedicated-ukern-cpu
语句,然后提交配置。-
[edit]
-
user@host# set chassis dedicated-ukern-cpu
user@host# commit
提交配置时,将显示以下警告消息,用于重新启动系统:
warning: Packet processing throughput may be impacted in dedicated-ukernel-cpu mode. warning: A reboot is required for dedicated-ukernel-cpu mode to be enabled. Please use "request system reboot" to reboot the system. commit complete
-
-
重新启动设备以启用配置:
-
user@host> request system reboot
-
-
验证是否启用了专用 BFD。
user@host> show chassis dedicated-ukern-cpu
Dedicated Ukern CPU Status: Enabled
实时 BFD
启用实时 BFD 不会影响数据平面性能。在分布式模式下处理 BFD 的数据包转发引擎进程具有更高的优先级。这适用于使用的 BFD 会话数不到最大 BFD 会话数一半的方案。请参阅 此列表 ,了解每个 SRX 设备支持的最大 BFD 会话数。
有关分布式模式下的 BFD 的详细信息,请参阅 了解 BFD 如何检测网络故障。
要在 SRX300、SRX320、SRX340 和 SRX345 设备上启用实时 BFD,请执行以下作:
-
在
[edit chassis]
层次结构级别包含realtime-ukern-thread
语句,然后提交配置。-
[编辑]
-
user@host# set chassis realtime-ukern-thread
user@host# commit
提交配置时,将显示以下警告消息,用于重新启动系统:
WARNING: realtime-ukern-thread is enable. Please use the command request system reboot.
-
-
重新启动设备以启用配置:
-
user@host> request system reboot
-
-
验证是否启用了实时 BFD。
user@host> show chassis realtime-ukern-thread
realtime Ukern thread Status: Enabled
按 SRX 平台划分的 BFD 支持
SRX 系列防火墙支持以下最大 BFD 会话数:
-
在 SRX300 和 SRX320 设备上最多可以进行四个会话。
-
在 SRX340、SRX345 和 SRX380 设备上最多 50 个会话。
-
在 SRX1500 设备上最多支持 120 个会话。
在所有 SRX 系列防火墙上,由于 CPU 密集型命令和 SNMP 演练等原因触发的高 CPU 使用率会导致 BFD 协议在处理大型 BGP 更新时发生抖动。(平台是否支持取决于设备安装的 Junos OS 版本。)
在机箱群集模式下运行的 SRX 系列防火墙仅支持 BFD 集中模式。
下表显示了每个 SRX 系列防火墙支持的 BFD 模式。
SRX 系列防火墙 |
集中式 BFD 模式 |
分布式 BFD |
实时 BFD |
专用核心 |
---|---|---|---|---|
SRX300 |
违约 |
配置 |
配置(可选) |
不支持 |
SRX320 |
违约 |
配置 |
配置(可选) |
不支持 |
SRX340 |
违约 |
配置 |
配置 |
配置(可选) |
SRX345 |
违约 |
配置 |
配置 |
配置(可选) |
SRX380 |
违约 |
配置 |
配置 |
配置(可选) |
SRX1500 | BFD 故障检测时间 >= 500 毫秒且未启用专用模式 | BFD 故障检测时间< 500 毫秒且未启用专用模式 | 不支持 | 配置 |
SRX4100 | BFD 故障检测时间 >= 500 ms | BFD 故障检测时间< 500 毫秒 | 不支持 | 不支持 |
SRX4200 | BFD 故障检测时间 >= 500 ms | BFD 故障检测时间< 500 毫秒 | 不支持 | 不支持 |
SRX4600 | BFD 故障检测时间 >= 500 ms | BFD 故障检测时间< 500 毫秒 | 不支持 | 不支持 |
带 SPC2 卡的 SRX5000 系列设备 |
违约 |
不支持 |
不支持 |
不支持 |
带 SPC3 卡的 SRX5000 系列设备 |
BFD 故障检测时间 >= 500 ms |
BFD 故障检测时间< 500 毫秒 |
不支持 |
不支持 |
vSRX 3.0 |
BFD 故障检测时间> 500ms | BFD 故障检测时间 <= 500ms |
不支持 |
配置 |