hello, I have a LAB to which I am trying to upload an L3VPN, there are 2 vyos running ospf and with a BGP session with unicast-vpn and I need both vyos to have a management vrf called shared kmg, bgp sessions establish exchange routes, however there is no connectivity between the vyos in the vrf kmg, from what I see with the show ip route vrf kmg command, I only see the local routes with this command.
Iβll show you the settings and check results, maybe you can shed some light on what Iβm doing wrong in my lab.
vyos@Router-1# show protocols bgp | commands
set local-as β65530β
set neighbor 198.19.1.255 address-family ipv4-vpn
set neighbor 198.19.1.255 remote-as β65530β
set neighbor 198.19.1.255 update-source βdum0β
set parameters router-id β198.19.2.122β
vyos@Router-1# show vrf name kmg | commands
set protocols bgp address-family ipv4-unicast export vpn
set protocols bgp address-family ipv4-unicast import vpn
set protocols bgp address-family ipv4-unicast label vpn export β100β
set protocols bgp address-family ipv4-unicast rd vpn export β100:100β
set protocols bgp address-family ipv4-unicast redistribute connected
set protocols bgp address-family ipv4-unicast route-target vpn both β100:100β
set protocols bgp local-as β65530β
set table β100β
vyos@Router-1$ show bgp ipv4 vpn
BGP table version is 15, local router ID is 198.19.2.122, vrf id 0
Default local pref 100, local AS 65530
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
Route Distinguisher: 100:100
*>i10.1.1.1/32 198.19.1.255 0 100 0 ?
UN=198.19.1.255 EC{100:100} label=100 type=bgp, subtype=0
*> 10.2.2.1/32 0.0.0.0@5< 0 32768 ?
UN=0.0.0.0 EC{100:100} label=100 type=bgp, subtype=5
Displayed 2 routes and 2 total paths
vyos@Router-1$ show ip route vrf kmg
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
f - OpenFabric,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
VRF kmg:
K>* 0.0.0.0/0 [255/8192] unreachable (ICMP unreachable), 14:54:06
C>* 10.2.2.1/32 is directly connected, dum100, 14:54:05
vyos@Router-2# show protocols bgp | commands
set local-as β65530β
set neighbor 198.19.2.255 address-family ipv4-vpn route-reflector-client
set neighbor 198.19.2.255 remote-as β65530β
set neighbor 198.19.2.255 update-source βdum0β
set parameters router-id β198.19.1.255β
vyos@Router-2# show vrf name kmg | commands
set protocols bgp address-family ipv4-unicast export vpn
set protocols bgp address-family ipv4-unicast import vpn
set protocols bgp address-family ipv4-unicast label vpn export β100β
set protocols bgp address-family ipv4-unicast rd vpn export β100:100β
set protocols bgp address-family ipv4-unicast redistribute connected
set protocols bgp address-family ipv4-unicast route-target vpn both β100:100β
set protocols bgp local-as β65530β
set table β100β
vyos@Router-2$ show bgp ipv4 vpn
BGP table version is 3, local router ID is 198.19.1.255, vrf id 0
Default local pref 100, local AS 65530
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
Route Distinguisher: 100:100
*> 10.1.1.1/32 0.0.0.0@5< 0 32768 ?
UN=0.0.0.0 EC{100:100} label=100 type=bgp, subtype=5
*>i10.2.2.1/32 198.19.2.255 0 100 0 ?
UN=198.19.2.255 EC{100:100} label=100 type=bgp, subtype=0
Displayed 2 routes and 2 total paths
vyos@Router-2$ show ip route vrf kmg
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
f - OpenFabric,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
VRF kmg:
C>* 10.1.1.1/32 is directly connected, dum100, 01:11:51