配置动态列表下一跳
远程 PE 上的路由表有一个下一跳条目,用于以太网分段标识符 (ESI) 路由,以及用于多宿主 PE 设备的多个下一跳元素。对于 EVPN 主动-主动多宿主设备,ESI 路由指向两个下一跳元素。在动态列出下一跃点之前,当 CE 设备与多宿主 PE 设备之间的链路中断时,路由协议进程 (rpd) 会移除 ESI 路由的下一跃点条目。然后,rpd 将为 ESI 创建一个新的下一跳条目,从而导致大量 MAC 路由撤销和添加。
从 Junos OS 17.4R1 版开始,Junos OS 支持 EVPN 网络中的动态列表下一跃点功能。现在,当 CE 设备与多宿主 PE 设备之间的链路断开时,rpd 不会移除整个下一跃点并为 ESI 创建新的下一跳,而是从 ESI 路由的动态列表下一跃点条目中移除受影响的下一跳元素。动态列表下一跳具有减少大量 MAC 路由撤销、提高设备性能和缩短网络收敛时间的好处。
要启用动态列表下一跃点功能,请将语句包含在 dynamic-list-next-hop 层次结构中 [edit routing-options forwarding-table] 。
如果要执行统一不中断服务的软件升级 (ISSU) 以从低于 Junos OS 17.4R1 版的 Junos OS 版本升级设备,则必须先升级主路由引擎和备份路由引擎,然后才能启用动态列表下一跃点功能。
要在启用动态列表下一跃点功能时禁用该功能,请使用语 delete routing-options forwarding-table dynamic-list-next-hop 句。
要显示路由引擎转转发表中的下一跃点元素,请使用 show route label 和 show route forwarding-table 命令。
命令的 show route label detail 以下示例输出显示了启用了动态列表下一跃点功能的 ESI 的两个间接下一跃点。
user@host> show route label 299952 detail
mpls.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)
299952 (1 entry, 1 announced)
TSI:
KRT in-kernel 299952 /52 -> {Dyn list:indirect(1048577), indirect(1048574)}
*EVPN Preference: 7
Next hop type: Dynamic List, Next hop index: 1048575
Address: 0x13f497fc
Next-hop reference count: 5
Next hop: ELNH Address 0xb7a3d90 uflags EVPN data
Next hop type: Indirect, Next hop index: 0
Address: 0xb7a3d90
Next-hop reference count: 3
Protocol next hop: 10.255.255.2
Label operation: Push 301344
Indirect next hop: 0x135b5c00 1048577 INH Session ID: 0x181
Next hop type: Router, Next hop index: 619
Address: 0xb7a3d30
Next-hop reference count: 4
Next hop: 1.0.0.4 via ge-0/0/1.0
Label operation: Push 301344, Push 299792(top)
Label TTL action: no-prop-ttl, no-prop-ttl(top)
Load balance label: Label 301344: None; Label 299792: None;
Label element ptr: 0xb7a3cc0
Label parent element ptr: 0xb7a34e0
Label element references: 1
Label element child references: 0
Label element lsp id: 0
Next hop: ELNH Address 0xb7a37f0 uflags EVPN data
Next hop type: Indirect, Next hop index: 0
Address: 0xb7a37f0
Next-hop reference count: 3
Protocol next hop: 10.255.255.3
Label operation: Push 301632
Indirect next hop: 0x135b5480 1048574 INH Session ID: 0x180
Next hop type: Router, Next hop index: 600
Address: 0xb7a3790
Next-hop reference count: 4
Next hop: 1.0.0.4 via ge-0/0/1.0
Label operation: Push 301632, Push 299776(top)
Label TTL action: no-prop-ttl, no-prop-ttl(top)
Load balance label: Label 301632: None; Label 299776: None;
Label element ptr: 0xb7a3720
Label parent element ptr: 0xb7a3420
Label element references: 1
Label element child references: 0
Label element lsp id: 0
State: <Active Int>
Age: 1:18
Validation State: unverified
Task: evpn global task
Announcement bits (2): 1-KRT 2-evpn global task
AS path: I
Routing Instance blue, Route Type Egress-MAC, ESI 00:11:22:33:44:55:66:77:88:99
命令的 show route forwarding table 以下示例输出显示了具有多宿主路由的目标的两个下一跃点条目。
user@host> show route forwarding-table label 299952 extensive
MPLS:
Destination: 299952
Route type: user
Route reference: 0 Route interface-index: 0
Multicast RPF nh index: 0
P2mpidx: 0
Flags: sent to PFE, rt nh decoupled
Next-hop type: indirect Index: 1048575 Reference: 2
Nexthop:
Next-hop type: composite Index: 601 Reference: 2
Next-hop type: indirect Index: 1048574 Reference: 3
Nexthop: 1.0.0.4
Next-hop type: Push 301632, Push 299776(top) Index: 600 Reference: 2
Load Balance Label: None
Next-hop interface: ge-0/0/1.0
Next-hop type: indirect Index: 1048577 Reference: 3
Nexthop: 1.0.0.4
Next-hop type: Push 301344, Push 299792(top) Index: 619 Reference: 2
Load Balance Label: None
Next-hop interface: ge-0/0/1.0
以下示例显示了 show route forwarding table 禁用其中一个 PE 设备后的命令输出。它显示一个下一跃点元素和一个空的下一跃点元素。
user@host> show route forwarding-table label 299952 extensive
Routing table: default.mpls [Index 0]
MPLS:
Destination: 299952
Route type: user
Route reference: 0 Route interface-index: 0
Multicast RPF nh index: 0
P2mpidx: 0
Flags: sent to PFE, rt nh decoupled
Next-hop type: indirect Index: 1048575 Reference: 2
Nexthop:
Next-hop type: composite Index: 601 Reference: 2
Next-hop type: indirect Index: 1048577 Reference: 3
Nexthop: 1.0.0.4
Next-hop type: Push 301344, Push 299792(top) Index: 619 Reference: 2
Load Balance Label: None
Next-hop interface: ge-0/0/1.0