cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7922
Views
0
Helpful
6
Replies

"sh ip bgp ipv6" or "sh bgp ipv6"

Hi All,

im trying to clarify some confusion with where this is going in terms of show commands for bgp

when i first played with ipv6 bgp in 12.3 years back, the only way to view bgp v6 items was via "sh bgp ipv6", and this as far as i recall was meant to be the way forward for v4 too, and 'sh ip bgp' was to be removed in future ios releases.

Now im looking at SRE5 in the lab, and a 'sh bgp ipv6' gives me not output saying its deprecated, and 'show ip bgp ipv4' shows me all v4 and v6 bgp neighbour sessions.

if anyone can anyone shed some light on this it would be great since its a tad confusing, even more when you add vpnv4 to the mix.

thanks

Mark

6 Replies 6

Marcin Latosiewicz
Cisco Employee
Cisco Employee

Mark,

Let me try to answer your question like this.

As far as I know. Both commands are still valid (check int recent 15.2.1T release).

R2#show bgp ipv6 unicast

BGP table version is 2, local router ID is 192.168.23.2

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter

Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path

*> 2001:DB8:2::/64  ::                       0         32768 i

R2#show ip bgp ipv6 unicast

BGP table version is 2, local router ID is 192.168.23.2

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter

Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path

*> 2001:DB8:2::/64  ::                       0         32768 i

What is deprecated is the command without "unicast" added.

R2#show ip bgp ipv6

% Incomplete command.

R2#show bgp ipv6

BGP table version is 3, local router ID is 192.168.23.2

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter

Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path

*> 2001:DB8:2::/64  ::                       0         32768 i

% NOTE: This command is deprecated. Please use 'show bgp ipv6 unicast'

I'm not aware of anything specific to SRE that would cause it to be different.

Can you make share same outputs from your devices?

M.

Hi Marcin

this is what I have:

Cisco 7206VXR (NPE-G2) processor (revision A) with 917504K/65536K bytes of memory.

System image file is "disk2:c7200p-advipservicesk9-mz.122-33.SRE5.bin"

I have the following setup and running on this box: OSPFv2, OSPFv3, BGP (v4 and v6)

The outputs are below, and I think these are not expected outputs

thanks

Mark

NPEG2#sh bgp ipv6 unicast

% Uninitialized context

NPEG2#show ip bgp ipv6

% Incomplete command.

NPEG2#sh bgp ipv6

% Uninitialized context

NPEG2#sh bgp ipv4 unicast sum

BGP router identifier 212.56.128.243, local AS number 12709

BGP table version is 1, main routing table version 1

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd

2A01:180:10:10::2

                4        12709       7       8        1    0    0 00:04:01        0

212.56.128.240  4        12709       6       6        1    0    0 00:04:00        0

NPEG2#sh bgp ipv6 unicast sum

% Uninitialized context

Mark,

Part of the problem:

http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCsk45226

(not sure if you will be able to see this bug).

Anyway I looks like part of the code was not initialized, can I suggest to open up a TAC case so we can check with BU?

Marcin

Hi Marcin,

thanks - will follow the bug

however I also realised that the v6 bgp session was showing up under the v4 address family in the bgp config. it was up ok, but im not sure if this is actually correct behaviour.

So i moved the config for the v6 peer to the v6 address family, and the outputs worked as expected, and "sh bgp ipv4 unicast sum", only showed the v4 neighbour as expected.

Let me know if i should still involve tac for the v6 peer in the v4 address family part

cheers

Mark

Mark,

Well un-initlized context is kind of a an odd way to signal it, you have to agree :-)

If you feel like it, you can open up a TAC case, maybe something cosmetic/minor will come out of it.

Marcin

Hello,

if you have problem with sh bgp ipv6 command and you see :

% Uninitialized context

you didn't enable address familiy ipv6 under router bgp process :

router bgp 64512

address-family ipv6 unicast

neighbor activate

I test this in lab env in GNS3 and i have image c7200-adventerprisek9_sna-mz.150-1.M. on my router.

I also have problem with show bgp ipv4 unicast summary that show me my ipv6 bgp session under that.

David

David