Timers

Scenario to verify BGP timer configuration for both holdtime and keepalive.

BGP uses two main timers to maintain neighbor sessions:

  • Holdtime: The maximum time (in seconds) that BGP waits between receiving successive keepalive or update messages from a peer before declaring the peer dead. If no message is received within the holdtime, the session is torn down. The default holdtime is typically 180 seconds.

  • Keepalive: The interval (in seconds) between keepalive messages sent to a peer. Keepalive messages confirm the session is still active. The default keepalive interval is typically 60 seconds (one-third of the holdtime).

This test validates that both timer types can be configured on the BGP process and that the configured values appear correctly in the neighbor information output. Each timer is tested with both iBGP (same AS) and eBGP (different AS) sessions to ensure consistent behavior across session types. Routes are also verified to confirm that the session is fully functional with custom timer values.

Test BGP Timers

Description

Test BGP timer configuration across iBGP and eBGP sessions. Verifies that the configured timer value appears in BGP neighbor information and that routes are exchanged successfully with custom timer settings.

Scenario

Example 1

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.1.1.1/24
set protocols bgp 100 neighbor peer remote-address 10.1.1.2
set protocols bgp 100 neighbor peer remote-as 100
set protocols bgp 100 network 192.168.10.0/24
set protocols bgp 100 timers holdtime 30
set protocols static route 192.168.10.0/24 blackhole
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 10.1.1.2/24
set protocols bgp 100 neighbor peer remote-address 10.1.1.1
set protocols bgp 100 neighbor peer remote-as 100
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Attention

Verify BGP session is established between DUT0 and DUT1.

Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:

10.1.1.2.*Established
Show output
IPv4 Unicast Summary:
BGP router identifier 10.1.1.1, local AS number 100 VRF default vrf-id 0
BGP table version 1
RIB entries 1, using 128 bytes of memory
Peers 1, using 24 KiB of memory

Neighbor        LocalAddr       V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down        State   PfxRcd   PfxSnt Desc
10.1.1.2        10.1.1.1        4        100         3         4        1    0    0 00:00:01  Established        0        1 FRRouting/10.4.1

Total number of neighbors 1

Attention

Verify that DUT0 has the configured timer value in BGP neighbor info.

Step 4: Run command protocols bgp show ip neighbors neighbor peer at DUT0 and check if output matches the following regular expressions:

hold time is 30 seconds
Show output
BGP neighbor is 10.1.1.2, remote AS 100, local AS 100, internal link
  Local Role: undefined
  Remote Role: undefined
Hostname: osdx
  BGP version 4, remote router ID 10.1.1.2, local router ID 10.1.1.1
  BGP state = Established, up for 00:00:01
  Last read 00:00:00, Last write 00:00:00
  Hold time is 30 seconds, keepalive interval is 10 seconds
  Configured hold time is 30 seconds, keepalive interval is 10 seconds
  Configured tcp-mss is 0, synced tcp-mss is 1448
  Configured conditional advertisements interval is 60 seconds
  Neighbor capabilities:
    4 Byte AS: advertised and received
    AddPath:
      IPv4 Unicast: RX advertised and received
    Paths-Limit:
      IPv4 Unicast: advertised (0) and received (0)
    Long-lived Graceful Restart: advertised and received
      Address families by peer:
    Route refresh: advertised and received
    Enhanced Route Refresh: advertised and received
    Address Family IPv4 Unicast: advertised and received
    Hostname Capability: advertised (name: osdx,domain name: n/a) received (name: osdx,domain name: n/a)
    Version Capability: advertised software version (FRRouting/10.4.1) received software version (FRRouting/10.4.1)
    Link-Local Next Hop Capability: not advertised not received
    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: True
    N bit: True
    Timers:
      Configured Restart Time(sec): 120
      Received Restart Time(sec): 120
      Configured LLGR Stale Path Time(sec): 0
    IPv4 Unicast:
      F bit: False
      End-of-RIB sent: Yes
      End-of-RIB sent after update: Yes
      End-of-RIB received: Yes
      Timers:
        Configured Stale Path Time(sec): 360
        LLGR Stale Path Time(sec): 0
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                2          1
    Keepalives:             1          1
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  4          3

  Prefix statistics:
    Inbound filtered: 0
    AS-PATH loop: 0
    Originator loop: 0
    Cluster loop: 0
    Invalid next-hop: 0
    Withdrawn: 0
    Attributes discarded: 0

  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  Update group 1, subgroup 1
  Packet Queue length 0
  Community attribute sent to this neighbor(all)
  0 accepted, 1 sent prefixes

  Connections established 1; dropped 0
  Last reset never
  Internal BGP neighbor may be up to 255 hops away.
