2021-06-25 SONiC 系统BGP配置命令
SONiC系统BGP配置
SONiC系统所默认包含的BGP模块在201811版的SONiC之前是开源的Quagga软件,之后改成了更流行的FRR。
FRR中的Show命令是以”show BGP"开头,而Quagga中是“show IP BGP"开头的命令。本文以FRR为例进行说明。
BGP show commands
show bgp summary (Versions >= 201904 using default FRR routing stack)
show ip bgp summary (Versions <= 201811 using Quagga routing stack)
示例
admin@sonic:~$ show bgp summary
IPv4 Unicast Summary:
BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0
BGP table version 6465
RIB entries 12807, using 2001 KiB of memory
Peers 4, using 83 KiB of memory
Peer groups 2, using 128 bytes of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.0.0.57 4 64600 3995 4001 0 0 0 00:39:32 6400
10.0.0.59 4 64600 3995 3998 0 0 0 00:39:32 6400
10.0.0.61 4 64600 3995 4001 0 0 0 00:39:32 6400
10.0.0.63 4 64600 3995 3998 0 0 0 00:39:32 6400
Total number of neighbors 4
IPv6 Unicast Summary:
BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0
BGP table version 12803
RIB entries 12805, using 2001 KiB of memory
Peers 4, using 83 KiB of memory
Peer groups 2, using 128 bytes of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
fc00::72 4 64600 3995 5208 0 0 0 00:39:30 6400
fc00::76 4 64600 3994 5208 0 0 0 00:39:30 6400
fc00::7a 4 64600 3993 5208 0 0 0 00:39:30 6400
fc00::7e 4 64600 3993 5208 0 0 0 00:39:30 6400
Total number of neighbors 4
show bgp neighbors (Versions >= 201904 using default FRR routing stack)
show ip bgp neighbors (Versions <= 201811 using Quagga routing stack)
示例
admin@sonic:~$ show bgp neighbors
BGP neighbor is 10.0.0.57, remote AS 64600, local AS 65100, external link
Description: ARISTA01T1
BGP version 4, remote router ID 100.1.0.29, local router ID 10.1.0.32
BGP state = Established, up for 00:42:15
Last read 00:00:00, Last write 00:00:03
Hold time is 10, keepalive interval is 3 seconds
Configured hold time is 10, keepalive interval is 3 seconds
Neighbor capabilities:
4 Byte AS: advertised and received
AddPath:
IPv4 Unicast: RX advertised IPv4 Unicast and received
Route refresh: advertised and received(new)
Address Family IPv4 Unicast: advertised and received
Hostname Capability: advertised (name: sonic-z9264f-9251,domain name: n/a) not received
Graceful Restart Capabilty: advertised and received
Remote Restart timer is 300 seconds
Address families by peer:
none
Graceful restart information:
End-of-RIB send: IPv4 Unicast
End-of-RIB received: IPv4 Unicast
Message statistics:
Inq depth is 0
Outq depth is 0
Sent Rcvd
Opens: 2 1
Notifications: 2 0
Updates: 3206 3202
Keepalives: 845 847
Route Refresh: 0 0
Capability: 0 0
Total: 4055 4050
Minimum time between advertisement runs is 0 seconds
For address family: IPv4 Unicast
Update group 1, subgroup 1
Packet Queue length 0
Inbound soft reconfiguration allowed
Community attribute sent to this neighbor(all)
6400 accepted prefixes
Connections established 1; dropped 0
Last reset 00:42:37, due to NOTIFICATION sent (Cease/Connection collision resolution)
Local host: 10.0.0.56, Local port: 179
Foreign host: 10.0.0.57, Foreign port: 46419
Nexthop: 10.0.0.56
Nexthop global: fc00::71
Nexthop local: fe80::2204:fff:fe36:9449
BGP connection: shared network
BGP Connect Retry Timer in Seconds: 120
Read thread: on Write thread: on
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)