show ipv6 bgp

Displays entries in the BGP4+ routing table.
Syntax
show ipv6 bgp
show ipv6 bgp ipv6-prefix /prefix-length
show ipv6 bgp ipv6-prefix /prefix-length longer-prefixes
Parameters
ipv6-prefix
Specifies an IPv6 network number.
/prefix-length
Specifies the length of the IPv6 prefix.
longer-prefixes
Displays routes that match a specified or longer BGP prefix.
Modes

User EXEC mode

The show ipv6 bgp command displays the following information:

Output field Description

Total number of BGP Routes (appears in display of all BGP routes only)

The number of routes known by the device.

Number of BGP Routes matching display condition (appears in display that matches specified and longer prefixes)

The number of routes that matched the display parameters you entered. This is the number of routes displayed by the command.

Status codes

A list of the characters the display uses to indicate the route’s status. The status code appears in the left column of the display, to the left of each route. The status codes are described in the command’s output.

Origin codes

A character the display uses to indicate the route’s origin. The origin code appears to the right of the AS path (Path field). The origin codes are described in the command’s output.

Network

The network prefix and prefix length.

Next Hop

The next-hop router for reaching the network from the device.

MED

The value of the route’s MED attribute. If the route does not have a metric, this field is blank.

LocPrf

The degree of preference for this route relative to other routes in the local AS. When the BGP4+ algorithm compares routes on the basis of local preferences, the route with the higher local preference is chosen. The preference can have a value from 0 - 4294967295.

Weight

The value that this device associates with routes from a specific neighbor. For example, if the receives routes to the same destination from two BGP4+ neighbors, the prefers the route from the neighbor with the larger weight.

Path

The route’s AS path.

Examples

The following example displays sample output from the show ipv6 bgp command.

device> show ipv6 bgp

Total number of BGP Routes: 4
Status codes: s suppressed, d damped, h history, * valid, > best, i internal, S
stale
Origin codes: i - IGP, e - EGP, ? - incomplete
    Network            	   Next Hop     MED    LocPrf     Weight Path
*>  2001:db8:10:10::/64 ::              1      100        32768  ?
*>  2001:db8:113:113::/64  ::
                                        1      100        32768  i
*>  2001:db8:400:400::/64  ::1
                                        0      100        32768  i
*i  2001:db8:400:400::/64  2001:db8:400:400::2
                                        0      400        0      65005 65010 ?
*>i 2001:db8:824:824::/64  2001:db8:400:400::2
                                        0      400        0      65005 65010 i

The following example displays sample output from the show ipv6 bgp command, showing information for prefix 2001:db8:400:400::/64, when the longer-prefixes keyword is used.

device> show ipv6 bgp 2001:db8:400:400::/64 longer-prefixes

Number of BGP Routes matching display condition : 2
Status codes: s suppressed, d damped, h history, * valid, > best, i internal
Origin codes: i - IGP, e - EGP, ? - incomplete
    Network            Next Hop        MED    LocPrf     Weight Path
*>  2001:db8:400:400::/64  ::
                                       0      100        32768  i
*i  2001:db8:400:400::/64  2001:db8:400:400::2
                                       0      400        0      65005 65010 ?