OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : BGP4+ : Validation
Validation
R1
#show bgp ipv6 summary
BGP router identifier 1.1.1.1, local AS number 100
BGP table version is 1
1 BGP AS-PATH entries
0 BGP community entries
 
Neighbor V AS MsgRcv MsgSen TblVer InQ OutQ Up/Down State/PfxRcd
4ffe::120 4 200 8 11 1 0 0 00:01:02 0
 
Total number of neighbors 1
 
Total number of Established sessions 1
 
#show ip bgp neighbors
BGP neighbor is 4ffe::120, remote AS 200, local AS 100, external link
BGP version 4, local router ID 1.1.1.1, remote router ID 2.2.2.2
BGP state = Established, up for 00:01:31
Last read 00:00:17, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv6 Unicast: advertised and received
Received 9 messages, 0 notifications, 0 in queue
Sent 12 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 30 seconds
For address family: IPv6 Unicast
BGP table version 1, neighbor version 1
Index 1, Offset 0, Mask 0x2
AF-dependant capabilities:
Graceful restart: advertised, received
Forwarding states are being preserved
Community attribute sent to this neighbor (both)
0 accepted prefixes
1 announced prefixes
 
Connections established 2; dropped 1
Graceful-restart Status:
Remote restart-time is 90 sec
 
Local host: 4ffe::119, Local port: 179
Foreign host: 4ffe::120, Foreign port: 58264
Nexthop: 1.1.1.1
Nexthop global: 4ffe::119
Nexthop local: fe80::eac5:7aff:fe8b:a827
BGP connection: shared network
 
#show bgp ipv6
BGP table version is 1, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, a add-path, * valid, > best, i - internal,
l - labeled, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
 
Network Next Hop Metric LocPrf Weight Path
*> 4000::/64 :: 0 100 32768 i
 
Total number of prefixes 1
 
#show ipv6 route database bgp
IP Route Table for VRF "default"
 
#show ipv6 route database
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, D- DHCP, R - RIP,
O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, E - EVPN N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, i - IS-IS, B - BGP,
v - vrf leaked
> - selected route, * - FIB route,p - stale info
Timers: Uptime
 
IP Route Table for VRF "default"
C *> ::1/128 via ::, lo, 10:38:02
C *> 4000::/64 via ::, lo, 00:25:40
C *> 4ffe::/64 via ::, xe9, 00:49:30
C *> fe80::/64 via ::, xe9, 02:06:22
C fe80::/64 via ::, xe5, 05:16:16
C fe80::/64 via ::, xe12, 05:33:37
C fe80::/64 via ::, xe11, 05:33:37
C fe80::/64 via ::, ce1, 10:38:02
 
#show ipv6 route
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, D- DHCP, R - RIP,
O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, E - EVPN N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, i - IS-IS, B - BGP,
v - vrf leaked
Timers: Uptime
 
IP Route Table for VRF "default"
C ::1/128 via ::, lo, 10:38:34
C 4000::/64 via ::, lo, 00:26:12
C 4ffe::/64 via ::, xe9, 00:50:02
C fe80::/64 via ::, xe9, 02:06:54
R2
 
#show bgp ipv6 summary
BGP router identifier 2.2.2.2, local AS number 200
BGP table version is 2
1 BGP AS-PATH entries
0 BGP community entries
 
Neighbor V AS MsgRcv MsgSen TblVer InQ OutQ Up/Down State/PfxRcd
4ffe::119 4 100 14 14 2 0 0 00:05:08 1
 
Total number of neighbors 1
 
Total number of Established sessions 1
#show ip bgp neighbors
BGP neighbor is 4ffe::119, remote AS 100, local AS 200, external link
BGP version 4, local router ID 2.2.2.2, remote router ID 1.1.1.1
BGP state = Established, up for 00:06:16
Last read 00:00:10, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv6 Unicast: advertised and received
Received 17 messages, 0 notifications, 0 in queue
Sent 17 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 30 seconds
For address family: IPv6 Unicast
BGP table version 2, neighbor version 2
Index 1, Offset 0, Mask 0x2
AF-dependant capabilities:
Graceful restart: advertised, received
 
Community attribute sent to this neighbor (both)
1 accepted prefixes
0 announced prefixes
 
Connections established 1; dropped 0
Graceful-restart Status:
Remote restart-time is 90 sec
 
Local host: 4ffe::120, Local port: 58264
Foreign host: 4ffe::119, Foreign port: 179
Nexthop: 2.2.2.2
Nexthop global: 4ffe::120
Nexthop local: fe80::82a2:35ff:fe7e:8833
BGP connection: shared network
 
#show bgp ipv6
BGP table version is 2, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, a add-path, * valid, > best, i - internal,
l - labeled, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
 