Local host: 10.1.1.1, Local port: 179
Foreign host: 10.1.1.2, Foreign port: 32822
Nexthop: 10.1.1.1
Nexthop global: fe80::dcad:beff:feef:6c00
Nexthop local: fe80::dcad:beff:feef:6c00
BGP connection: shared network
BGP Connect Retry Timer in Seconds: 30
Estimated round trip time: 0 ms
Read thread: on  Write thread: on  FD used: 25

Attention

Verify that DUT1 can see and learn the network from DUT0.

Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:

192.168.10.0/24
Show output
BGP table version is 1, local router ID is 10.1.1.2, vrf id 0
Default local pref 100, local AS 100
local address -
Status codes:  s suppressed, d damped, h history, u unsorted, * 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
 *>i 192.168.10.0/24  10.1.1.1                 0    100      0 i

Displayed 1 routes and 1 total paths

Step 6: Run command protocols ip show route at DUT1 and check if output matches the following regular expressions:

B.+ 192.168.10.0/24
Show output
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

IPv4 unicast VRF default:
C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:00:03
K * 10.1.1.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:03
L>* 10.1.1.2/32 is directly connected, eth0, weight 1, 00:00:03
B>* 192.168.10.0/24 [200/0] via 10.1.1.1, eth0, weight 1, 00:00:01

Example 2

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.1.1.1/24
set protocols bgp 100 neighbor peer remote-address 10.1.1.2
set protocols bgp 100 neighbor peer remote-as 200
set protocols bgp 100 neighbor peer route-map export PERMIT
set protocols bgp 100 network 192.168.10.0/24
set protocols bgp 100 timers holdtime 30
set protocols route-map PERMIT rule 1 action permit
set protocols static route 192.168.10.0/24 blackhole
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 10.1.1.2/24
set protocols bgp 200 neighbor peer remote-address 10.1.1.1
set protocols bgp 200 neighbor peer remote-as 100
set protocols bgp 200 neighbor peer route-map import PERMIT
set protocols route-map PERMIT rule 1 action permit
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Attention

Verify BGP session is established between DUT0 and DUT1.

Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:

10.1.1.2.*Established
Show output
IPv4 Unicast Summary:
BGP router identifier 10.1.1.1, local AS number 100 VRF default vrf-id 0
BGP table version 1
RIB entries 1, using 128 bytes of memory
Peers 1, using 24 KiB of memory

Neighbor        LocalAddr       V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down        State   PfxRcd   PfxSnt Desc
10.1.1.2        10.1.1.1        4        200         5         4        0    0    0 00:00:01  Established (Policy)        0 N/A

Total number of neighbors 1

Attention

Verify that DUT0 has the configured timer value in BGP neighbor info.

Step 4: Run command protocols bgp show ip neighbors neighbor peer at DUT0 and check if output matches the following regular expressions:

hold time is 30 seconds
Show output
BGP neighbor is 10.1.1.2, remote AS 200, local AS 100, external link
  Local Role: undefined
  Remote Role: undefined
