[BUG] [BGP] command of `show ip bgp sum` shows ipv6 neighbors in ipv4 address-family
Hi all, I'm using frr-7.2.1-s3, I found command of `show ip bgp sum` shows ipv6 neighbors in ipv4 address-family, like this. Is this a bug? ``` dut-testbed(config-router)# do show ip bgp ipv6 summary IPv6 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 13313 RIB entries 12007, using 2158 KiB of memory Peers 3, using 61 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd fc00::76 4 64600 3606 6686 0 0 0 00:20:06 6002 fc00::7a 4 64600 3605 6686 0 0 0 00:20:06 6002 fc00::7e 4 64600 3605 6686 0 0 0 00:20:05 6002 Total number of neighbors 3 dut-testbed(config-router)# do show ip bgp ipv4 summary IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3610 3414 0 0 0 00:20:17 6002 10.0.0.59 4 64600 3610 3417 0 0 0 00:20:17 6002 10.0.0.61 4 64600 3610 3417 0 0 0 00:20:17 6002 10.0.0.63 4 64600 3610 3414 0 0 0 00:20:17 6002 fc00::72 4 64600 6 18 0 0 0 never Idle fc00::76 4 64600 3609 6690 0 0 0 00:20:15 NoNeg fc00::7a 4 64600 3609 6690 0 0 0 00:20:15 NoNeg fc00::7e 4 64600 3608 6689 0 0 0 00:20:14 NoNeg Total number of neighbors 8 dut-testbed(config-router)# address-family ipv6 dut-testbed(config-router-af)# neighbor fc00::72 activate dut-testbed(config-router-af)# do show ip bgp ipv4 summary IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3617 3421 0 0 0 00:20:39 6002 10.0.0.59 4 64600 3617 3424 0 0 0 00:20:39 6002 10.0.0.61 4 64600 3617 3424 0 0 0 00:20:39 6002 10.0.0.63 4 64600 3617 3421 0 0 0 00:20:39 6002 fc00::72 4 64600 6 18 0 0 0 never Idle fc00::76 4 64600 3616 6697 0 0 0 00:20:37 NoNeg fc00::7a 4 64600 3616 6697 0 0 0 00:20:37 NoNeg fc00::7e 4 64600 3616 6697 0 0 0 00:20:36 NoNeg Total number of neighbors 8 dut-testbed(config-router-af)# do show ip bgp ipv4 summary IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3618 3422 0 0 0 00:20:41 6002 10.0.0.59 4 64600 3618 3425 0 0 0 00:20:41 6002 10.0.0.61 4 64600 3618 3425 0 0 0 00:20:41 6002 10.0.0.63 4 64600 3618 3422 0 0 0 00:20:41 6002 fc00::72 4 64600 3212 20 0 0 0 00:00:01 NoNeg fc00::76 4 64600 3617 6698 0 0 0 00:20:39 NoNeg fc00::7a 4 64600 3616 6698 0 0 0 00:20:39 NoNeg fc00::7e 4 64600 3616 6698 0 0 0 00:20:38 NoNeg ``` ---- Simon Jones
``` dut-testbed(config-router-af)# do show ru Building configuration... Current configuration: ! frr version 7.2.1-sonic frr defaults traditional hostname sonic hostname dut-testbed service integrated-vtysh-config ! router bgp 65100 neighbor 10.0.0.57 remote-as 64600 neighbor 10.0.0.57 description ARISTA01T1 neighbor 10.0.0.57 timers 3 10 neighbor 10.0.0.59 remote-as 64600 neighbor 10.0.0.59 description ARISTA02T1 neighbor 10.0.0.59 timers 3 10 neighbor 10.0.0.61 remote-as 64600 neighbor 10.0.0.61 description ARISTA03T1 neighbor 10.0.0.61 timers 3 10 neighbor 10.0.0.63 remote-as 64600 neighbor 10.0.0.63 description ARISTA04T1 neighbor 10.0.0.63 timers 3 10 neighbor fc00::72 remote-as 64600 neighbor fc00::76 remote-as 64600 neighbor fc00::76 description ARISTA02T1 neighbor fc00::76 timers 3 10 neighbor fc00::7a remote-as 64600 neighbor fc00::7a description ARISTA03T1 neighbor fc00::7a timers 3 10 neighbor fc00::7e remote-as 64600 neighbor fc00::7e description ARISTA04T1 neighbor fc00::7e timers 3 10 ! address-family ipv4 unicast network 10.1.0.32/32 network 192.168.0.0/21 exit-address-family ! address-family ipv6 unicast network fc00:1::32/128 neighbor fc00::72 activate neighbor fc00::76 activate neighbor fc00::7a activate neighbor fc00::7e activate exit-address-family ! line vty ! end ``` ---- Simon Jones Simon Jones <batmanustc@gmail.com> 于2020年7月30日周四 下午2:31写道:
Hi all,
I'm using frr-7.2.1-s3, I found command of `show ip bgp sum` shows ipv6 neighbors in ipv4 address-family, like this.
Is this a bug?
``` dut-testbed(config-router)# do show ip bgp ipv6 summary
IPv6 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 13313 RIB entries 12007, using 2158 KiB of memory Peers 3, using 61 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd fc00::76 4 64600 3606 6686 0 0 0 00:20:06 6002 fc00::7a 4 64600 3605 6686 0 0 0 00:20:06 6002 fc00::7e 4 64600 3605 6686 0 0 0 00:20:05 6002
Total number of neighbors 3 dut-testbed(config-router)# do show ip bgp ipv4 summary
IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3610 3414 0 0 0 00:20:17 6002 10.0.0.59 4 64600 3610 3417 0 0 0 00:20:17 6002 10.0.0.61 4 64600 3610 3417 0 0 0 00:20:17 6002 10.0.0.63 4 64600 3610 3414 0 0 0 00:20:17 6002 fc00::72 4 64600 6 18 0 0 0 never Idle fc00::76 4 64600 3609 6690 0 0 0 00:20:15 NoNeg fc00::7a 4 64600 3609 6690 0 0 0 00:20:15 NoNeg fc00::7e 4 64600 3608 6689 0 0 0 00:20:14 NoNeg
Total number of neighbors 8 dut-testbed(config-router)# address-family ipv6 dut-testbed(config-router-af)# neighbor fc00::72 activate dut-testbed(config-router-af)# do show ip bgp ipv4 summary
IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3617 3421 0 0 0 00:20:39 6002 10.0.0.59 4 64600 3617 3424 0 0 0 00:20:39 6002 10.0.0.61 4 64600 3617 3424 0 0 0 00:20:39 6002 10.0.0.63 4 64600 3617 3421 0 0 0 00:20:39 6002 fc00::72 4 64600 6 18 0 0 0 never Idle fc00::76 4 64600 3616 6697 0 0 0 00:20:37 NoNeg fc00::7a 4 64600 3616 6697 0 0 0 00:20:37 NoNeg fc00::7e 4 64600 3616 6697 0 0 0 00:20:36 NoNeg
Total number of neighbors 8 dut-testbed(config-router-af)# do show ip bgp ipv4 summary
IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3618 3422 0 0 0 00:20:41 6002 10.0.0.59 4 64600 3618 3425 0 0 0 00:20:41 6002 10.0.0.61 4 64600 3618 3425 0 0 0 00:20:41 6002 10.0.0.63 4 64600 3618 3422 0 0 0 00:20:41 6002 fc00::72 4 64600 3212 20 0 0 0 00:00:01 NoNeg fc00::76 4 64600 3617 6698 0 0 0 00:20:39 NoNeg fc00::7a 4 64600 3616 6698 0 0 0 00:20:39 NoNeg fc00::7e 4 64600 3616 6698 0 0 0 00:20:38 NoNeg ```
---- Simon Jones
By default ipv6 nbrs are activated in IPv4 address family , you will have to disable them explicitly “no neighbor xx::xx activate” Thanks, Vijay From: frog <frog-bounces@lists.frrouting.org> On Behalf Of Simon Jones Sent: 30 July 2020 12:04 To: frog <frog@lists.frrouting.org> Subject: Re: [FROG] [BUG] [BGP] command of `show ip bgp sum` shows ipv6 neighbors in ipv4 address-family ``` dut-testbed(config-router-af)# do show ru Building configuration... Current configuration: ! frr version 7.2.1-sonic frr defaults traditional hostname sonic hostname dut-testbed service integrated-vtysh-config ! router bgp 65100 neighbor 10.0.0.57 remote-as 64600 neighbor 10.0.0.57 description ARISTA01T1 neighbor 10.0.0.57 timers 3 10 neighbor 10.0.0.59 remote-as 64600 neighbor 10.0.0.59 description ARISTA02T1 neighbor 10.0.0.59 timers 3 10 neighbor 10.0.0.61 remote-as 64600 neighbor 10.0.0.61 description ARISTA03T1 neighbor 10.0.0.61 timers 3 10 neighbor 10.0.0.63 remote-as 64600 neighbor 10.0.0.63 description ARISTA04T1 neighbor 10.0.0.63 timers 3 10 neighbor fc00::72 remote-as 64600 neighbor fc00::76 remote-as 64600 neighbor fc00::76 description ARISTA02T1 neighbor fc00::76 timers 3 10 neighbor fc00::7a remote-as 64600 neighbor fc00::7a description ARISTA03T1 neighbor fc00::7a timers 3 10 neighbor fc00::7e remote-as 64600 neighbor fc00::7e description ARISTA04T1 neighbor fc00::7e timers 3 10 ! address-family ipv4 unicast network 10.1.0.32/32<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F10.1.0.32%2F32&data=02%7C01%7Cvijayg%40vmware.com%7C1092a07a4dd04fdafc6b08d83961ba9e%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637322439206005900&sdata=5MAyiEynkiGqHrH%2FUAARs5QuPm5MC1MoJ4JG9dCIQWI%3D&reserved=0> network 192.168.0.0/21<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F192.168.0.0%2F21&data=02%7C01%7Cvijayg%40vmware.com%7C1092a07a4dd04fdafc6b08d83961ba9e%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637322439206015894&sdata=AFBzdJ0eKqFqyGYQ%2BGnavmnbjcGKp1iYr0GJXLqlu5k%3D&reserved=0> exit-address-family ! address-family ipv6 unicast network fc00:1::32/128 neighbor fc00::72 activate neighbor fc00::76 activate neighbor fc00::7a activate neighbor fc00::7e activate exit-address-family ! line vty ! end ``` ---- Simon Jones Simon Jones <batmanustc@gmail.com<mailto:batmanustc@gmail.com>> 于2020年7月30日周四 下午2:31写道: Hi all, I'm using frr-7.2.1-s3, I found command of `show ip bgp sum` shows ipv6 neighbors in ipv4 address-family, like this. Is this a bug? ``` dut-testbed(config-router)# do show ip bgp ipv6 summary IPv6 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 13313 RIB entries 12007, using 2158 KiB of memory Peers 3, using 61 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd fc00::76 4 64600 3606 6686 0 0 0 00:20:06 6002 fc00::7a 4 64600 3605 6686 0 0 0 00:20:06 6002 fc00::7e 4 64600 3605 6686 0 0 0 00:20:05 6002 Total number of neighbors 3 dut-testbed(config-router)# do show ip bgp ipv4 summary IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3610 3414 0 0 0 00:20:17 6002 10.0.0.59 4 64600 3610 3417 0 0 0 00:20:17 6002 10.0.0.61 4 64600 3610 3417 0 0 0 00:20:17 6002 10.0.0.63 4 64600 3610 3414 0 0 0 00:20:17 6002 fc00::72 4 64600 6 18 0 0 0 never Idle fc00::76 4 64600 3609 6690 0 0 0 00:20:15 NoNeg fc00::7a 4 64600 3609 6690 0 0 0 00:20:15 NoNeg fc00::7e 4 64600 3608 6689 0 0 0 00:20:14 NoNeg Total number of neighbors 8 dut-testbed(config-router)# address-family ipv6 dut-testbed(config-router-af)# neighbor fc00::72 activate dut-testbed(config-router-af)# do show ip bgp ipv4 summary IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3617 3421 0 0 0 00:20:39 6002 10.0.0.59 4 64600 3617 3424 0 0 0 00:20:39 6002 10.0.0.61 4 64600 3617 3424 0 0 0 00:20:39 6002 10.0.0.63 4 64600 3617 3421 0 0 0 00:20:39 6002 fc00::72 4 64600 6 18 0 0 0 never Idle fc00::76 4 64600 3616 6697 0 0 0 00:20:37 NoNeg fc00::7a 4 64600 3616 6697 0 0 0 00:20:37 NoNeg fc00::7e 4 64600 3616 6697 0 0 0 00:20:36 NoNeg Total number of neighbors 8 dut-testbed(config-router-af)# do show ip bgp ipv4 summary IPv4 Unicast Summary: BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0 BGP table version 12008 RIB entries 12011, using 2158 KiB of memory Peers 8, using 163 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.0.57 4 64600 3618 3422 0 0 0 00:20:41 6002 10.0.0.59 4 64600 3618 3425 0 0 0 00:20:41 6002 10.0.0.61 4 64600 3618 3425 0 0 0 00:20:41 6002 10.0.0.63 4 64600 3618 3422 0 0 0 00:20:41 6002 fc00::72 4 64600 3212 20 0 0 0 00:00:01 NoNeg fc00::76 4 64600 3617 6698 0 0 0 00:20:39 NoNeg fc00::7a 4 64600 3616 6698 0 0 0 00:20:39 NoNeg fc00::7e 4 64600 3616 6698 0 0 0 00:20:38 NoNeg ``` ---- Simon Jones
Le 05/08/2020 à 19:10, Vijay Kumar Gupta a écrit :
By default ipv6 nbrs are activated in IPv4 address family , you will have to disable them explicitly
“no neighbor xx::xx activate”
Thanks,
Vijay
Or you can use "no bgp default ipv4-unicast", and activate the ipv4 neighbors in the ipv4 unicast address family.
Vijay is correct. This is somewhat confusing. After some investigation here's what appears to be the status quo: 1. In "show [ip] bgp summary", specifying "ip" shows only activated for the IPv4 AF. Omitting "ip" shows only peers activated for the IPv6 AF. 2. IPv4 unicast is activated by default for all peers. 3. At some point, we decided this was very confusing, and added a command - "show bgp [afi] [safi]", which would show peers activated for the specific AFI/SAFI combination you were interested in. However, this was added to the existing "show [ip] bgp" command definition, so now we have "show [ip] bgp [afi] [safi]". So you can enter things like "show ip bgp ipv6". What does this mean? Indeterminate. 4. Conclusion: use "show [ip] bgp", OR "show bgp [afi] [safi]". While you can use both, the results are basically undefined, inasmuch as I don't think anyone has actually thought through what that even means and coded for it. Hope this helps! On Wed, Aug 5, 2020 at 2:39 PM Erwan David <erwan@rail.eu.org> wrote:
Le 05/08/2020 à 19:10, Vijay Kumar Gupta a écrit :
By default ipv6 nbrs are activated in IPv4 address family , you will have to disable them explicitly
“no neighbor xx::xx activate”
Thanks,
Vijay
Or you can use "no bgp default ipv4-unicast", and activate the ipv4 neighbors in the ipv4 unicast address family.
_______________________________________________ frog mailing list frog@lists.frrouting.org https://lists.frrouting.org/listinfo/frog
participants (5)
-
Erwan David -
Mark Tinka -
Quentin Young -
Simon Jones -
Vijay Kumar Gupta