2021-06-25 SONiC 系统BGP配置命令

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值