Hostname: osdx
  BGP version 4, remote router ID 10.1.1.2, local router ID 10.1.1.1
  BGP state = Established, up for 00:00:01
  Last read 00:00:02, Last write 00:00:01
  Hold time is 30 seconds, keepalive interval is 10 seconds
  Configured hold time is 30 seconds, keepalive interval is 10 seconds
  Configured tcp-mss is 0, synced tcp-mss is 1448
  Configured conditional advertisements interval is 60 seconds
  Neighbor capabilities:
    4 Byte AS: advertised and received
    AddPath:
      IPv4 Unicast: RX advertised and received
    Paths-Limit:
      IPv4 Unicast: advertised (0) and received (0)
    Long-lived Graceful Restart: advertised and received
      Address families by peer:
    Route refresh: advertised and received
    Enhanced Route Refresh: advertised and received
    Address Family IPv4 Unicast: advertised and received
    Hostname Capability: advertised (name: osdx,domain name: n/a) received (name: osdx,domain name: n/a)
    Version Capability: not advertised not received
    Link-Local Next Hop Capability: not advertised not received
    Graceful Restart Capability: advertised and received
      Remote Restart timer is 120 seconds
      Address families by peer:
        none
  Graceful restart information:
    End-of-RIB send:
    End-of-RIB received:
    Local GR Mode: Helper*
    Remote GR Mode: Helper
    R bit: True
    N bit: True
    Timers:
      Configured Restart Time(sec): 120
      Received Restart Time(sec): 120
      Configured LLGR Stale Path Time(sec): 0
    IPv4 Unicast:
      F bit: False
      End-of-RIB sent: No
      End-of-RIB sent after update: No
      End-of-RIB received: No
      Timers:
        Configured Stale Path Time(sec): 360
        LLGR Stale Path Time(sec): 0
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  2          2
    Notifications:          0          2
    Updates:                0          0
    Keepalives:             2          1
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  4          5

  Prefix statistics:
    Inbound filtered: 0
    AS-PATH loop: 0
    Originator loop: 0
    Cluster loop: 0
    Invalid next-hop: 0
    Withdrawn: 0
    Attributes discarded: 0

  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  Update group 1, subgroup 1
  Packet Queue length 0
  Community attribute sent to this neighbor(all)
  Outbound path policy configured
  Route map for outgoing advertisements is *PERMIT
  Inbound updates discarded due to missing policy
  0 accepted, 0 sent prefixes

  Connections established 1; dropped 0
  Last reset never
  External BGP neighbor may be up to 1 hops away.
Local host: 10.1.1.1, Local port: 179
Foreign host: 10.1.1.2, Foreign port: 32842
Nexthop: 10.1.1.1
Nexthop global: ::
Nexthop local: ::
BGP connection: shared network
BGP Connect Retry Timer in Seconds: 30
Estimated round trip time: 1127 ms
Read thread: on  Write thread: on  FD used: 26

Attention

Verify that DUT1 can see and learn the network from DUT0.

Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:

192.168.10.0/24
Show output
BGP table version is 1, local router ID is 10.1.1.2, vrf id 0
Default local pref 100, local AS 200
local address -
Status codes:  s suppressed, d damped, h history, u unsorted, * 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.10.0/24  10.1.1.1                 0             0 100 i

Displayed 1 routes and 1 total paths

Step 6: Run command protocols ip show route at DUT1 and check if output matches the following regular expressions:

B.+ 192.168.10.0/24
Show output
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

IPv4 unicast VRF default:
C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:00:03
K * 10.1.1.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:03
L>* 10.1.1.2/32 is directly connected, eth0, weight 1, 00:00:03
B>* 192.168.10.0/24 [20/0] via 10.1.1.1, eth0, weight 1, 00:00:02

Example 3

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.1.1.1/24
set protocols bgp 100 neighbor peer remote-address 10.1.1.2
set protocols bgp 100 neighbor peer remote-as 100
set protocols bgp 100 network 192.168.10.0/24
set protocols bgp 100 timers keepalive 10
set protocols static route 192.168.10.0/24 blackhole
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 10.1.1.2/24
set protocols bgp 100 neighbor peer remote-address 10.1.1.1
set protocols bgp 100 neighbor peer remote-as 100
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Attention

Verify BGP session is established between DUT0 and DUT1.

Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:

10.1.1.2.*Established
Show output
IPv4 Unicast Summary:
BGP router identifier 10.1.1.1, local AS number 100 VRF default vrf-id 0
BGP table version 1
RIB entries 1, using 128 bytes of memory
Peers 1, using 24 KiB of memory

Neighbor        LocalAddr       V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down        State   PfxRcd   PfxSnt Desc
10.1.1.2        10.1.1.1        4        100         3         5        1    0    0 00:00:02  Established        0        1 FRRouting/10.4.1

Total number of neighbors 1

Attention

Verify that DUT0 has the configured timer value in BGP neighbor info.

Step 4: Run command protocols bgp show ip neighbors neighbor peer at DUT0 and check if output matches the following regular expressions:

keepalive interval is 10 seconds
Show output
BGP neighbor is 10.1.1.2, remote AS 100, local AS 100, internal link
  Local Role: undefined
  Remote Role: undefined
Hostname: osdx
  BGP version 4, remote router ID 10.1.1.2, local router ID 10.1.1.1
  BGP state = Established, up for 00:00:02
  Last read 00:00:01, Last write 00:00:01
  Hold time is 90 seconds, keepalive interval is 10 seconds
  Configured hold time is 90 seconds, keepalive interval is 10 seconds
  Configured tcp-mss is 0, synced tcp-mss is 1448
  Configured conditional advertisements interval is 60 seconds
  Neighbor capabilities:
    4 Byte AS: advertised and received
    AddPath:
      IPv4 Unicast: RX advertised and received
    Paths-Limit:
      IPv4 Unicast: advertised (0) and received (0)
    Long-lived Graceful Restart: advertised and received
      Address families by peer:
    Route refresh: advertised and received
    Enhanced Route Refresh: advertised and received
    Address Family IPv4 Unicast: advertised and received
    Hostname Capability: advertised (name: osdx,domain name: n/a) received (name: osdx,domain name: n/a)
    Version Capability: advertised software version (FRRouting/10.4.1) received software version (FRRouting/10.4.1)
    Link-Local Next Hop Capability: not advertised not received
    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: True
    N bit: True
    Timers:
      Configured Restart Time(sec): 120
      Received Restart Time(sec): 120
      Configured LLGR Stale Path Time(sec): 0
    IPv4 Unicast:
      F bit: False
      End-of-RIB sent: Yes
      End-of-RIB sent after update: Yes
      End-of-RIB received: Yes
      Timers:
        Configured Stale Path Time(sec): 360
        LLGR Stale Path Time(sec): 0
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  2          1
    Notifications:          0          0
    Updates:                2          1
    Keepalives:             1          1
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  5          3

  Prefix statistics:
    Inbound filtered: 0
    AS-PATH loop: 0
    Originator loop: 0
    Cluster loop: 0
    Invalid next-hop: 0
    Withdrawn: 0
    Attributes discarded: 0

  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  Update group 1, subgroup 1
  Packet Queue length 0
  Community attribute sent to this neighbor(all)
  0 accepted, 1 sent prefixes

  Connections established 1; dropped 0
  Last reset never
  Internal BGP neighbor may be up to 255 hops away.
Local host: 10.1.1.1, Local port: 179
Foreign host: 10.1.1.2, Foreign port: 39404
Nexthop: 10.1.1.1
Nexthop global: fe80::dcad:beff:feef:6c00
Nexthop local: fe80::dcad:beff:feef:6c00
BGP connection: shared network
BGP Connect Retry Timer in Seconds: 30
Estimated round trip time: 0 ms
Read thread: on  Write thread: on  FD used: 25

Attention

Verify that DUT1 can see and learn the network from DUT0.

Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:

192.168.10.0/24
Show output
BGP table version is 1, local router ID is 10.1.1.2, vrf id 0
Default local pref 100, local AS 100
local address -
Status codes:  s suppressed, d damped, h history, u unsorted, * 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
 *>i 192.168.10.0/24  10.1.1.1                 0    100      0 i

Displayed 1 routes and 1 total paths

Step 6: Run command protocols ip show route at DUT1 and check if output matches the following regular expressions:

B.+ 192.168.10.0/24
Show output
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

IPv4 unicast VRF default:
C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:00:03
K * 10.1.1.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:03
L>* 10.1.1.2/32 is directly connected, eth0, weight 1, 00:00:03
B>* 192.168.10.0/24 [200/0] via 10.1.1.1, eth0, weight 1, 00:00:01

Example 4

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.1.1.1/24
set protocols bgp 100 neighbor peer remote-address 10.1.1.2
set protocols bgp 100 neighbor peer remote-as 200
set protocols bgp 100 neighbor peer route-map export PERMIT
set protocols bgp 100 network 192.168.10.0/24
set protocols bgp 100 timers keepalive 10
set protocols route-map PERMIT rule 1 action permit
set protocols static route 192.168.10.0/24 blackhole
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 10.1.1.2/24
set protocols bgp 200 neighbor peer remote-address 10.1.1.1
set protocols bgp 200 neighbor peer remote-as 100
set protocols bgp 200 neighbor peer route-map import PERMIT
set protocols route-map PERMIT rule 1 action permit
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Attention

Verify BGP session is established between DUT0 and DUT1.

Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:

10.1.1.2.*Established
Show output
IPv4 Unicast Summary:
BGP router identifier 10.1.1.1, local AS number 100 VRF default vrf-id 0
BGP table version 1
RIB entries 1, using 128 bytes of memory
Peers 1, using 24 KiB of memory

