Verifying Border Gateway Protocol Functionality - Configuring-the-Border-Gateway-Protocol-on-a-Secure-Connect-Network/Verifying-Border-Gateway-Protocol-Functionality

Configuring the Border Gateway Protocol on a Secure Connect Network

ft:locale
en-US
ft:sourceName
Paligo_Prod

The following command-line interface (CLI) commands may be used to verify or troubleshoot Border Gateway Protocol (BGP) functionality on a NetCloud Exchange Service Gateway:

  • show bgp ipv4 summary

  • show ipv4-routes protocol bgp

  • show bgp ipv4 neighbors

  • show bgp ipv4 neighbor id <neighbor IP> advertised-routes

  • show bgp ipv4 neighbor id <neighbor IP> received-routes

  • show bgp ipv4 route-map <route-map-name>

Complete the following steps to verify BGP functionality:

  1. Log into NetCloud Manager.

  2. Select Devices in the left-side navigation panel.

  3. Select the desired NCX Service Gateway device in the Routers table.

  4. Select the Remote Connect menu, and then select Console.

  5. Enter the show bgp ipv4 summary command.

    Following are example results:

    IPv4 Unicast Summary (VRF default):
    BGP router identifier 10.0.0.1, local AS number 65500 vrf-id 0
    BGP table version 5
    RIB entries 9, using 1656 bytes of memory
    Peers 2, using 166 KiB of memory
    Neighbor    V     AS   LocalAS  MsgRcvd  MsgSent  TblVer  InQ  OutQ  Up/Down   State/PfxRcd  PfxSnt Desc
    10.0.0.5    4   75500   65500      25      25       0      0    0    00:20:11       1          2 N/A
    10.0.0.6    4   76500   65500      25      25       0      0    0    00:20:11       1          2 N/A
    
    Total number of neighbors 2 
  6. Enter the show ipv4-routes protocol bgp command.

    Following are example results:

    Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, A - Babel, D - SHARP, F - PBR, f - OpenFabric
    > - selected route, * - FIB route, q - queued, r - rejected, b - backup, t - trapped, o - offload failure
    B>* 193.0.0.0/24 [20/0] via 10.0.0.5, lan0, weight 1, 00:25:00
    B>* 194.0.0.0/24 [20/0] via 10.0.0.6, lan0, weight 1, 00:25:00
  7. Enter the show bgp ipv4 neighbors command.

    Following are example results:

    BGP neighbor is 10.0.0.5, remote AS 75500, local AS 65500, external link
    Hostname: bgpd
     BGP version 4, remote router ID 10.0.0.5, local router ID 10.0.0.1
     BGP state = Established, up for 00:25:45
     Last read 00:00:45, Last write 00:00:45
     Hold time is 180, keepalive interval is 60 seconds
     Neighbor capabilities:
      4 Byte AS: advertised and received
      Extended Message: advertised
      AddPath:
       IPv4 Unicast: RX advertised IPv4 Unicast and received
      Route refresh: advertised and received(old & new)
      Enhanced Route Refresh: advertised
      Address Family IPv4 Unicast: advertised and received
      Hostname Capability: advertised (name: ncx-sixwind,domain name: n/a) received (name: bgpd,domain name: n/a)
      Graceful Restart Capability: advertised and received
       Remote Restart timer is 120 seconds
       Address families by peer:
        none
     Graceful restart information:
      End-of-RIB send: IPv4 Unicast
      End-of-RIB received: IPv4 Unicast
      Local GR Mode: Helper*
     Remote GR Mode: Helper
      R bit: False
      Timers:
       Configured Restart Time(sec): 120
       Received Restart Time(sec): 120
      IPv4 Unicast:
       F bit: False
       End-of-RIB sent: Yes
       End-of-RIB sent after update: No
       End-of-RIB received: Yes
       Timers:
        Configured Stale Path Time(sec): 360
     Message statistics:
      Inq depth is 0
      Outq depth is 0
                      Sent       Rcvd
       Opens:          1          1
       Notifications:  0          0
       Updates:        3          3
       Keepalives:     26         26
       Route Refresh:  0          0
       Capability:     0          0
       Total:          30         30
      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)
     Inbound path policy configured
     Outbound path policy configured
    
      Route map for incoming advertisements is *bgp_route_map_in
      Route map for outgoing advertisements is *bgp_route_map_out_neigh1
      1 accepted prefixes
    
      Connections established 1; dropped 0
      Last reset 00:25:46,  Waiting for peer OPEN
    Local host: 10.0.0.1, Local port: 37502
    Foreign host: 10.0.0.5, Foreign port: 179
    Nexthop: 10.0.0.1
    Nexthop global: fe80::36:46ff:feff:2067
    Nexthop local: fe80::36:46ff:feff:2067
    BGP connection: shared network
    BGP Connect Retry Timer in Seconds: 120
    Estimated round trip time: 1 ms
    Read thread: on  Write thread: on  FD used: 25
    
    BGP neighbor is 10.0.0.6, remote AS 76500, local AS 65500, external link
    Hostname: bgpd
     BGP version 4, remote router ID 10.0.0.6, local router ID 10.0.0.1
     BGP state = Established, up for 00:25:45
     Last read 00:00:45, Last write 00:00:45
     Hold time is 180, keepalive interval is 60 seconds
     Neighbor capabilities:
      4 Byte AS: advertised and received
      Extended Message: advertised
      AddPath:
       IPv4 Unicast: RX advertised IPv4 Unicast and received
      Route refresh: advertised and received(old & new)
      Enhanced Route Refresh: advertised
      Address Family IPv4 Unicast: advertised and received
      Hostname Capability: advertised (name: ncx-sixwind,domain name: n/a) received (name: bgpd,domain name: n/a)
      Graceful Restart Capability: advertised and received
       Remote Restart timer is 120 seconds
       Address families by peer:
        none
       Graceful restart information:
        End-of-RIB send: IPv4 Unicast
        End-of-RIB received: IPv4 Unicast
        Local GR Mode: Helper*
        Remote GR Mode: Helper
        R bit: False
        Timers:
         Configured Restart Time(sec): 120
         Received Restart Time(sec): 120
        IPv4 Unicast:
         F bit: False
         End-of-RIB sent: Yes
         End-of-RIB sent after update: No
         End-of-RIB received: Yes.
         Timers:
          Configured Stale Path Time(sec): 360
       Message statistics:
         Inq depth is 0
         Outq depth is 0
                        Sent       Rcvd
         Opens:          1          1
         Notifications:  0          0
         Updates:        3          3
         Keepalives:     26         26
         Route Refresh:  0          0
         Capability:     0          0
         Total:          30         30
     Minimum time between advertisement runs is 0 seconds
    For address family: IPv4 Unicast
     Update group 2, subgroup 2
     Packet Queue length 0
     Inbound soft reconfiguration allowed
     Community attribute sent to this neighbor(all)
     Inbound path policy configured
     Outbound path policy configured
     Route map for incoming advertisements is *bgp_route_map_in
     Route map for outgoing advertisements is *bgp_route_map_out_neigh2
     1 accepted prefixes
    
     Connections established 1; dropped 0
     Last reset 00:25:46,  Waiting for peer OPEN
    Local host: 10.0.0.1, Local port: 38892
    Foreign host: 10.0.0.6, Foreign port: 179
    Nexthop: 10.0.0.1
    Nexthop global: fe80::36:46ff:feff:2067
    Nexthop local: fe80::36:46ff:feff:2067
    BGP connection: shared network
    BGP Connect Retry Timer in Seconds: 120
    Estimated round trip time: 3 ms
    Read thread: on  Write thread: on  FD used: 26

    Note

    The route map for incoming advertisements and route map for outgoing advertisements names can be used in the next command.

  8. Enter the show bgp ipv4 neighbor id <neighbor IP> advertised-routes command.

    Following are example results:

    [cpterm@six0_eBGP_direct: /]$ show bgp ipv4 neighbor id 169.254.0.66 advertised-routes
    BGP table version is 17, local router ID is 120.120.120.100, vrf id 0
    Default local pref 100, local AS 1200
    Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,i internal, r RIB-failure, S Stale, R Removed
    Nexthop codes: @NNN nexthop's vrf id, < announce-nh-selfOrigin codes: i - IGP, e - EGP, ? - incomplete
    RPKI validation codes: V valid, I invalid, N Not found
    
    Network Next Hop Metric LocPrf Weight Path
    *> 10.120.0.0/16 0.0.0.0 40 64516 i
    *> 100.64.0.0/10 0.0.0.0 0 32768 i
    *> 172.10.2.5/32 0.0.0.0 0 32768 i
    *> 172.16.131.0/24 0.0.0.0 40 64516 i
    *> 192.168.54.0/24 0.0.0.0 0 32768 i
    *> 192.168.55.0/24 0.0.0.0 0 32768 i
    
    Total number of prefixes 6
  9. Enter the show bgp ipv4 neighbor id <neighbor IP> received-routes command.

    Following are example results:

    [cpterm@six0_eBGP_direct: /]$ show bgp ipv4 neighbor id 169.254.0.66 received-routes
    BGP table version is 17, local router ID is 120.120.120.100, vrf id 0
    Default local pref 100, local AS 1200
    Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,i internal, r RIB-failure, S Stale, R Removed
    Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
    Origin codes: i - IGP, e - EGP, ? - incomplete
    RPKI validation codes: V valid, I invalid, N Not found
    
    Network Next Hop Metric LocPrf Weight Path
    *> 10.120.0.0/16 169.254.0.66 100 40 64516 i
    *> 172.16.131.0/24 169.254.0.66 100 40 64516 i
    
    Total number of prefixes 2
  10. Enter the show bgp ipv4 route-map <route-map-name> command.

    Following are example results for an incoming route map:

    [cpterm@six0_eBGP_direct: /]$ show bgp ipv4 route-map bgp_route_map_in 
    BGP table version is 5, local router ID is 10.0.0.1, vrf id 0 
    Default local pref 100, local AS 65500 
    Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath, 
                   i internal, r RIB-failure, S Stale, R Removed 
    Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self 
    Origin codes:  i - IGP, e - EGP, ? - incomplete 
    RPKI validation codes: V valid, I invalid, N Not found 
     
       Network         Next Hop     Metric LocPrf  Weight Path 
    *> 193.0.0.0/24    10.0.0.5           0         40 75500 i 
    *> 194.0.0.0/24    10.0.0.6           0         30 76500 i 
    
    Displayed  2 routes and 5 total paths

    Following are example results for an outgoing route map:

    [cpterm@six0_eBGP_direct: /]$ show bgp ipv4 route-map bgp_route_map_out_neigh2
    BGP table version is 5, local router ID is 10.0.0.1, vrf id 0
    Default local pref 100, local AS 65500
    Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed
    Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
    Origin codes:  i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found
     Network            Next Hop  Metric LocPrf   Weight Path
    *> 192.168.0.0/24   0.0.0.0         0          32768 i
    *> 192.168.1.0/24   0.0.0.0         0          32768 i
    
    Displayed  2 routes and 5 total paths