cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1551
Views
10
Helpful
18
Replies

MPLS vpnv4 l3 network I am not getting routes from CE Router

R Manjunatha
Level 3
Level 3

Hi,

I created the VRF in PE router R38 AS5610 and similarly in PE router R35 AS 6520 and I configured the MP-BGP between the routes.

PE -R38 to CE-R76----- PE-R35 to CE-R82----

configured static route and redistributed to BGP

I am not getting the BGP route (82.82.82.0) from PE-R38


R38#sh ip route vrf F-1

Routing Table: F-1
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.76.0/24 is directly connected, Ethernet0/0
L 10.10.76.2/32 is directly connected, Ethernet0/0
76.0.0.0/24 is subnetted, 1 subnets
S 76.76.76.0 [1/0] via 10.10.76.1
R38

interface Loopback0
ip address 38.38.38.38 255.255.255.255
!
interface Ethernet0/0
vrf forwarding F-1
ip address 10.10.76.2 255.255.255.0
duplex auto
!
interface Ethernet0/1
ip address 10.10.38.1 255.255.255.0
duplex auto
mpls ip
!
interface Ethernet0/2
ip address 10.10.33.1 255.255.255.0
duplex auto
mpls ip
!
interface Ethernet0/3
no ip address
shutdown
duplex auto
!
interface Ethernet1/0
no ip address
shutdown
duplex auto
!
interface Ethernet1/1
no ip address
shutdown
duplex auto
!
interface Ethernet1/2
no ip address
shutdown
duplex auto
!
interface Ethernet1/3
no ip address
shutdown
duplex auto
!
router ospf 1
router-id 37.37.37.37
network 10.10.33.0 0.0.0.255 area 0
network 10.10.38.0 0.0.0.255 area 0
network 37.37.37.0 0.0.0.0 area 0
network 38.38.38.38 0.0.0.0 area 0
!
router bgp 6510
bgp router-id 38.38.38.38
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 75.75.75.75 remote-as 6510
neighbor 75.75.75.75 update-source Loopback0
!
address-family vpnv4
neighbor 75.75.75.75 activate
neighbor 75.75.75.75 send-community extended
neighbor 75.75.75.75 next-hop-self
exit-address-family
!
address-family ipv4 vrf F-1
redistribute connected
redistribute static
exit-address-family
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route vrf F-1 76.76.76.0 255.255.255.0 10.10.76.1
!
ipv6 ioam timestamp
!
!
mpls ldp router-id Loopback0




R75

interface Loopback0
ip address 75.75.75.75 255.255.255.255
!
interface Ethernet0/0
ip address 10.10.32.2 255.255.255.0
duplex auto
mpls ip
!
interface Ethernet0/1
ip address 10.10.75.1 255.255.255.0
duplex auto
mpls ip
!
interface Ethernet0/2
ip address 10.75.75.1 255.255.255.0
duplex auto
mpls bgp forwarding
!
interface Ethernet0/3
no ip address
shutdown
duplex auto
!
router ospf 1
router-id 75.75.75.75
network 10.10.32.0 0.0.0.255 area 0
network 10.10.75.0 0.0.0.255 area 0
network 75.75.75.75 0.0.0.0 area 0
network 75.75.75.0 0.0.0.255 area 0
!
router bgp 6510
bgp router-id 75.75.75.75
bgp log-neighbor-changes
no bgp default ipv4-unicast
no bgp default route-target filter
neighbor 10.75.75.2 remote-as 6520
neighbor 38.38.38.38 remote-as 6510
neighbor 38.38.38.38 update-source Loopback0
!
address-family vpnv4
neighbor 10.75.75.2 activate
neighbor 10.75.75.2 send-community extended
neighbor 38.38.38.38 activate
neighbor 38.38.38.38 send-community extended
neighbor 38.38.38.38 next-hop-self
exit-address-family
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 ioam timestamp
!
!
mpls ldp router-id Loopback0



R37

