BGP
nv show router bgp
显示全局 BGP 配置。
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show router bgp
applied pending
------------------------------ ----------- -----------
enable on on
autonomous-system 65101 65101
router-id 10.10.10.1 10.10.10.1
policy-update-timer 5 5
graceful-shutdown off off
wait-for-install off off
graceful-restart
mode helper-only helper-only
restart-time 120 120
path-selection-deferral-time 360 360
stale-routes-time 360 360
convergence-wait
time 0 0
establish-wait-time 0 0
queue-limit
input 10000 10000
output 10000 10000
nv show router bgp convergence-wait
显示全局只读模式配置。只读模式在重启 BGP 进程时减少 CPU 和网络使用率。
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show router bgp convergence-wait
applied
------------------- -------
time 0
establish-wait-time 0
nv show router bgp graceful-restart
显示全局 BGP 优雅重启配置。BGP 优雅重启最大限度地减少 BGP 重启时发生的负面影响。
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show router bgp graceful-restart
applied
---------------------------- -----------
mode helper-only
path-selection-deferral-time 360
restart-time 120
stale-routes-time 360
nv show router bgp queue-limit
显示输入和输出消息队列配置设置。
版本历史
在 Cumulus Linux 5.7.0 中引入
示例
cumulus@switch:~$ nv show router bgp queue-limit
applied
------ -------
input 2048
output 2048
nv show vrf <vrf-id> router bgp
显示指定 VRF 的 BGP 配置信息摘要。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp
operational applied pending
---------------------------- ----------- ------------- -------------
enable on on
autonomous-system auto auto
router-id 10.10.10.1 auto auto
rd none none
address-family
ipv4-unicast
rib-filter none none
route-export
to-evpn
enable off off
route-import
from-vrf
enable off off
admin-distance
external 20 20
internal 200 200
multipaths
ebgp 64 64
ibgp 64 64
compare-cluster-length off off
enable on on
redistribute
static
enable off off
connected
enable on on
metric auto auto
route-map none none
...
nv show vrf <vrf-id> router bgp address-family
显示指定 VRF 的所有地址族(IPv4 单播、IPv6 单播和 EVPN)的 BGP 配置信息摘要。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family
operational applied pending
-------------------------- ----------- ------- -------
ipv4-unicast
rib-filter none none
route-export
to-evpn
enable off off
route-import
from-vrf
enable off off
admin-distance
external 20 20
internal 200 200
multipaths
ebgp 64 64
ibgp 64 64
compare-cluster-length off off
enable on on
redistribute
static
enable off off
connected
enable on on
metric auto auto
route-map none none
kernel
enable off off
ospf
enable off off
[network]
[aggregate-route]
ipv6-unicast
enable off off
l2vpn-evpn
enable on on
nv show vrf <vrf-id> router bgp address-family ipv4-unicast
显示指定 VRF 的 BGP IPv4 配置信息摘要。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast
operational applied pending
------------------------ ----------- ------- -------
rib-filter none none
route-export
to-evpn
enable off off
route-import
from-vrf
enable off off
admin-distance
external 20 20
internal 200 200
multipaths
ebgp 64 64
ibgp 64 64
compare-cluster-length off off
enable on on
redistribute
static
enable off off
connected
enable on on
metric auto auto
route-map none none
kernel
enable off off
ospf
enable off off
[network]
[aggregate-route]
...
nv show vrf <vrf-id> router bgp address-family ipv4-unicast admin-distance
显示为指定 VRF 配置的 BGP IPv4 管理距离。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast admin-distance
operational applied
-------- ----------- -------
external 20
internal 200
nv show vrf <vrf-id> router bgp address-family ipv4-unicast aggregate-route
显示指定 VRF 的 BGP IPv4 聚合路由(路由表中的一系列网络聚合为单个前缀)。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast aggregate-route
nv show vrf <vrf-id> router bgp address-family ipv4-unicast aggregate-route <aggregate-route-id>
显示关于特定 BGP IPv4 聚合路由(路由表中的一系列网络聚合为单个前缀)的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<aggregate-route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast aggregate-route 10.1.0.0/16
applied pending
------------ ----------- ---------
as-set on on
route-map routemap1
summary-only on on
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib
显示指定 VRF 的 IPv4 本地 RIB。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route
命令。
nv show vrf
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib
IPV4 Routes
==============
PathCount - Number of paths present for the prefix, MultipathCount - Number of paths that are part of the ECMP, DestFlags - * - bestpath-exists, w - fib-wait- for-install, s - fib-suppress, i - fib-installed, x - fib-install-failed, LocalPref - Local Preference, Best - Best path, Reason - Reason for selection
Prefix PathCount MultipathCount DestFlags Nexthop Metric Weight LocalPref Aspath Best Reason Flags
--------------- --------- -------------- --------------- ------- ------ ------ --------- ------ ---- ------ -----
10.0.1.12/32 3 1 bestpath-exists
10.0.1.34/32 5 4 bestpath-exists
10.0.1.255/32 5 4 bestpath-exists
10.10.10.1/32 1 1 bestpath-exists
10.10.10.2/32 5 1 bestpath-exists
10.10.10.3/32 5 4 bestpath-exists
10.10.10.4/32 5 4 bestpath-exists
10.10.10.63/32 5 4 bestpath-exists
10.10.10.64/32 5 4 bestpath-exists
10.10.10.101/32 2 1 bestpath-exists
10.10.10.102/32 2 1 bestpath-exists
10.10.10.103/32 2 1 bestpath-exists
10.10.10.104/32 2 1 bestpath-exists
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route
显示关于本地 RIB 中 IPv4 路由的信息。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route
LocalPref - Local Preference, Best - Best path, Reason - Reason for selection
IPv4 Prefix Nexthop Metric Weight LocalPref Aspath Best Reason Flags
--------------- ------- ------ ------ --------- ------ ---- ---------… ---------
10.0.0.9/32 swp51 0 65103 on Router ID multipath
65199
swp52 0 65103 multipath
65199
10.0.0.10/32 swp51 0 65103 on Router ID multipath
65199
swp52 0 65103 multipath
65199
10.10.10.1/32 0 32768 on First path
received
10.10.10.2/32 swp51 0 65102 multipath
65199
swp52 0 65102 on Older Path multipath
65199
10.10.10.3/32 swp51 0 65103 multipath
65199
swp52 0 65103 on Older Path multipath
65199
10.10.10.4/32 swp51 0 65104 multipath
65199
swp52 0 65104 on Older Path multipath
65199
10.10.10.101/32 swp51 0 65199 on First path
received
10.10.10.102/32 swp52 0 65199 on First path
received
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id>
显示关于本地 RIB 中指定 IPv4 路由的信息,例如路径通告到的 BGP 邻居和路径计数。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32
operational applied
--------------- ----------- -------
[advertised-to] swp51
[advertised-to] swp52
[path] 1
[path] 2
path-count 2
multipath-count 1
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path
显示关于本地 RIB 中指定 IPv4 路由的路径信息。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
在命令末尾添加 -o json
以更易读的格式查看输出。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.0.0.9/32 path -o json
{
"1": {
"aspath": {
"65002": {}
},
"bestpath": {
"from-as": 65002,
"overall": "yes",
"selection-reason": "First path received"
},
"flags": {
"bestpath": {},
"valid": {}
},
"flags-string": "*v",
"last-update": "2024-08-05T03:51:08Z",
"metric": 0,
"nexthop": {
"1": {
"accessible": "on",
"afi": "ipv6",
"ip": "fe80::4ab0:2dff:fe08:9898",
"metric": 0,
"scope": "global"
},
"2": {
"accessible": "on",
"afi": "ipv6",
"ip": "fe80::4ab0:2dff:fe08:9898",
"scope": "link-local",
"used": "on"
}
},
"nexthop-count": 2,
"origin": "incomplete",
"path-from": "external",
"peer": {
"hostname": "spine01",
"id": "fe80::4ab0:2dff:fe08:9898",
"interface": "swp51",
"router-id": "10.10.10.101",
"type": "external"
},
"valid": "on"
},
"2": {
"aspath": {
"65103": {},
"65199": {}
},
"bestpath": {
"from-as": 65199,
"overall": "on",
"selection-reason": "Older Path"
},
"flags": {
"multipath": {}
},
"last-update": 1682960995,
"nexthop": {
"1": {
"accessible": "on",
"afi": "ipv6",
"ip": "fe80::4ab0:2dff:fed8:67cb",
"metric": 0,
"scope": "global"
},
"2": {
"accessible": "on",
"afi": "ipv6",
"ip": "fe80::4ab0:2dff:fed8:67cb",
"scope": "link-local",
"used": "on"
}
},
"nexthop-count": 2,
"origin": "incomplete",
"path-from": "external",
"peer": {
"hostname": "spine02",
"id": "fe80::4ab0:2dff:fed8:67cb",
"interface": "swp52",
"router-id": "10.10.10.102",
"type": "external"
},
"valid": "on"
}
}
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id>
显示关于本地 RIB 中特定 IPv4 路由路径的信息。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
在命令末尾添加 -o json
以更易读的格式查看输出。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.0.0.9/32 path 1 -o json
{
"1": {
"aspath": {
"65002": {}
},
"bestpath": {
"from-as": 65002,
"overall": "yes",
"selection-reason": "First path received"
},
"flags": {
"bestpath": {},
"valid": {}
},
"flags-string": "*v",
"last-update": "2024-08-05T03:51:08Z",
"metric": 0,
"nexthop": {
"1": {
"accessible": "on",
"afi": "ipv6",
"ip": "fe80::4ab0:2dff:fe08:9898",
"metric": 0,
"scope": "global"
},
"2": {
"accessible": "on",
"afi": "ipv6",
"ip": "fe80::4ab0:2dff:fe08:9898",
"scope": "link-local",
"used": "on"
}
},
"nexthop-count": 2,
"origin": "incomplete",
"path-from": "external",
"peer": {
"hostname": "spine01",
"id": "fe80::4ab0:2dff:fe08:9898",
"interface": "swp51",
"router-id": "10.10.10.101",
"type": "external"
},
"valid": "on"
}
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> aspath
显示本地 RIB 中指定 IPv4 路由的 AS 路径。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 aspath
Aspath
------
65103
65199
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> bestpath
显示最佳路径信息,例如本地 RIB 中指定 IPv4 路由的选择原因。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 bestpath
operational applied
---------------- ----------- -------
from-as 65199
overall on
selection-reason Older Path
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> community
显示本地 RIB 中指定 IPv4 路由路径的 community 列表的 community 名称。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 community
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> ext-community
显示本地 RIB 中指定 IPv4 路由路径的扩展 community 列表的 community 名称。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 ext-community
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> flags
显示本地 RIB 中指定 IPv4 路由的路由路径标志。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 flags
operational applied
----------- -------
multipath
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> large-community
显示本地 RIB 中指定 IPv4 路由路径的大型 community 列表的 community 名称。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 large-community
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> nexthop
显示关于本地 RIB 中指定 IPv4 路由路径的下一跳的信息。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 nexthop
Nexthop accessible afi ip metric scope used
------- ---------- ---- ------------------------- ------ ---------- ----
1 on ipv6 fe80::4ab0:2dff:fed8:67cb 0 global
2 on ipv6 fe80::4ab0:2dff:fed8:67cb link-local on
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> nexthop <nexthop-id>
显示本地 RIB 中指定 IPv4 路由路径的下一跳信息。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法 |
<path-id> | 路径 ID。 |
<nexthop-id> | 下一跳 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 nexthop 2
operational applied
---------- ------------------------- -------
ip fe80::202:ff:fe00:26
afi ipv6
scope global
accessible on
metric 0
nv show vrf <vrf-id> router bgp address-family ipv4-unicast loc-rib route <route-id> path <path-id> peer
显示本地 RIB 中指定 IPv4 路由路径的 BGP 邻居信息。
Cumulus Linux 5.11 及更高版本不再提供此命令。请改用 nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
命令。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast loc-rib route 10.10.10.3/32 path 2 peer
operational applied
--------- ------------------------- -------
hostname spine02
id fe80::4ab0:2dff:fed8:67cb
interface swp52
router-id 10.10.10.102
type external
nv show vrf <vrf-id> router bgp address-family ipv4-unicast multipaths
显示指定 VRF 的 BGP IPv4 多路径配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast multipaths
operational applied
---------------------- ----------- -------
compare-cluster-length off
ebgp 64
ibgp 64
nv show vrf <vrf-id> router bgp address-family ipv4-unicast network
显示指定 VRF 的 BGP IPv4 静态网络。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast network
No Data
nv show vrf <vrf-id> router bgp address-family ipv4-unicast network <static-network-id>
显示关于指定 VRF 的特定 BGP IPv4 静态网络的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<static-network-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast network 10.10.10.101/32
operational applied
--------- ----------- -------
route-map HI-PRIO
nv show vrf <vrf-id> router bgp address-family ipv4-unicast redistribute
显示指定 VRF 的 BGP IPv4 路由重分发配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast redistribute
applied pending
----------- ------- -------
static
enable off off
connected
enable on on
metric auto auto
route-map none none
kernel
enable off off
ospf
enable off off
nv show vrf <vrf-id> router bgp address-family ipv4-unicast redistribute connected
显示指定 VRF 的 BGP IPv4 连接路由重分发配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast redistribute connected
applied pending
--------- ------- -------
enable on on
metric auto auto
route-map none none
nv show vrf <vrf-id> router bgp address-family ipv4-unicast redistribute kernel
显示指定 VRF 的 BGP IPv4 内核路由重分发配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast redistribute kernel
applied pending
------ ------- -------
enable off off
nv show vrf <vrf-id> router bgp address-family ipv4-unicast redistribute ospf
显示将 OSPF IPv4 路由重分发到指定 VRF 的 BGP 中的配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast redistribute ospf
applied pending
------ ------- -------
enable off off
nv show vrf <vrf-id> router bgp address-family ipv4-unicast redistribute static
显示指定 VRF 的 IPv4 BGP 静态路由重分发配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast redistribute static
applied pending
------ ------- -------
enable off off
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route
显示 BGP IPv4 路由表。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.11.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route
PathCount - Number of paths present for the prefix, MultipathCount - Number of
paths that are part of the ECMP, DestFlags - * - bestpath-exists, w - fib-wait-
for-install, s - fib-suppress, i - fib-installed, x - fib-install-failed
Prefix PathCount MultipathCount DestFlags
--------------- --------- -------------- ---------
10.0.1.12/32 2 1 *
10.0.1.34/32 5 4 *
10.0.1.255/32 5 4 *
10.10.10.1/32 1 1 *
10.10.10.2/32 5 1 *
10.10.10.3/32 5 4 *
10.10.10.4/32 5 4 *
10.10.10.63/32 5 4 *
10.10.10.64/32 5 4 *
10.10.10.101/32 2 1 *
10.10.10.102/32 2 1 *
10.10.10.103/32 2 1 *
10.10.10.104/32 2 1 *
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route <route-id>
显示关于 BGP IPv4 路由的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<route-id> | IPv4 地址和路由前缀,采用 CIDR 表示法。 |
版本历史
在 Cumulus Linux 5.11.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route 10.10.10.3/32
operational
--------------- -----------
path-count 5
multipath-count 4
path
=======
Origin - Route origin, Local - Locally originated route, Sourced - Sourced
route, Weight - Route weight, Metric - Route metric, LocalPref - Route local
preference, PathFrom - Route path origin, LastUpdate - Route last update,
NexthopCnt - Number of nexthops, Flags - = - multipath, * - bestpath, v - valid,
s - suppressed, R - removed, S - stale
Path Origin Local Sourced Weight Metric LocalPref PathFrom LastUpdate NexthopCnt Flags
---- ---------- ----- ------- ------ ------ --------- -------- -------------------- ---------- -----
1 incomplete external 2024-11-23T12:58:55Z 2 =*v
2 incomplete external 2024-11-23T12:59:04Z 2 =v
3 incomplete external 2024-11-23T12:58:55Z 2 =v
4 incomplete external 2024-11-23T12:59:03Z 2 =v
5 incomplete external 2024-11-23T12:59:03Z 2 *v
advertised-to
================
Neighbor hostname
------------- --------
peerlink.4094 leaf02
swp51 spine01
swp52 spine02
swp53 spine03
swp54 spine04
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route-count
显示 BGP IPv4 路由和路径计数。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.11.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route-count
operational applied
------------ ----------- -------
total-routes 13 13
total-paths 46 46
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route-export
显示指定 VRF 的 BGP IPv4 路由导出配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route-export
operational applied
-------------- ----------- -------
to-evpn
enable off
to-vrf
[list] none
[route-target] none
rd none
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route-export to-evpn
显示使用 EVPN type-5 路由的基于 IPv4 前缀的路由的配置。Type-5 路由(或前缀路由)主要路由到数据中心结构外部的目的地。EVPN 前缀路由携带第 3 层 VNI 和路由器 MAC 地址,并遵循对称路由模型以路由到目标前缀。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route-export to-evpn
route-export to-evpn
operational applied
------ ----------- -------
enable off
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route-import
显示关于指定 VRF 的 BGP IPV4 路由导入(路由泄漏)的配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route-import
operational applied
-------------- ----------- -------
from-vrf
enable off
[list] none
[route-target] none
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route-import from-vrf
显示关于 VRF 到 VRF IPv4 路由泄漏的配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route-import from-vrf
operational applied
------ ----------- -------
enable off
[list] none
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route-import from-vrf list
显示从 VRF 导入的 BGP RIB 中的 IPv4 路由。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route-import from-vrf list
----
none
nv show vrf <vrf-id> router bgp address-family ipv4-unicast route-import from-vrf list <leak-vrf-id>
显示在 VRF 之间泄漏的 BGP RIB 中的 IPv4 路由。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<leak-vrf-id> | 从中泄漏路由的 VRF。 |
版本历史
在 Cumulus Linux 5.1.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast route-import from-vrf list BLUE
----
none
nv show vrf <vrf-id> router bgp address-family ipv4-unicast soo-route
显示 BGP Site-of-Origin 路由。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.8.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast soo-route
nv show vrf <vrf-id> router bgp address-family ipv4-unicast soo-route <ip-address>
显示关于特定 BGP Site-of-Origin 路由的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<ip-address> | IP 地址。 |
版本历史
在 Cumulus Linux 5.8.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast soo-route 10.10.10.5
nv show vrf <vrf-id> router bgp address-family ipv4-unicast update-group
显示指定 VRF 的 BGP IPv4 更新组。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast update-group
RouteMap - Outbound route map, MinAdvInterval - Minimum route advertisement
interval, CreationTime - Time when the update group was created, LocalAsChange -
LocalAs changes for inbound route, Flags - r - replace-as, x - no-prepend
UpdateGrp RouteMap MinAdvInterval CreationTime LocalAsChange Flags
--------- -------- -------------- -------------------- ------------- -----
1 1 2024-08-05T03:51:08Z
nv show vrf <vrf-id> router bgp address-family ipv4-unicast update-group <group-id>
显示关于指定 VRF 中特定 BGP IPv4 更新组的信息。
在 Cumulus Linux 5.10 及更早版本中,在命令末尾添加 -o json
以更易读的格式查看输出。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<group-id> | 组 ID。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast update-group 1
operational
-------------------------------- --------------------
update-group-id 1
min-route-advertisement-interval 0
create-time 2024-11-15T10:01:47Z
sub-group
============
CreateTime - Time when the sub group was created, AdvRouteCnt - Number of routes
advertised to peer, Refresh - Indicates if subgroup requires refresh,
TotalQueuePkt - Total packets in queue, TotalEnqueuePkt - Total packets
enqueued, PktQueueLength - Packet queue length, Neighbor - Sub group peer info
GrpID CreateTime AdvRouteCnt Refresh TotalQueuePkt TotalEnqueuePkt PktQueueLength Neighbor
----- -------------------- ----------- ------- ------------- --------------- -------------- -------------
1 2024-11-15T10:01:47Z 13 off 31 31 0 peerlink.4094
swp52
swp53
swp54
nv show vrf <vrf-id> router bgp address-family ipv4-unicast update-group <group-id> sub-group
显示指定 VRF 中特定 BGP IPv4 更新组的子组。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<group-id> | 组 ID。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp address-family ipv4-unicast update-group 1 sub-group
CreateTime - Time when the sub group was created, AdvRouteCnt - Number of routes
advertised to peer, Refresh - Indicates if subgroup requires refresh,
TotalQueuePkt - Total packets in queue, TotalEnqueuePkt - Total packets
enqueued, PktQueueLength - Packet queue length, Neighbor - Sub group peer info
GrpID CreateTime AdvRouteCnt Refresh TotalQueuePkt TotalEnqueuePkt PktQueueLength Neighbor
----- -------------------- ----------- ------- ------------- --------------- -------------- -------------
1 2024-11-15T10:01:47Z 13 off 31 31 0 peerlink.4094
swp52
swp53
swp54
nv show vrf <vrf-id> router bgp confederation
显示 BGP 联盟配置。为了减少 iBGP 对等连接的数量,配置联盟以将 AS 划分为更小的子 AS。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.8.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp confederation
operational applied
----------- ----------- -----------
id 2
[member-as] 65101-65104
nv show vrf <vrf-id> router bgp confederation member-as
显示 BGP 联盟成员 AS。BGP 联盟将大型 AS 划分为子自治系统,这些子自治系统通过子 AS 号唯一标识。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.8.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp confederation member-as
No Data
nv show vrf <vrf-id> router bgp dynamic-neighbor
显示交换机上的 BGP 动态邻居配置。BGP 动态邻居为 BGP 对等组提供指定 IPv4 或 IPv6 地址范围内的远程邻居的 BGP 对等连接。您可以将每个范围配置为子网 IP 地址。
在配置动态邻居后,BGP 扬声器可以侦听并与 IP 地址范围内且映射到对等组的任何邻居建立对等关系。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.3.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp dynamic-neighbor
[listen-range] 10.0.1.0/24
limit 5
nv show vrf <vrf-id> router bgp dynamic-neighbor listen-range
显示 BGP 对远程邻居进行对等连接的地址范围配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.3.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp dynamic-neighbor listen-range
No Data
nv show vrf <vrf-id> router bgp dynamic-neighbor listen-range <ip-sub-prefix-id>
显示关于 BGP 对远程邻居进行对等连接的特定地址范围的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<ip-sub-prefix-id> | 地址范围。 |
版本历史
在 Cumulus Linux 5.3.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp dynamic-neighbor listen-range 10.0.1.0/24
operational applied
---------- ----------- -------
peer-group SPINE
nv show vrf <vrf-id> router bgp neighbor
显示关于所有 BGP 邻居的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor
AS - Remote Autonomous System, PeerEstablishedTime - Peer established time in
UTC format, UpTime - Uptime in milliseconds, Afi-Safi - Address family, PfxSent
- Transmitted prefix counter, PfxRcvd - Recieved prefix counter
Neighbor AS State PeerEstablishedTime UpTime MsgRcvd MsgSent Afi-Safi PfxSent PfxRcvd
------------- ----- ----------- -------------------- ------- ------- ------- ------------ ------- -------
peerlink.4094 65102 established 2024-11-23T12:58:56Z 2136000 800 787 ipv4-unicast 13 12
l2vpn-evpn 63 45
swp51 65199 established 2024-11-23T12:58:54Z 2136000 803 786 ipv4-unicast 13 8
l2vpn-evpn 63 45
swp52 65199 established 2024-11-23T12:59:02Z 2136000 797 782 ipv4-unicast 13 8
l2vpn-evpn 63 45
swp53 65199 established 2024-11-23T12:58:54Z 2136000 803 786 ipv4-unicast 13 8
l2vpn-evpn 63 45
swp54 65199 established 2024-11-23T12:59:01Z 2136000 797 783 ipv4-unicast 13 8
l2vpn-evpn 63 45
nv show vrf <vrf-id> router bgp neighbor <neighbor-id>
显示指定 BGP 邻居的全局配置和统计信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51
operational applied
----------------------------- ------------------------- ---------------------------------------
password $nvsec$d1a028e8c7f97db92876c2a30fcc403f
enforce-first-as off
passive-mode off
nexthop-connected-check on
description none
bfd
enable off
ttl-security
enable on off
hops 1
local-as
enable off
timers
keepalive 3 auto
hold 9 auto
connection-retry 10 auto
route-advertisement none auto
address-family
ipv4-unicast
enable on
route-reflector-client off
route-server-client off
soft-reconfiguration off
nexthop-setting auto
add-path-tx off
attribute-mod
aspath off on
med off on
nexthop off on
aspath
replace-peer-as off
private-as none
allow-my-asn
enable off
graceful-restart
rx-eof-rib off
tx-eof-rib off
weight 0
community-advertise
regular on on
extended on on
large off off
conditional-advertise
enable off
policy
inbound
route-map none
prefix-list none
aspath-list none
...
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family
显示指定 BGP 邻居的所有地址族配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family
operational applied
--------------------------- ----------- -------
ipv4-unicast
enable on
route-reflector-client off
route-server-client off
soft-reconfiguration off
nexthop-setting auto
add-path-tx off
attribute-mod
aspath off on
med off on
nexthop off on
aspath
replace-peer-as off
private-as none
allow-my-asn
enable off
graceful-restart
rx-eof-rib off
tx-eof-rib off
weight 0
community-advertise
regular on on
extended on on
large off off
conditional-advertise
enable off
...
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast
显示指定 BGP IPv4 邻居的配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast
operational applied
------------------------- ----------- -------
enable on
route-reflector-client off
route-server-client off
soft-reconfiguration off
nexthop-setting auto
add-path-tx off
attribute-mod
aspath off on
med off on
nexthop off on
aspath
replace-peer-as off
private-as none
allow-my-asn
enable off
graceful-restart
rx-eof-rib off
tx-eof-rib off
weight 0
...
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast advertised-routes
PathCount - Number of paths present for the prefix, MultipathCount - Number of
paths that are part of the ECMP
IPv4 Prefix PathCount MultipathCount DestFlags
--------------- --------- -------------- ---------------
10.0.1.12/32 2 1 bestpath-exists
10.0.1.34/32 5 4 bestpath-exists
10.0.1.255/32 5 4 bestpath-exists
10.10.10.1/32 1 1 bestpath-exists
10.10.10.2/32 5 1 bestpath-exists
10.10.10.3/32 5 4 bestpath-exists
10.10.10.4/32 5 4 bestpath-exists
10.10.10.63/32 5 4 bestpath-exists
10.10.10.64/32 5 4 bestpath-exists
10.10.10.101/32 2 1 bestpath-exists
10.10.10.102/32 2 1 bestpath-exists
10.10.10.103/32 2 1 bestpath-exists
10.10.10.104/32 2 1 bestpath-exists
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id>
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 通告路由的信息。
在 Cumulus Linux 5.10 及更早版本中,在命令末尾添加 -o json
以更易读的格式查看输出。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32
operational
--------------- -----------
path-count 4
multipath-count 3
path
=======
Origin - Route origin, Local - Locally originated route, Sourced - Sourced
route, Weight - Route weight, Metric - Route metric, LocalPref - Route local
preference, PathFrom - Route path origin, LastUpdate - Route last update,
NexthopCnt - Number of nexthops, Flags - = - multipath, * - bestpath, v - valid,
s - suppressed, R - removed, S - stale
Path Origin Local Sourced Weight Metric LocalPref PathFrom LastUpdate NexthopCnt Flags
---- ---------- ----- ------- ------ ------ --------- -------- -------------------- ---------- -----
1 incomplete external 2024-11-15T10:03:31Z 2 =*v
2 incomplete external 2024-11-15T10:03:26Z 2 =v
3 incomplete external 2024-11-15T10:03:26Z 2 =v
4 incomplete external 2024-11-15T10:03:23Z 2 *v
...
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 通告路由的路径信息。
在 Cumulus Linux 5.10 及更早版本中,在命令末尾添加 -o json
以更易读的格式查看输出。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32 path
Origin - Route origin, Local - Locally originated route, Sourced - Sourced
route, Weight - Route weight, Metric - Route metric, LocalPref - Route local
preference, PathFrom - Route path origin, LastUpdate - Route last update,
NexthopCnt - Number of nexthops, Flags - = - multipath, * - bestpath, v - valid,
s - suppressed, R - removed, S - stale
Path Origin Local Sourced Weight Metric LocalPref PathFrom LastUpdate NexthopCnt Flags
---- ---------- ----- ------- ------ ------ --------- -------- -------------------- ---------- -----
1 incomplete external 2024-11-15T10:03:31Z 2 =*v
2 incomplete external 2024-11-15T10:03:26Z 2 =v
3 incomplete external 2024-11-15T10:03:26Z 2 =v
4 incomplete external 2024-11-15T10:03:23Z 2 *v
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id>
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 通告路由路径 ID 的信息。
在 Cumulus Linux 5.10 及更早版本中,在命令末尾添加 -o json
以更易读的格式查看输出。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32 path 1
operational
------------------ ------------------------
origin incomplete
valid on
path-from external
last-update 2024-11-15T10:03:31Z
nexthop-count 2
flags-string =*v
peer
id fe80::4ab0:2dff:fe5e:6ad
router-id 10.10.10.102
hostname spine02
interface swp52
type external
bestpath
from-as 65199
overall yes
selection-reason AS Path
nexthop
==========
Nexthop accessible afi ip metric scope used
------- ---------- ---- ------------------------ ------ ---------- ----
1 on ipv6 fe80::4ab0:2dff:fe5e:6ad 0 global
2 on ipv6 fe80::4ab0:2dff:fe5e:6ad link-local on
aspath
=========
Aspath
------
65103
65199
community
============
No Data
ext-community
================
No Data
large-community
==================
No Data
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> aspath
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的 AS 路径的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32 path 1 aspath
Aspath
------
65103
65199
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> bestpath
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的最佳路径的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32 path 1 bestpath
operational
---------------- -----------
from-as 65199
overall yes
selection-reason AS Path
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> community
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的 community 的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast advertised-routes 10.10.10.101/32 path 1 community
No Data
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> ext-community
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的扩展 community 的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast advertised-routes 10.10.10.1/32 path 1 ext-community
No Data
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> flags
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的标志的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32 path 1 flags
operational
-----------
multipath
bestpath
valid
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> large-community
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的大型 community 的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast advertised-routes 10.10.10.1/32 path 1 large-community
No Data
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> nexthop
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的下一跳的信息。
在 Cumulus Linux 5.10 及更早版本中,在命令末尾添加 -o json
以更易读的格式查看输出。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32 path 1 nexthop
Nexthop accessible afi ip metric scope used
------- ---------- ---- ------------------------ ------ ---------- ----
1 on ipv6 fe80::4ab0:2dff:fe5e:6ad 0 global
2 on ipv6 fe80::4ab0:2dff:fe5e:6ad link-local on
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> nexthop <nexthop-id>
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的特定下一跳的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
<nexthop-id> | 下一跳 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32 path 1 nexthop 1
operational
---------- ------------------------
ip fe80::4ab0:2dff:fe5e:6ad
afi ipv6
scope global
accessible on
metric 0
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast advertised-routes <route-id> path <path-id> peer
显示关于指定 VRF 中 BGP 邻居的 IPv4 通告路由路径 ID 的对等方的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 通告路由。 |
<path-id> | IPv4 通告路由路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 address-family ipv4-unicast advertised-routes 10.10.10.3/32 path 1 peer
operational
--------- ------------------------
id fe80::4ab0:2dff:fe5e:6ad
router-id 10.10.10.102
hostname spine02
interface swp52
type external
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast aspath
显示用于处理指定 BGP IPv4 邻居的前缀的 AS 路径的配置设置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast aspath
applied
--------------- -------
replace-peer-as off
private-as none
allow-my-asn
enable off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast aspath allow-my-asn
显示从指定的 IPv4 邻居接收的 AS 路径是否可以包含本地系统的 ASN。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast aspath allow-my-asn
applied
------ -------
enable off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast attribute-mod
显示指定 BGP IPv4 邻居的属性修改配置设置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast attribute-mod
operational applied
------- ----------- -------
aspath off on
med off on
nexthop off on
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast capabilities
显示指定 BGP IPv4 邻居的所有通告和接收的功能。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast capabilities
No Data
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast community-advertise
显示指定 BGP IPv4 邻居的 community 通告配置信息。community 通告选项确定邻居是否可以向任何 iBGP 或 eBGP 邻居通告前缀。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast community-advertise
operational applied
-------- ----------- -------
regular on on
extended on on
large off off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast conditional-advertise
显示指定 BGP IPv4 邻居的条件通告配置信息。BGP 条件通告选项允许您仅在其他路由存在或不存在时才通告某些路由。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast conditional-advertise
operational applied
------ ----------- -------
enable off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast default-route-origination
显示指定 BGP IPv4 邻居的默认路由始发配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast default-route-origination
operational applied
------ ----------- -------
enable off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast graceful-restart
显示指定 BGP IPv4 邻居的 BGP 优雅重启配置信息。BGP 优雅重启最大限度地减少 BGP 重启时发生的负面影响。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast graceful-restart
operational
---------- -----------
rx-eof-rib on
tx-eof-rib on
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast graceful-restart timers
显示 BGP 邻居的 BGP 优雅重启选择延迟和过时路径计时器设置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast graceful-restart timers
operational
----------- -----------
stale-path
timer-sec 360
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast graceful-restart timers selection-deferral
显示 BGP 邻居的 BGP 优雅重启选择延迟计时器。
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast graceful-restart timers selection-deferral
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast graceful-restart timers stale-path
显示 BGP 邻居的 BGP 优雅重启过时路径计时器设置。
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
版本历史
在 Cumulus Linux 5.9.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast graceful-restart timers stale-path
operational
--------- -----------
timer-sec 360
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast policy
显示指定 BGP IPv4 邻居的策略。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast policy
operational applied
---------------- ----------- -------
inbound
route-map none
prefix-list none
aspath-list none
outbound
route-map none
unsuppress-map none
prefix-list none
aspath-list none
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast policy inbound
显示指定 BGP IPv4 邻居的入站策略。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast policy inbound
operational applied
----------- ----------- -------
route-map none
prefix-list none
aspath-list none
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast policy outbound
显示指定 BGP IPv4 邻居的出站策略。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast policy outbound
operational applied
-------------- ----------- -------
route-map none
unsuppress-map none
prefix-list none
aspath-list none
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast prefix-limits
显示来自指定 IPv4 邻居的前缀的限制。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast prefix-limits
operational applied
------------------- ----------- -------
inbound
maximum none
warning-threshold 75
warning-only off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast prefix-limits inbound
显示来自指定 IPv4 邻居的入站前缀的限制。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast prefix-limits inbound
operational applied
----------------- ----------- -------
maximum none
warning-threshold 75
warning-only off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes
显示关于指定 VRF 中 BGP 邻居的 IPv4 接收路由的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id>
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id>
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> aspath
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的 AS 路径的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 aspath
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> bestpath
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的最佳路径的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 bestpath -o json
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> community
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的 community 的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 community
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> ext-community
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的扩展 community 的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 ext-community
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> flags
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的标志的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 flags
operational
-----------
multipath
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> large-community
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的大型 community 的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 large-community
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> nexthop
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的下一跳的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 nexthop
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> nexthop <nexthop-id>
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的特定下一跳的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
<nexthop-id> | 下一跳 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 nexthop 1
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast received-routes <route-id> path <path-id> peer
显示关于指定 VRF 中 BGP 邻居的特定 IPv4 接收路由路径 ID 的对等方的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
<route-id> | IPv4 路由。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast received-routes 10.0.1.2/32 path 1 peer
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> address-family ipv4-unicast route-counters
显示指定 VRF 中特定 BGP 邻居的 IPv4 路由数。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居的 IP 地址,或者如果您使用未编号的 BGP,则为接口。 |
版本历史
在 Cumulus Linux 5.5.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 address-family ipv4-unicast route-counters
operational
-------------- -----------
route-count 8
adj-rib-in 0
damped 0
removed 0
history 0
stale 0
valid 8
all-rib 8
routes-counted 8
best-routes 3
usable 8
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> bfd
显示指定 BGP 邻居的 BFD 配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 bfd
applied
------ -------
enable off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> capabilities
显示指定 BGP 邻居的功能,例如是否启用扩展下一跳和 32 位 ASN 传输。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 capabilities
operational applied
---------------- ----------- -------
extended-nexthop auto
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> ebgp-policy
显示指定 BGP 邻居的默认外部 BGP (EBGP) 路由传播行为。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 ebgp-policy
operational
-----------
inbound
outbound
inbound
outbound
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> graceful-restart
显示指定 BGP 邻居的 BGP 优雅重启配置。BGP 优雅重启最大限度地减少 BGP 重启时发生的负面影响。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.1.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 graceful-restart
operational applied
--------------- ------------- -------
remote-mode NotApplicable
rx-restart-time 120
mode auto
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> local-as
显示指定 BGP 邻居的本地 AS。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 local-as
applied
------ -------
enable off
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> message-stats
显示 BGP 邻居的消息统计信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.8.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 message-stats
operational
------------------ -----------
input-queue 0
output-queue 0
rx-opens 1
tx-opens 1
rx-keepalives 848
tx-keepalives 848
rx-route-refreshes 0
tx-route-refreshes 0
tx-total 916
rx-total 933
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> nexthop
显示 BGP 邻居下一跳。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 nexthop
operational
----------- -------------------------
ipv4 10.10.10.1
ipv6-global fe80::4ab0:2dff:fed1:9b88
ipv6-local fe80::4ab0:2dff:fed1:9b88
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> timers
显示指定 BGP 邻居的计时器配置,例如重新连接、通告和保活间隔以及保持时间。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp52 timers
operational applied pending
------------------- ----------- ------- -------
connection-retry 10 auto auto
hold 9000 auto auto
keepalive 3000 auto auto
route-advertisement auto auto
nv show vrf <vrf-id> router bgp neighbor <neighbor-id> ttl-security
显示指定 BGP 邻居的 BGP TTL 安全性配置。BGP TTL 安全性可防止针对 eBGP 的攻击,例如拒绝服务 (DoS) 攻击。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<neighbor-id> | BGP 邻居名称或接口(对于 BGP 未编号)。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp neighbor swp51 ttl-security
operational applied
------ ----------- -------
enable on off
hops 1
nv show vrf <vrf-id> router bgp nexthop
显示指定 VRF 的 BGP 下一跳信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp nexthop
PathCnt - Number of paths pointing to this Nexthop, ResolvedVia - Resolved via
address or interface, Interface - Resolved via interface
Afi Address IGPMetric Valid PathCnt ResolvedVia Interface
---- ------------------------- --------- ----- ------- ------------------------- ---------
ipv4 10.10.10.2 0 on 54 fe80::4ab0:2dff:fe08:9898 swp51
fe80::4ab0:2dff:fed8:67cb swp52
10.10.10.3 0 on 36 fe80::4ab0:2dff:fe08:9898 swp51
fe80::4ab0:2dff:fed8:67cb swp52
10.10.10.4 0 on 36 fe80::4ab0:2dff:fe08:9898 swp51
fe80::4ab0:2dff:fed8:67cb swp52
ipv6 fe80::4ab0:2dff:fe08:9898 0 on 6 swp51
fe80::4ab0:2dff:fed8:67cb 0 on 6 swp51
nv show vrf <vrf-id> router bgp nexthop <afi>
显示指定 VRF 的 IPv4 或 IPv6 的 BGP 下一跳信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<afi> | 地址族:IPv4 或 IPv6。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp nexthop ipv4
Nexthops
===========
PathCnt - Number of paths pointing to this Nexthop, ResolvedVia - Resolved via
address or interface, Interface - Resolved via interface
Address IGPMetric Valid PathCnt ResolvedVia Interface
---------- --------- ----- ------- ------------------------- ---------
10.10.10.2 0 on 54 fe80::4ab0:2dff:fe08:9898 swp51
fe80::4ab0:2dff:fed8:67cb swp52
10.10.10.3 0 on 36 fe80::4ab0:2dff:fe08:9898 swp51
fe80::4ab0:2dff:fed8:67cb swp52
10.10.10.4 0 on 36 fe80::4ab0:2dff:fe08:9898 swp51
fe80::4ab0:2dff:fed8:67cb swp52
nv show vrf <vrf-id> router bgp nexthop <afi> ip-address
显示指定 VRF 的 BGP IPv4 或 IPv6 下一跳。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<afi> | 地址族:IPv4 或 IPv6。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp nexthop ipv4 ip-address
PathCnt - Number of paths pointing to this Nexthop, ResolvedVia - Resolved via
address or interface, Interface - Resolved via interface
Address IGPMetric Valid PathCnt ResolvedVia Interface
---------- --------- ----- ------- ------------------------- ---------
10.10.10.2 0 on 54 fe80::4ab0:2dff:fe08:9898 swp51
swp52
10.10.10.3 0 on 36 fe80::4ab0:2dff:fe08:9898 swp51
swp52
10.10.10.4 0 on 36 fe80::4ab0:2dff:fe08:9898 swp51
swp52
nv show vrf <vrf-id> router bgp nexthop <afi> ip-address <ip-address-id>
显示关于指定 VRF 的特定 BGP IPv4 或 IPv6 下一跳的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<afi> | 地址族:IPv4 或 IPv6。 |
<ip-address-id> | IPv4 或 IPv6 地址。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp nexthop ipv4 ip-address 10.10.10.2
operational
---------------- -------------------------
valid yes
complete on
igp-metric 0
path-count 15
last-update-time 2024-11-14T08:58:31Z
[resolved-via] fe80::4ab0:2dff:fe5e:b1fc
...
nv show vrf <vrf-id> router bgp nexthop <afi> ip-address <ip-address-id> path
显示与指定 VRF 的 BGP IPv4 或 IPv6 下一跳关联的所有路径。
在命令末尾添加 -o json
以更易读的格式查看输出。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<afi> | 地址族:IPv4 或 IPv6。 |
<ip-address-id> | IPv4 或 IPv6 地址。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp nexthop ipv4 ip-address 10.10.10.2 path -o json
{
"1": {
"address-family": "l2vpn-evpn",
"flags": {
"damped": "off",
"deterministic-med-selected": "on",
"history": "off",
"multipath": "off",
"nexthop-self": "off",
"removed": "off",
"selected": "off",
"stale": "off",
"valid": "on"
},
"flags-string": "vd",
"prefix": "[5]:[0]:[24]:[10.1.20.0]",
"rd": "10.10.10.2:3",
"vrf": "default"
},
"2": {
"address-family": "l2vpn-evpn",
"flags": {
"damped": "off",
"deterministic-med-selected": "on",
"history": "off",
"multipath": "off",
"nexthop-self": "off",
"removed": "off",
"selected": "off",
"stale": "off",
"valid": "on"
},
"flags-string": "vd",
"prefix": "[5]:[0]:[24]:[10.1.10.0]",
"rd": "10.10.10.2:3",
"vrf": "default"
},
"3": {
"address-family": "l2vpn-evpn",
"flags": {
"damped": "off",
"deterministic-med-selected": "on",
"history": "off",
"multipath": "off",
"nexthop-self": "off",
"removed": "off",
"selected": "off",
"stale": "off",
"valid": "on"
},
"flags-string": "vd",
"prefix": "[5]:[0]:[24]:[10.1.30.0]",
"rd": "10.10.10.2:2",
"vrf": "default"
},
"4": {
"address-family": "l2vpn-evpn",
"flags": {
"damped": "off",
"deterministic-med-selected": "off",
"history": "off",
"multipath": "off",
"nexthop-self": "off",
"removed": "off",
"selected": "off",
"stale": "off",
"valid": "on"
},
"flags-string": "v",
"prefix": "[5]:[0]:[24]:[10.1.20.0]",
"rd": "10.10.10.2:3",
"vrf": "default"
}
...
}
nv show vrf <vrf-id> router bgp nexthop <afi> ip-address <ip-address-id> path <path-id>
显示关于与指定 VRF 的 BGP IPv4 或 IPv6 下一跳关联的特定路径的信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<afi> | 地址族:IPv4 或 IPv6。 |
<ip-address-id> | IPv4 或 IPv6 地址。 |
<path-id> | 路径 ID。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp nexthop ipv4 ip-address 10.10.10.2 path 1
operational
---------------------------- ------------------------
address-family l2vpn-evpn
prefix [5]:[0]:[24]:[10.1.20.0]
rd 10.10.10.2:3
vrf default
flags-string vd
flags
damped off
history off
selected off
valid on
deterministic-med-selected on
stale off
removed off
multipath off
nexthop-self off
nv show vrf <vrf-id> router bgp nexthop <afi> ip-address <ip-address-id> resolved-via
显示指定 VRF 的递归 BGP IPv4 或 IPv6 下一跳。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<afi> | 地址族:IPv4 或 IPv6。 |
<ip-address-id> | IPv4 或 IPv6 地址。 |
版本历史
在 Cumulus Linux 5.4.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp nexthop ipv4 ip-address 10.10.10.2 resolved-via
Nexthop interface
------------------------- ---------
fe80::4ab0:2dff:fe08:9898 swp51
fe80::4ab0:2dff:fed8:67cb swp52
nv show vrf <vrf-id> router bgp path-selection
显示指定 VRF 的 BGP 路径选择配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp path-selection
applied
----------------------- ---------
routerid-compare off
aspath
compare-lengths on
compare-confed off
med
compare-always off
compare-deterministic on
compare-confed off
missing-as-max off
multipath
aspath-ignore off
generate-asset off
bandwidth all-paths
nv show vrf <vrf-id> router bgp path-selection aspath
显示指定 VRF 的 BGP AS 路径选择配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp path-selection aspath
applied
--------------- -------
compare-lengths on
compare-confed off
nv show vrf <vrf-id> router bgp path-selection med
显示指定 VRF 的 BGP med 路径选择配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp path-selection med
applied
--------------------- -------
compare-always off
compare-deterministic on
compare-confed off
missing-as-max off
nv show vrf <vrf-id> router bgp path-selection multipath
显示指定 VRF 的 BGP 多路径路径选择配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp path-selection multipath
applied
-------------- ---------
aspath-ignore off
generate-asset off
bandwidth all-paths
nv show vrf <vrf-id> router bgp peer-group
显示为指定 VRF 配置的对等组。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group
RemoteAs - Remote Autonomous System, Afi-Safi - Address family
Name RemoteAs Type Afi-Safi MemberCount
-------- -------- -------- -------- -----------
underlay external 5
nv show vrf <vrf-id> router bgp peer-group <peer-group-id>
显示指定对等组的全局配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group underlay
password $nvsec$d1a028e8c7f97db92876c2a30fcc403f
enforce-first-as off
passive-mode off
nexthop-connected-check on
description none
bfd
enable off
ttl-security
enable off
local-as
enable off
timers
keepalive auto
hold auto
connection-retry auto
route-advertisement auto
address-family
ipv4-unicast
enable on
route-reflector-client off
route-server-client off
soft-reconfiguration off
nexthop-setting auto
add-path-tx off
attribute-mod
aspath on
med on
nexthop on
aspath
replace-peer-as off
private-as none
allow-my-asn
enable off
...
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family
显示地址族(IPv4、IPv6、EVPN)的配置信息。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family
operational applied
--------------------------- ----------- -------
ipv4-unicast
enable on
route-reflector-client off
route-server-client off
soft-reconfiguration off
nexthop-setting auto
add-path-tx off
attribute-mod
aspath on
med on
nexthop on
aspath
replace-peer-as off
private-as none
allow-my-asn
enable off
weight 0
community-advertise
regular on
extended on
large off
conditional-advertise
enable off
policy
inbound
route-map none
prefix-list none
aspath-list none
...
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast
显示指定 BGP IPv4 对等组的配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast
operational applied
------------------------- ----------- -------
enable on
route-reflector-client off
route-server-client off
soft-reconfiguration off
nexthop-setting auto
add-path-tx off
attribute-mod
aspath on
med on
nexthop on
aspath
replace-peer-as off
private-as none
allow-my-asn
enable off
weight 0
community-advertise
regular on
extended on
large off
conditional-advertise
enable off
policy
inbound
route-map none
prefix-list none
aspath-list none
outbound
route-map none
unsuppress-map none
prefix-list none
aspath-list none
...
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast aspath
显示用于处理指定 BGP IPv4 对等组的前缀的 AS 路径的配置设置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast aspath
operational applied
--------------- ----------- -------
replace-peer-as off
private-as none
allow-my-asn
enable off
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast aspath allow-my-asn
显示从指定的 BGP IPv4 对等组接收的 AS 路径是否可以包含本地系统的 ASN。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast aspath allow-my-asn
operational applied
------ ----------- -------
enable off
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast attribute-mod
显示指定 BGP IPv4 对等组的属性修改配置设置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast attribute-mod
operational applied
------- ----------- -------
aspath on
med on
nexthop on
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast community-advertise
显示指定 BGP IPv4 对等组的 community 通告配置信息。community 通告选项确定邻居是否可以向任何 iBGP 或 eBGP 邻居通告前缀。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast community-advertise
operational applied
-------- ----------- -------
regular on
extended on
large off
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast conditional-advertise
显示指定 BGP IPv4 对等组的条件通告配置信息。BGP 条件通告选项允许您仅在其他路由存在或不存在时才通告某些路由。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast conditional-advertise
applied pending
------------- ------- -----------
enable off on
advertise-map myadvertise
exist-map EXIST
non-exist-map NONEXIST
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast default-route-origination
显示指定 BGP IPv4 对等组的默认路由始发配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast default-route-origination
applied
------ -------
enable off
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast policy
显示为指定 BGP IPv4 对等组配置的策略。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast policy
applied
---------------- ----------
inbound
route-map myroutemap-in
aspath-list none
prefix-list none
outbound
route-map myroutemap-out
unsuppress-map none
aspath-list none
prefix-list none
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast policy inbound
显示指定 BGP IPv4 对等组的入站策略。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast policy inbound
applied
----------- ----------
route-map myroutemap-in
aspath-list none
prefix-list non
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast policy outbound
显示指定 BGP IPv4 对等组的出站策略。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast policy outbound
applied
-------------- -------
route-map myroutemap-out
unsuppress-map none
aspath-list none
prefix-list none
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast prefix-limits
显示来自指定 IPv4 对等组的前缀的限制。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast prefix-limits
operational applied
------------------- ----------- -------
inbound
maximum none
warning-threshold 75
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> address-family ipv4-unicast prefix-limits inbound
显示来自指定 IPv4 对等组的入站前缀的限制。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES address-family ipv4-unicast prefix-limits inbound
operational applied
----------------- ----------- -------
maximum none
warning-threshold 75
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> bfd
显示指定 BGP 对等组的 BFD 配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES bfd
operational applied
------ ----------- -------
enable off
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> capabilities
显示指定 BGP 对等组的功能,例如是否启用了扩展下一跳和 32 位 ASN 传输。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES capabilities
operational applied
---------------- ----------- -------
extended-nexthop auto
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> local-as
显示指定 BGP 对等组的本地 AS。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES local-as
operational applied
------ ----------- -------
enable off
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> timers
显示指定 VRF 中对等组的 BGP 定时器配置,例如条件通告、连接重试和保活间隔,以及保活消息的保持时间。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES timers
operational applied
------------------- ----------- -------
keepalive auto
hold auto
connection-retry auto
route-advertisement auto
nv show vrf <vrf-id> router bgp peer-group <peer-group-id> ttl-security
显示指定 BGP 对等组的 BGP TTL 安全配置。BGP TTL 安全性可防止针对 eBGP 的攻击,例如拒绝服务 (DoS) 攻击。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
<peer-group-id> | 对等组名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp peer-group SPINES ttl-security
applied
------ -------
enable on
hops 3
nv show vrf <vrf-id> router bgp route-export
显示指定 VRF 的 BGP 路由导出配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp route-export
operational applied pending
---------------- ----------- ------- -------
to-evpn
[route-target] auto auto
nv show vrf <vrf-id> router bgp route-export to-evpn
显示指定 VRF 的 BGP 路由导出到 EVPN 配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.8.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp route-export to-evpn
operational applied
-------------- ----------- -------
[route-target] auto
nv show vrf <vrf-id> router bgp route-import
显示指定 VRF 的 BGP 路由导入配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp route-import
operational applied
---------------- ----------- -------------
from-evpn
[route-target] 10.10.10.1:20
nv show vrf <vrf-id> router bgp route-import from-evpn
显示指定 VRF 的 BGP 从 EVPN 路由导入配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp route-import from-evpn
operational applied
-------------- ----------- -------
[route-target] auto
nv show vrf <vrf-id> router bgp route-reflection
显示指定 VRF 的 BGP 路由反射配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp route-reflection
operational applied pending
------ ----------- ------- -------
enable off off
nv show vrf <vrf-id> router bgp timers
显示指定 VRF 中所有对等方的 BGP 定时器配置,例如条件通告、连接重试和保活间隔,以及保活消息的保持时间。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入
示例
cumulus@switch:~$ nv show vrf default router bgp timers
operational applied pending
--------------------- ----------- ------- -------
conditional-advertise 60 60
connection-retry 10 10
hold 9 9
keepalive 3 3
route-advertisement none none