I have a vyos server between an ubuntu server running BIRD and a v9k.
I have 3 ASN’s one assigned to each device.
I have BGP Peering setup on vyos with both peers and they are established.
The problem I have is that vyos is learning a route from BIRD but when I attempt to set up redistribution the command says it is not valid while the documentation says it should be available.
Command:
set protocols bgp 65009 address-family ipv4-unicast redistribute bgp
Error:
Configuration path: protocols bgp 65009 address-family ipv4-unicast redistribute [bgp] is not valid
Set failed
set protocols bgp address-family <ipv4-unicast|ipv6-unicast> redistribute
This command redistributes routing information from the given route source to the BGP process. There are six modes available for route source: bgp, connected, kernel, ospf, rip, static.
@juesor
Bgp announce enabled by default.
You don’t need to declare redistribute BGP over BGP. It no makes any sense.
It’s mean “Redistribute information from another routing protocol” via bgp.
vyos@r5-roll# set protocols bgp 65001 address-family ipv4-unicast redistribute
Possible completions:
> connected Redistribute connected routes into BGP
> kernel Redistribute kernel routes into BGP
> ospf Redistribute OSPF routes into BGP
> rip Redistribute RIP routes into BGP
> static Redistribute static routes into BGP
table Redistribute non-main Kernel Routing Table
show ip route 192.168.102.2
Routing entry for 192.168.102.2/32
Known via “bgp”, distance 20, metric 0, best
Last update 07:46:33 ago
192.168.101.2, via eth1, weight 1
vyos@vyos:/var/log$ show ip bgp neighbors 192.168.101.2 routes
BGP table version is 3, local router ID is 10.10.10.60, vrf id 0
Default local pref 100, local AS 65009
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
Network Next Hop Metric LocPrf Weight Path
*> 192.168.102.2/32 192.168.101.2 0 65010 i
Displayed 1 routes and 3 total paths
vyos@vyos:/var/log$ show ip bgp neighbors 192.168.101.2 routes
BGP table version is 3, local router ID is 10.10.10.60, vrf id 0
Default local pref 100, local AS 65009
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
Network Next Hop Metric LocPrf Weight Path
*> 192.168.102.2/32 192.168.101.2 0 65010 i
Displayed 1 routes and 3 total paths
vyos@vyos:/var/log$ show ip bgp neighbor 192.168.100.2 advertised-routes
BGP table version is 3, local router ID is 10.10.10.60, vrf id 0
Default local pref 100, local AS 65009
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
Network Next Hop Metric LocPrf Weight Path
*> 192.168.100.0/30 0.0.0.0 0 32768 ?
*> 192.168.101.0/30 0.0.0.0 0 32768 ?
*> 192.168.102.2/32 192.168.101.2 0 65010 i