interface Loopback0
ip address 37.37.37.37 255.255.255.255
!
interface Ethernet0/0
ip address 10.10.37.1 255.255.255.0
duplex auto
mpls ip
!
interface Ethernet0/1
ip address 10.10.78.1 255.255.255.0
duplex auto
mpls ip
!
interface Ethernet0/2
ip address 10.75.75.2 255.255.255.0
duplex auto
mpls bgp forwarding
!
interface Ethernet0/3
no ip address
shutdown
duplex auto
!
router ospf 1
router-id 37.37.37.37
network 10.10.37.0 0.0.0.255 area 0
network 10.10.78.0 0.0.0.255 area 0
network 37.37.37.37 0.0.0.0 area 0
!
router bgp 6520
bgp router-id 37.37.37.37
bgp log-neighbor-changes
no bgp default ipv4-unicast
no bgp default route-target filter
neighbor 10.75.75.1 remote-as 6510
neighbor 35.35.35.35 remote-as 6520
neighbor 35.35.35.35 update-source Loopback0
!
address-family vpnv4
neighbor 10.75.75.1 activate
neighbor 10.75.75.1 send-community extended
neighbor 35.35.35.35 activate
neighbor 35.35.35.35 send-community extended
neighbor 35.35.35.35 next-hop-self
exit-address-family
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 ioam timestamp
!
!
mpls ldp router-id Loopback0





 

R35

interface Loopback0
ip address 35.35.35.35 255.255.255.255
!
interface Ethernet0/0
ip address 10.10.34.2 255.255.255.0
duplex auto
mpls ip
!
interface Ethernet0/1
ip address 10.10.35.1 255.255.255.0
duplex auto
mpls ip
!
interface Ethernet0/2
vrf forwarding F-2
ip address 10.10.82.1 255.255.255.0
duplex auto
!
interface Ethernet0/3
no ip address
shutdown
duplex auto
!
interface Ethernet1/0
no ip address
shutdown
duplex auto
!
interface Ethernet1/1
no ip address
shutdown
duplex auto
!
interface Ethernet1/2
no ip address
shutdown
duplex auto
!
interface Ethernet1/3
no ip address
shutdown
duplex auto
!
router ospf 1
router-id 35.35.35.35
network 10.10.34.0 0.0.0.255 area 0
network 10.10.35.0 0.0.0.255 area 0
network 35.35.35.35 0.0.0.0 area 0
!
router bgp 6520
bgp router-id 35.35.35.35
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 37.37.37.37 remote-as 6520
neighbor 37.37.37.37 update-source Loopback0
!
address-family vpnv4
neighbor 37.37.37.37 activate
neighbor 37.37.37.37 send-community extended
neighbor 37.37.37.37 next-hop-self
exit-address-family
!
address-family ipv4 vrf F-2
redistribute connected
redistribute static
exit-address-family
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route vrf F-2 82.82.82.0 255.255.255.0 10.10.82.2
!
ipv6 ioam timestamp
!
!
mpls ldp router-id Loopback0
!
control-plane

 

1 Accepted Solution

Accepted Solutions

Hi @R Manjunatha ,

The issue was due to the missing

address-family vrf F-1

under BGP as per config you posted before.

R35(config-vrf)#do sh run vrf
Building configuration...

Current configuration : 284 bytes
vrf definition F-2
rd 100:1
route-target export 100:1
route-target import 100:1
!
address-family ipv4
exit-address-family
!
!
interface Ethernet0/2
vrf forwarding F-2
ip address 10.10.82.1 255.255.255.0
duplex auto
!
ip route vrf F-2 82.82.82.0 255.255.255.0 10.10.82.2
end

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

18 Replies 18

Harold Ritter
Cisco Employee
Cisco Employee

Hi @R Manjunatha ,

It probably has to do with the import/export policy.

Can you share the

show runn vrf output from R38 and R35.

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

in R38

router ospf 1
router-id 37.37.37.37 <<- OSPF dual router-ID 
network 10.10.33.0 0.0.0.255 area 0
network 10.10.38.0 0.0.0.255 area 0
network 37.37.37.0 0.0.0.0 area 0 <<-???
network 38.38.38.38 0.0.0.0 area 0

also as @Harold Ritter  mention the VRF route-target import/export must config 

Hi @MHM Cisco World ,

The fact that R37 and R38 share the same router-id would be an issue if they were both part of the same AS, but they are not so it shouldn't matter.

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

 it's a typo error, Anyway, I change the router -ID

