VRF Route Leaked from Global VRF not getting advertised to VPNv4 Peer

Guys,

Here is the setup... Can anyone please tell me why VRF Route Leaked from Global VRF are not getting advertised to VPNv4 Peer

 

=Network=

<pre>

R1-R2-R3

! R2-R3 only runs IBGP VPNv4 unicast (and not IPv4 unicast) over lo0

! R1-R2 only runs BGP IPv4 unicast (and not VPNv4 unicast) over lo0

! R1-R2-R3 are running OSPF advertising lo0

! Goal: By VRF Route Leaking at R2, R1's lo1 should ping R3's lo1

 

! All routers run

R2#show ver | i IOS

Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.2(33)SRE7, RELEASE SOFTWARE (fc1)

R2#

 

! R1

conf t

int fa1/0

 no ip ospf shutdown

 no sh

 ip add 10.0.12.1 255.255.255.0

int fa1/1

 sh

 no ip add

int lo0

 no sh

 ip add 1.0.0.1 255.255.255.255

int lo1

 no sh

 ip add 1.1.1.1 255.255.255.255

 ip ospf shutdown

router ospf 1

 network 0.0.0.0 255.255.255.255 area 0

router bgp 1

 no bgp default ipv4-unicast

 neighbor 2.0.0.1 remote-as 1

 neighbor 2.0.0.1 update-source lo0

 address-family ipv4 unicast

  neighbor 2.0.0.1 activate

  neighbor 2.0.0.1 next-hop-self

  network 1.1.1.1 mask 255.255.255.255

end

 

! R2

conf t

ip vrf FOO

 rd 1:1

 route-target both 1:1

int fa1/0

 no sh

 ip add 10.0.12.2 255.255.255.0

int fa1/1

 no sh

 ip add 10.0.23.2 255.255.255.0

int lo0

 no sh

 ip add 2.0.0.1 255.255.255.255

int lo1

 no sh

 ip vrf forwarding FOO

 ip add 2.2.2.2 255.255.255.255

 ip ospf shutdown

mpls ldp router-id lo0

router ospf 1

 network 0.0.0.0 255.255.255.255 area 0

 mpls ldp auto

router bgp 1

 no bgp default ipv4-unicast

 neighbor 1.0.0.1 remote-as 1

 neighbor 1.0.0.1 update-source lo0

 neighbor 3.0.0.1 remote-as 1

 neighbor 3.0.0.1 update-source lo0

 address-family ipv4 unicast

  neighbor 1.0.0.1 activate

 address-family vpnv4 unicast

  neighbor 3.0.0.1 activate

  neighbor 3.0.0.1 next-hop-self

 address-family ipv4 vrf FOO

  network 2.2.2.2 mask 255.255.255.255

end

 

! R3

conf t

ip vrf FOO

 rd 1:1

 route-target both 1:1

int fa1/0

 no sh

 ip add 10.0.13.3 255.255.255.0

int fa1/1

 no sh

 ip add 10.0.23.3 255.255.255.0

int lo0

 no sh

 ip add 3.0.0.1 255.255.255.255

int lo1

 no sh

 ip vrf forwarding FOO

 ip add 3.3.3.3 255.255.255.255

 ip ospf shut

mpls ldp router-id lo0

router ospf 1

 network 0.0.0.0 255.255.255.255 area 0

 mpls ldp auto

router bgp 1

 no bgp default ipv4-unicast

 neighbor 2.0.0.1 remote-as 1

 neighbor 2.0.0.1 update-source lo0

 address-family vpnv4 unicast

  neighbor 2.0.0.1 activate

 address-family ipv4 vrf FOO

  network 3.3.3.3 mask 255.255.255.255

end

 

R2#show ip bgp summary | b Nei

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd

1.0.0.1         4            1      15      16        4    0    0 00:10:00        1

R2#show bgp vpnv4 unicast all summary | b Nei

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd

3.0.0.1         4            1      10      10       10    0    0 00:04:42        1

R2#

</pre>

 

 

=Goals=

==Goal1==

* Route leak all Global VRF BGP routes into VRF FOO at R2 and see if R1 receives it. Why doesn't R1 receive the routes?????????

 

