Page MenuHomeVyOS Platform

"show bgp neighbors ... advertised-routes" and some other commands fail for IPv4 neighbors
Closed, ResolvedPublicBUG

Description

When I try to get more details, like for example the advertised routes, I get an error.

vyos@host:~$ show bgp neighbors 127.0.0.1 advertised-routes
% No such neighbor or address family

This applies to all sub-functions of show bgp neighbors 127.0.0.1 ...
"show bgp neighbors 127.0.0.1" as such however, works.

vyos@host:~$ show bgp neighbors 127.0.0.1
BGP neighbor is 127.0.0.1, remote AS 1111, local AS 2222, external link
  Local Role: undefined
  Remote Role: undefined
  BGP version 4, remote router ID 127.0.0.1, local router ID 1.1.1.1
  BGP state = Established, up for 00:19:46
  Last read 00:00:00, Last write 00:00:16
.
.
.

Also the BGP session as such works fine,

vyos@host:~$ show bgp summary
IPv4 Unicast Summary (VRF default):
BGP router identifier 127.0.0.2, local AS number 11111 vrf-id 0
BGP table version 904637
RIB entries 1643803, using 301 MiB of memory
Peers 1, using 724 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
127.0.0.1 4      11111    249048        46        0    0    0 00:21:26       896813        1 N/A

Also the error applies only on IPv4 sessions.
IPv6 sessions work fine.

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.4-rolling-202212080318
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

use the next syntax

show bgp ipv4 neighbors x.x.x.x advertised-routes

This works,
but if this is the new syntax the cli needs some cleanup.

show bgp neighbors 127.0.0.1 advertised-routes

Is still offered by the autocomplete and works for ipv6.

dmbaturin renamed this task from Show ipv4 neighbor details fails to "show bgp neighbors ... advertised-routes" and some other commands fail for IPv4 neighbors.Jan 5 2023, 2:22 PM

Checked in VyOS 1.4-rolling-202310030309

The command shows ipv4 neighbors:

$ show ip bgp neighbors 172.18.201.10 advertised-routes

BGP table version is 20, local router ID is 10.0.0.3, vrf id 0
Default local pref 100, local AS 64512
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

    Network          Next Hop            Metric LocPrf Weight Path
 *> 10.0.11.0/24     0.0.0.0                                0 64511 i
 *> 10.0.12.0/24     0.0.0.0                  0         32768 i
 *> 10.0.111.0/24    0.0.0.0                                0 64511 i
 *> 10.0.112.0/24    0.0.0.0                  0         32768 i

Tested in VyOS 1.4-rolling-202311100309
Configs:
Node-1

set protocols bgp system-as 65534
set protocols bgp neighbor 192.168.0.2 ebgp-multihop '2'
set protocols bgp neighbor 192.168.0.2 remote-as '65535'
set protocols bgp neighbor 192.168.0.2 update-source '192.168.0.1'
set protocols bgp address-family ipv4-unicast network '10.0.11.0/24'
set protocols bgp neighbor 192.168.0.2 address-family ipv4-unicast
set protocols bgp parameters router-id '192.168.0.1'
set protocols static route 10.0.11.0/24 blackhole distance '254'

Node-2

set protocols bgp system-as 65535
set protocols bgp neighbor 192.168.0.1 ebgp-multihop '2'
set protocols bgp neighbor 192.168.0.1 remote-as '65534'
set protocols bgp neighbor 192.168.0.1 update-source '192.168.0.2'
set protocols bgp neighbor 192.168.0.1 address-family ipv4-unicast
set protocols bgp address-family ipv4-unicast network '10.0.12.0/24'
set protocols bgp parameters router-id '192.168.0.2'
set protocols static route 10.0.11.0/24 blackhole distance '254'

Checking:

$show ip bgp neighbors 192.168.0.2 advertised-routes

BGP table version is 2, local router ID is 192.168.0.1, vrf id 0
Default local pref 100, local AS 65534
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

    Network          Next Hop            Metric LocPrf Weight Path
 *> 10.0.11.0/24     0.0.0.0                  0         32768 i
 *> 10.0.12.0/24     0.0.0.0                                0 65535 i

Works as expected

There are different commands

vyos@r1:~$ show bgp neighbors 192.168.122.14 advertised-routes 
% No such neighbor or address family
vyos@r1:~$ 
vyos@r1:~$ show ip  bgp neighbors 192.168.122.14 advertised-routes 
vyos@r1:~$