vrf details for R38 and R35.

R35(config-vrf)#do sh run vrf
Building configuration...

Current configuration : 284 bytes
vrf definition F-2
rd 100:1
route-target export 100:1
route-target import 100:1
!
address-family ipv4
exit-address-family
!
!
interface Ethernet0/2
vrf forwarding F-2
ip address 10.10.82.1 255.255.255.0
duplex auto
!
ip route vrf F-2 82.82.82.0 255.255.255.0 10.10.82.2
end

R38#sh run vrf
Building configuration...

Current configuration : 284 bytes
vrf definition F-1
rd 100:1
route-target export 100:1
route-target import 100:1
!
address-family ipv4
exit-address-family
!
!
interface Ethernet0/0
vrf forwarding F-1
ip address 10.10.76.2 255.255.255.0
duplex auto
!
ip route vrf F-1 76.76.76.0 255.255.255.0 10.10.76.1
end

R38#

Hi @R Manjunatha ,

The import/export looks good.

Can you provide the following commands output from R75 and R37:

show bgp vpnv4 uni all summ

show bgp vpnv4 uni all

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

When you change router-id 

You need to clear ip ospf process to take effect 

Yes. Default it will ask after changing router-ID and I have done it.

Hi,

Please find the output from R75 and R37 

R75#show bgp vpnv4 uni all summ
BGP router identifier 75.75.75.75, local AS number 6510
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.75.75.2 4 6520 7 7 1 0 0 00:03:54 0
38.38.38.38 4 6510 6 7 1 0 0 00:03:38 0

R75#show bgp vpnv4 unicast all

R37#show bgp vpnv4 uni all summ
BGP router identifier 37.37.37.37, local AS number 6520
BGP table version is 1, main routing table version 1

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.75.75.1 4 6510 8 8 1 0 0 00:05:19 0
35.35.35.35 4 6520 8 8 1 0 0 00:04:03 0

R37#show bgp vpnv4 uni all
R37#

Hi

I configured the

no BGP default ipv4-unicast 

on both the routers is there any issue with that?

Hi @R Manjunatha ,

This command just instructs BGP not to activate

address-family ipv4 uni

by default, which is what you want if you are strictly configuring VPNv4.

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Hi @R Manjunatha ,

R37 and R75 are not receiving any routes from R38 and R35.

Can you please enter the following configuration:

R38:

router bgp 6510

address-family ipv4 vrf F-1

redistribute connected

redistribute static

exit-address-family

R35:

router bgp 6520

address-family ipv4 vrf F-2

redistribute connected

redistribute static

exit-address-family

An then "show run vrf" again from both routers.

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Hi,

please find the

show run vrf 

for both the routers 

R38#SH RUN VRF
Building configuration...

Current configuration : 402 bytes
vrf definition F-1
rd 100:1
route-target export 100:1
route-target import 100:1
!
address-family ipv4
exit-address-family
!
!
interface Ethernet0/0
vrf forwarding F-1
ip address 10.10.76.2 255.255.255.0
duplex auto
!
router bgp 6510
!
address-family ipv4 vrf F-1
redistribute connected
redistribute static
exit-address-family
!
ip route vrf F-1 76.76.76.0 255.255.255.0 10.10.76.1
end

R35(config)#do sh run vrf
Building configuration...

Current configuration : 402 bytes
vrf definition F-2
rd 100:1
route-target export 100:1
route-target import 100:1
!
address-family ipv4
exit-address-family
!
!
interface Ethernet0/2
vrf forwarding F-2
ip address 10.10.82.1 255.255.255.0
duplex auto
!
router bgp 6520
!
address-family ipv4 vrf F-2
redistribute connected
redistribute static
exit-address-family
!
ip route vrf F-2 82.82.82.0 255.255.255.0 10.10.82.2
end

 

Hi @R Manjunatha ,

It should work now. Can you please check.

When you posted the

sh runn vrf

before, you were missing the

address-family ipv4 vrf F-1

and

address-family ipv4 vrf F-2

, which would explain why the VRF routes were not propagated.
Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

I run lab and I success get connect prefix 

no bgp default route-target filter <<- 

remove this command and add it again 
then clear

 ip bgp 6510 / 6520 
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card