<pre>

!!!!!!!!!!!! Before

R2#show ip bgp  | i 1.1.1

*>i1.1.1.1/32       1.0.0.1                  0    100      0 i

R2#

 

R2#show bgp vpnv4 unicast all | i 2.2.2|3.3.3

*> 2.2.2.2/32       0.0.0.0                  0         32768 i

*>i3.3.3.3/32       3.0.0.1                  0    100      0 i

R2#

 

R2#ping vrf FOO 3.3.3.3 sour lo1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:

Packet sent with a source address of 2.2.2.2

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 16/153/204 ms

R2#

 

 

!!!!!!!!!!! Config

! R2

conf t

route-map PERMIT_ALL permit 10

 set extcommunity rt  1:1 additive

ip vrf FOO

 import ipv4 unicast map PERMIT_ALL

 export map PERMIT_ALL

router bgp 1

 address-family vpnv4 unicast

  neighbor 3.0.0.1 route-reflector

end

 

 

!!!!!!!!! Verify

R2#show bgp vpnv4 unicast all | b Network

   Network          Next Hop            Metric LocPrf Weight Path

Route Distinguisher: 1:1 (default for vrf FOO)

Import Map: PERMIT_ALL, Address-Family: IPv4 Unicast, Pfx Count/Limit: 1/1000

*>i1.1.1.1/32       1.0.0.1                  0    100      0 i

*> 2.2.2.2/32       0.0.0.0                  0         32768 i

*>i3.3.3.3/32       3.0.0.1                  0    100      0 i

R2#

 

R3#show bgp vpnv4 unicast all | b Network

   Network          Next Hop            Metric LocPrf Weight Path

Route Distinguisher: 1:1 (default for vrf FOO)

*>i2.2.2.2/32       2.0.0.1                  0    100      0 i

*> 3.3.3.3/32       0.0.0.0                  0         32768 i

R3#

 

R2#show bgp vpnv4 unicast all neighbors 3.0.0.1 advertised-routes

BGP table version is 5, local router ID is 2.0.0.1

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              r RIB-failure, S Stale, m multipath, b backup-path, x best-external

Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network          Next Hop            Metric LocPrf Weight Path

Route Distinguisher: 1:1 (default for vrf FOO)

Import Map: PERMIT_ALL, Address-Family: IPv4 Unicast, Pfx Count/Limit: 1/1000

*> 2.2.2.2/32       0.0.0.0                  0         32768 i

 

Total number of prefixes 1

R2#

 

! Even after advertising NH, the 1.1.1.1/32 VPNv4 route is still not sent to R3

! R2

conf t

router bgp 1

 address-family ipv4 unicast

  network 1.0.0.1 mask 255.255.255.255

  network 10.0.12.0 mask 255.255.255.0

end

 

R2#show bgp vpnv4 unicast all | b Network

   Network          Next Hop            Metric LocPrf Weight Path

Route Distinguisher: 1:1 (default for vrf FOO)

Import Map: PERMIT_ALL, Address-Family: IPv4 Unicast, Pfx Count/Limit: 3/1000

*> 1.0.0.1/32       10.0.12.1                2         32768 i

*>i1.1.1.1/32       1.0.0.1                  0    100      0 i

*> 2.2.2.2/32       0.0.0.0                  0         32768 i

*>i3.3.3.3/32       3.0.0.1                  0    100      0 i

*> 10.0.12.0/24     0.0.0.0                  0         32768 i

R2#

R2#show bgp vpnv4 unicast all neighbors 3.0.0.1 advertised-routes

BGP table version is 10, local router ID is 2.0.0.1

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              r RIB-failure, S Stale, m multipath, b backup-path, x best-external

Origin codes: i - IGP, e - EGP, ? - incomplete

 

   Network          Next Hop            Metric LocPrf Weight Path

Route Distinguisher: 1:1 (default for vrf FOO)

Import Map: PERMIT_ALL, Address-Family: IPv4 Unicast, Pfx Count/Limit: 3/1000

*> 2.2.2.2/32       0.0.0.0                  0         32768 i

 

Total number of prefixes 1

R2#

</pre>

 

Sign In or Register to comment.