Network Next Hop Metric LocPrf Weight Path
*> 4000::/64 4ffe::119(fe80::eac5:7aff:fe8b:a827)
0 100 0 100 i
 
Total number of prefixes 1
 
#show ipv6 route database bgp
IP Route Table for VRF "default"
B *> 4000::/64 [20/0] via fe80::eac5:7aff:fe8b:a827, xe9, 00:06:53
 
 
#show ipv6 route database
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, D- DHCP, R - RIP,
O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, E - EVPN N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, i - IS-IS, B - BGP,
v - vrf leaked
> - selected route, * - FIB route,p - stale info
Timers: Uptime
 
IP Route Table for VRF "default"
C *> ::1/128 via ::, lo, 02:11:57
B *> 4000::/64 [20/0] via fe80::eac5:7aff:fe8b:a827, xe9, 00:08:19
C *> 4ffe::/64 via ::, xe9, 00:50:24
C *> fe80::/64 via ::, xe13, 00:05:07
C fe80::/64 via ::, ce1, 02:11:57
C fe80::/64 via ::, ce0, 02:11:57
C fe80::/64 via ::, xe23, 02:11:57
C fe80::/64 via ::, xe22, 02:11:57
C fe80::/64 via ::, xe21, 02:11:57
C fe80::/64 via ::, xe20, 02:11:57
C fe80::/64 via ::, xe15, 02:11:57
C fe80::/64 via ::, xe9, 02:11:57
C fe80::/64 via ::, xe6, 02:11:57
 
#show ipv6 route
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, D- DHCP, R - RIP,
O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, E - EVPN N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, i - IS-IS, B - BGP,
v - vrf leaked
Timers: Uptime
 
IP Route Table for VRF "default"
C ::1/128 via ::, lo, 02:14:13
B 4000::/64 [20/0] via fe80::eac5:7aff:fe8b:a827, xe9, 00:10:35
C 4ffe::/64 via ::, xe9, 00:52:40
C fe80::/64 via ::, xe13, 00:07:23
Performing BGP Graceful Restart
#write memory
Building configuration...
[OK]
#restart bgp graceful
%Warning : BGP process will stop and needs to restart manually,
You may lose bgp configuration,if not saved
Proceed for graceful restart? (y/n):y
2019 Feb 22 16:08:20.149 : OcNOS : BGP : CRITI : [BGP_OPR_NEIGH_STATE_DOWN_2]: Neighbour [4ffe::119] Session down as GR configured/unconfigured
2019 Feb 22 16:08:20.149 : OcNOS : BGP : CRITI : [BGP_OPR_NEIGH_STATE_DOWN_2]: Neighbour [4ffe::119] Session down due to config deletion
2019 Feb 22 16:08:20.153 : OcNOS : CML : CRITI : Module bgpd disconnected with CML
%% Managed module is down or crashed
2019 Feb 22 16:08:20.153 : OcNOS : CML : CRITI : Module bgpd disconnected with CML
 
#show ipv6 route
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, D- DHCP, R - RIP,
O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, E - EVPN N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, i - IS-IS, B - BGP,
v - vrf leaked
Timers: Uptime
 
IP Route Table for VRF "default"
C ::1/128 via ::, lo, 02:18:54
B 4000::/64 [20/0] via fe80::eac5:7aff:fe8b:a827, xe9, 00:15:16
C 4ffe::/64 via ::, xe9, 00:57:21
C fe80::/64 via ::, xe13, 00:12:04
 
#show ipv6 route database
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, D- DHCP, R - RIP,
O - OSPF, IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, E - EVPN N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, i - IS-IS, B - BGP,
v - vrf leaked
> - selected route, * - FIB route,p - stale info
Timers: Uptime
 
IP Route Table for VRF "default"
C *> ::1/128 via ::, lo, 02:19:23
B *>p 4000::/64 [20/0] via fe80::eac5:7aff:fe8b:a827, xe9, 00:15:45
C *> 4ffe::/64 via ::, xe9, 00:57:50
C *> fe80::/64 via ::, xe13, 00:12:33
C fe80::/64 via ::, ce1, 02:19:23
C fe80::/64 via ::, ce0, 02:19:23
C fe80::/64 via ::, xe23, 02:19:23
C fe80::/64 via ::, xe22, 02:19:23
C fe80::/64 via ::, xe21, 02:19:23
C fe80::/64 via ::, xe20, 02:19:23
C fe80::/64 via ::, xe15, 02:19:23
C fe80::/64 via ::, xe9, 02:19:23
C fe80::/64 via ::, xe6, 02:19:23
Restarting the BGP Daemon
#start-shell
bash-5.0$ su
Password:
root@OcNOS:/home/ocnos# cd /usr/local/sbin/
root@OcNOS:/usr/local/sbin# ./bgpd -d
Last modified date: 10/16/2023