Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vpn4 route is not imported to VRF #16036

Open
dpac opened this issue May 18, 2024 · 0 comments
Open

Vpn4 route is not imported to VRF #16036

dpac opened this issue May 18, 2024 · 0 comments

Comments

@dpac
Copy link

dpac commented May 18, 2024

Hi

I am using frr container and noticed bgp route is showing as invalid . It doesn't get import into VRF . The issue looks similar to this issue . I am using latest version . Am i missing something ?

9bb03e71fecc# show version FRRouting 10.1-dev_git20240513 (9bb03e71fecc) on Linux(6.1.87-99.174.amzn2023.x86_64). Copyright 1996-2005 Kunihiro Ishiguro, et al. configured with: '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--sbindir=/usr/lib/frr' '--libdir=/usr/lib' '--enable-rpki' '--enable-vtysh' '--enable-multipath=64' '--enable-vty-group=frrvty' '--enable-user=frr' '--enable-group=frr' '--enable-pcre2posix' '--enable-scripting' 'CC=gcc' 'CXX=g++'

Topology

C01(VRF-BOSTON) > R2(2.2.2.2) > R3(3.3.3.3) > R4(4.4.4.4) > R5(5.5.5.5) > c02 (VRF-BOSTON)

R2 , R3 ,R4,R5 have active MPLS interface. All routers are docker containers in a single node.

routes in vrf BOSTON on R2 (provider edge)

9bb03e71fecc# show ip bgp vrf BOSTON detail
BGP table version is 1, local router ID is 192.168.11.2, vrf id 2
Default local pref 100, local AS 65000
BGP routing table entry for 192.168.11.0/24, version 1
Paths: (1 available, best #1, vrf BOSTON)
Not advertised to any peer
Local
0.0.0.0 from 0.0.0.0 (192.168.11.2)
Origin incomplete, metric 0, weight 32768, valid, sourced, best (First path received)
Last update: Tue May 14 06:05:51 2024
BGP routing table entry for 192.168.33.0/24, version 0
Paths: (1 available, no best path)
Not advertised to any peer
Imported from 65000:11:192.168.33.0/24
Local
5.5.5.5 (metric 30) from 0.0.0.0 (192.168.11.2) vrf default(0) announce-nh-self
Origin incomplete, metric 0, localpref 100, invalid, sourced, local
Extended Community: RT:65000:11
Remote label: 145
Last update: Fri May 17 10:50:16 2024

Displayed 2 routes and 2 total paths

Labels

9bb03e71fecc# show mpls ldp ipv4 binding
AF Destination Nexthop Local Label Remote Label In Use
ipv4 2.2.2.2/32 3.3.3.3 imp-null 16 no
ipv4 3.3.3.3/32 3.3.3.3 16 imp-null yes
ipv4 4.4.4.4/32 3.3.3.3 17 17 yes
ipv4 5.5.5.5/32 3.3.3.3 20 19 yes
ipv4 10.0.23.0/24 3.3.3.3 imp-null imp-null no
ipv4 10.0.34.0/24 3.3.3.3 18 imp-null yes
ipv4 10.0.45.0/24 3.3.3.3 19 18 yes
ipv4 192.168.11.0/24 0.0.0.0 imp-null - no
ipv4 192.168.22.0/24 0.0.0.0 imp-null - no

BGP config

9bb03e71fecc# show run bgpd
Building configuration...

Current configuration:
!
frr version 10.1-dev_git20240513
frr defaults traditional
hostname 9bb03e71fecc
!
vrf BOSTON
exit-vrf
!
router bgp 65000
bgp router-id 2.2.2.2
neighbor 5.5.5.5 remote-as 65000
neighbor 5.5.5.5 disable-connected-check
neighbor 5.5.5.5 update-source lo
!
address-family ipv4 unicast
neighbor 5.5.5.5 next-hop-self
exit-address-family
!
address-family ipv4 vpn
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 next-hop-self
exit-address-family
exit
!
router bgp 65000 vrf BOSTON
!
address-family ipv4 unicast
redistribute connected
label vpn export auto
rd vpn export 65000:11
rt vpn both 65000:11
export vpn
import vpn
exit-address-family
exit
!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant