你可以使用以下命令来查看从指定邻居收到和发送的BGP路由信息:
1. 查看从指定邻居收到的BGP路由:
plaintext
display bgp routing-table peer <ipv4-address> received-routes
2. 查看发送给指定邻居的BGP路由:
plaintext
display bgp routing-table peer <ipv4-address> advertised-routes
这些命令可以帮助你检查和验证BGP邻居之间的路由信息交换情况。
(0)
正确的是这个 display bgp routing-table ipv4 peer 1.1.1.1 advertised-routes display bgp routing-table ipv4 peer 1.1.1.1 received-routes
感谢
对于S6825设备,查看从指定邻居收到的BGP路由的命令是:
```
display bgp ipv4 unicast received-routes from <neighbor_ip>
```
查看发送到指定邻居的BGP路由的命令是:
```
display bgp ipv4 unicast advertised-routes to <neighbor_ip>
```
请将`<neighbor_ip>`替换为实际的邻居IP地址。
(0)
您好,参考
在完成上述配置后,在任意视图下执行display命令可以显示配置后BGP的运行情况,通过查看显示信息验证配置的效果。
表1-159 BGP配置显示(IPv4单播)
操作 | 命令 |
显示BGP NSR的运行状态 | display bgp [ instance instance-name ] non-stop-routing status |
显示BGP IPv4单播对等体组的信息 | display bgp [ instance instance-name ] group ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ group-name group-name ] |
显示BGP IPv4单播对等体或对等体组的状态和统计信息 | display bgp [ instance instance-name ] peer ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ ipv4-address mask-length | { ipv4-address | group-name group-name } log-info | [ ipv4-address ] verbose ] display bgp [ instance instance-name ] peer ipv4 [ unicast ] vpn-instance-all [ verbose ] |
显示BGP IPv4单播路由信息 | display bgp [ instance instance-name ] routing-table ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ ipv4-address [ { mask-length | mask } [ longest-match ] ] | ipv4-address [ mask-length | mask ] advertise-info | as-path-acl as-path-acl-number | community-list { { basic-community-list-number | comm-list-name } [ whole-match ] | adv-community-list-number } | peer ipv4-address { advertised-routes | received-routes } [ ipv4-address [ mask-length | mask ] | statistics ] | statistics ] |
显示衰减的BGP IPv4单播路由信息 | display bgp [ instance instance-name ] routing-table dampened ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] |
显示BGP IPv4单播路由的路由衰减参数 | display bgp [ instance instance-name ] dampening parameter ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] |
显示BGP IPv4单播路由的震荡统计信息 | display bgp [ instance instance-name ] routing-table flap-info ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ ipv4-address [ { mask-length | mask } [ longest-match ] ] | as-path-acl as-path-acl-number ] |
显示通过network命令发布的路由信息和通过network short-cut命令配置的Short-cut路由信息 | display bgp [ instance instance-name ] network ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] |
显示BGP的路由属性信息 | display bgp [ instance instance-name ] paths [ as-regular-expression ] |
显示BGP IPv4单播地址族下打包组的相关信息 | display bgp [ instance instance-name ] update-group ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ ipv4-address ] |
显示所有BGP实例的信息 | display bgp instance-info |
显示BGP监控服务器的信息 | display bgp [ instance instance-name ] bmp server server-number |
显示邻居收到的ORF消息中的前缀信息 | display bgp [ instance instance-name ] peer ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] ipv4-address received prefix-list |
display bgp [ instance instance-name ] rpki server [ [ vpn-instance vpn-instance-name ] ipv4-address ] | |
显示从RPKI服务器获得的ROA信息 | display bgp [ instance instance-name ] rpki table ipv4 [ ipv4-address min min-length max max-length ] |
表1-163 BGP配置显示(LS地址族)
操作 | 命令 |
显示BGP LS对等体组的信息 | display bgp [ instance instance-name ] group link-state [ group-name group-name ] |
显示BGP LS地址族信息 | display bgp [ instance instance-name ] link-state [ ls-prefix | peer { ipv4-address | ipv6-address } { advertised | received } [ statistics ] | statistics ] |
显示BGP LS对等体或对等体组的信息 | display bgp [ instance instance-name ] peer link-state [ ipv4-address mask-length | ipv6-address prefix-length | { ipv4-address | ipv6-address | group-name group-name } log-info | [ ipv4-address | ipv6-address ] verbose ] |
显示BGP LS地址族的打包组信息 | display bgp [ instance instance-name ] update-group link-state [ ipv4-address | ipv6-address ] |
表1-164 BGP配置显示(IPv4 RT-Filter地址族)
操作 | 命令 |
显示BGP IPv4 RT-Filter路由信息 | display bgp [ instance instance-name ] routing-table ipv4 rtfilter [ default-rt [ advertise-info ] | [ origin-as as-number ] [ route-target [ advertise-info ] ] | peer ipv4-address { advertised-routes | received-routes } [ default-rt | [ origin-as as-number ] [ route-target ] | statistics ] | statistics ] |
(0)
要在 H3C S6825 交换机上查看从指定邻居收到和发送的 BGP 路由,可以使用以下命令:
查看从指定邻居收到的 BGP 路由:
display bgp peer [邻居IP地址] received-routes
查看发送给指定邻居的 BGP 路由:
display bgp peer [邻居IP地址] advertised-routes
这些命令可以帮助你检查 BGP 邻居之间的路由信息。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
感谢