Neighbor        LocalAddr       V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down        State   PfxRcd   PfxSnt Desc
10.1.1.2        10.1.1.1        4        200         4         4        0    0    0 00:00:01  Established (Policy)        0 N/A

Total number of neighbors 1

Attention

Verify that DUT0 has the configured timer value in BGP neighbor info.

Step 4: Run command protocols bgp show ip neighbors neighbor peer at DUT0 and check if output matches the following regular expressions:

keepalive interval is 10 seconds
Show output
BGP neighbor is 10.1.1.2, remote AS 200, local AS 100, external link
  Local Role: undefined
  Remote Role: undefined
Hostname: osdx
  BGP version 4, remote router ID 10.1.1.2, local router ID 10.1.1.1
  BGP state = Established, up for 00:00:01
  Last read 00:00:02, Last write 00:00:01
  Hold time is 90 seconds, keepalive interval is 10 seconds
  Configured hold time is 90 seconds, keepalive interval is 10 seconds
  Configured tcp-mss is 0, synced tcp-mss is 1448
  Configured conditional advertisements interval is 60 seconds
  Neighbor capabilities:
    4 Byte AS: advertised and received
    AddPath:
      IPv4 Unicast: RX advertised and received
    Paths-Limit:
      IPv4 Unicast: advertised (0) and received (0)
    Long-lived Graceful Restart: advertised and received
      Address families by peer:
    Route refresh: advertised and received
    Enhanced Route Refresh: advertised and received
    Address Family IPv4 Unicast: advertised and received
    Hostname Capability: advertised (name: osdx,domain name: n/a) received (name: osdx,domain name: n/a)
    Version Capability: not advertised not received
    Link-Local Next Hop Capability: not advertised not received
    Graceful Restart Capability: advertised and received
      Remote Restart timer is 120 seconds
      Address families by peer:
        none
  Graceful restart information:
    End-of-RIB send:
    End-of-RIB received:
    Local GR Mode: Helper*
    Remote GR Mode: Helper
    R bit: True
    N bit: True
    Timers:
      Configured Restart Time(sec): 120
      Received Restart Time(sec): 120
      Configured LLGR Stale Path Time(sec): 0
    IPv4 Unicast:
      F bit: False
      End-of-RIB sent: No
      End-of-RIB sent after update: No
      End-of-RIB received: No
      Timers:
        Configured Stale Path Time(sec): 360
        LLGR Stale Path Time(sec): 0
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  2          1
    Notifications:          1          2
    Updates:                0          0
    Keepalives:             1          1
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  4          4

  Prefix statistics:
    Inbound filtered: 0
    AS-PATH loop: 0
    Originator loop: 0
    Cluster loop: 0
    Invalid next-hop: 0
    Withdrawn: 0
    Attributes discarded: 0

  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  Update group 1, subgroup 1
  Packet Queue length 0
  Community attribute sent to this neighbor(all)
  Outbound path policy configured
  Route map for outgoing advertisements is *PERMIT
  Inbound updates discarded due to missing policy
  0 accepted, 0 sent prefixes

  Connections established 1; dropped 0
  Last reset never
  External BGP neighbor may be up to 1 hops away.
Local host: 10.1.1.1, Local port: 179
Foreign host: 10.1.1.2, Foreign port: 40050
Nexthop: 10.1.1.1
Nexthop global: fe80::dcad:beff:feef:6c00
Nexthop local: fe80::dcad:beff:feef:6c00
BGP connection: shared network
BGP Connect Retry Timer in Seconds: 30
Estimated round trip time: 0 ms
Read thread: on  Write thread: on  FD used: 26

Attention

Verify that DUT1 can see and learn the network from DUT0.

Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:

192.168.10.0/24
Show output
BGP table version is 1, local router ID is 10.1.1.2, vrf id 0
Default local pref 100, local AS 200
local address -
Status codes:  s suppressed, d damped, h history, u unsorted, * 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.10.0/24  10.1.1.1                 0             0 100 i

Displayed 1 routes and 1 total paths

Step 6: Run command protocols ip show route at DUT1 and check if output matches the following regular expressions:

B.+ 192.168.10.0/24
Show output
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

IPv4 unicast VRF default:
C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:00:03
K * 10.1.1.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:03
L>* 10.1.1.2/32 is directly connected, eth0, weight 1, 00:00:03
B>* 192.168.10.0/24 [20/0] via 10.1.1.1, eth0, weight 1, 00:00:02