OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Show Commands : show bgp ipv6
show bgp ipv6
Use this command to display the BGP routing table.
Command Syntax
show bgp ipv6 (unicast|multicast|labeled|)
show bgp ipv6 (unicast|multicast|labeled|) X:X::X:X/M
Parameters
multicast
IPv6 multicast address prefixes
unicast
IPv6 unicast address prefixes
labeled
Labeled IPv6 routes
X:X::X:X/M
IPv6 prefix network/length, such as 3ffe:a::/64
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example: iBGP and eBGP Routes
This example shows routes learned from both iBGP and eBGP.
#show bgp ipv6
BGP table version is 0, local router ID is 10.100.0.77
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal S stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Metric LocPrf Weight Path
*> 2001:58::/32 0 20 ?
fe80::202:b3ff:fec8:9fdb
*> 2002:58::/32 0 20 i
fe80::202:b3ff:fec8:9fdb
*>i2003:58::/32 100 0 i
fe80::208:a1ff:fe16:797d
Header
BGP table version is 0, local router ID is 10.100.0.77
BGP table version
BGP router ID is 10.100.0.77
Status codes: s suppressed, d damped, h history, p stale, * valid, > best, i - internal
 
Table 7-13 shows the status codes displayed at the start of a route entry.
 
Table 7-13: status details
Status
Code
Description
Comments
s
suppressed
Whether the route is suppressed and is not advertised to neighbors.
d
damped
When the penalty of a flapping route exceeds the suppress limit, the route is damped and remains in a withdrawn state until its penalty decreases below the reuse limit.
h
history
When the penalty of a flapping route does not exceed the suppress limit, the route is not damped and BGP maintains a history of the flapping route.
p
stale
When the BGP neighbor from which a route is learned is in graceful restart, the route is retained in the BGP routing table, but marked as stale.
*
valid
Whether the route is valid. When a route is not suppressed, damped, or present in the history, it is valid.
>
best
The selected route to be installed in the kernel routing table.
i
internal
The prefix was learned from an iBGP peer.
Origin codes: i - IGP, e - EGP, ? - incomplete
Table 7-14 shows the codes at the end of each route entry that indicate where the route originated.
 
Table 7-14: origin codes
Origin Code
Description
Comments
i
IGP
The route is from an Interior Gateway Protocol.
e
EGP
The route is from an Exterior Gateway Protocol.
?
incomplete
Origin not known. Typically, these are routes redistributed from an IGP.
Route Entry Examples
*> 2002:58::/32 fe80::202:b3ff:fec8:9fdb 0 20 i
This route entry shows that this route is learned from eBGP.
The origin code “i” means that the prefix is added by the network statement at originating AS.
The path 20 indicates that the prefix advertisement originated from AS20.
The administrative weight parameter applies only to routes within an individual router.
Since this route was learned from a peer, it has a default weight of 0. All routes generated by the local router have a weight of 32,768.
*> 2001:58::/32 fe80::202:b3ff:fec8:9fdb 0 20 ?
This route entry shows that the prefix is learnt from eBGP.The origin code i indicates that the prefix is added by network statement at originating AS.The path attribute 20 indicates that the route advertisement originated from AS20.The administrative weight parameter applies only to routes within an individual router. Since this route was learned from a peer, it has a default weight of 0. All routes generated by the local router have a weight of 32,768.The origin code “?” means the route was learned through redistribution.
*>i2003:58::/32 fe80::208:a1ff:fe16:797d 100 0 i
The status code “i” means that the route was learned through iBGP. The Local Preference attribute of the route, which is used only with the local AS, is set to 100 (the default value).
Example: IPv6 Prefix Routes
This example shows labeled routes for a given IPv6 prefix:
#show bgp ipv6 labeled 3ffe:a::/64
BGP routing table entry for 3ffe:a::/64
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
::ffff:114:1414 from 20.20.20.1 (92.92.92.92)
Origin incomplete metric 0, localpref 100, label 5420,
valid, internal, best
Last update: Mon May 26 17:48:18 2008
 
Table 7-15 explains the output fields.
 
Table 7-15: show bgp ipv6 output details
Field
Description
Paths
The paths listed in the routing table, along with path information, and whether the path are being advertised.
Metric
If shown, the value of the inter-autonomous system metric.
LocalPref
Local preference value as set with the set local-preference route-map configuration command.
rx path_id
Autonomous system receive path to the source network. There can be one entry in this field for each autonomous system in the path.
tx path_id
Autonomous system transmit path to the destination network. There can be one entry in this field for each autonomous system in the path.
Last update
Last time since the neighbor transitioned to or from the established state.
 
Last modified date: 10/16/2023