Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

CSR1000V VRF Route Leaking vs GNS

Hi folks,

working on 2 lab envronments. I have successfully configured VRF route leaking on GNS3, however can't get it working on CSR1000v with same config (only IP's and name's of VRF etc is different). Is there something on the CSR1000v that I have to do that's different from GNS? Is there a reason why the route in GNS is in both the OSPF database and the routing table yet in ESXi it's only in the database?

 

OSPF between neighbors

BGP to do route leaking

GNS - leaking route 220.0.0.0

GNS - Neighbor running OSPF has 220.0.0.0 in the database and the routing table for VRF 100

ESXi - leaking route 45.0.0.0

ESXi - Neighbor running OSPF has 45.0.0.0 in the database and is NOT in the routing table for VRF cavia

 

GNS - 3640's with c3640-js-mz.124-17

ESXi - CSR1000V with Cisco IOS XE Software, Version 03.12.00.S

 

On both labs using BGP to leak routes between VRF's.

GNS LAB

VRF's --------------------------------------------------

ip vrf 100
 rd 100:100
 route-target export 1:100
 route-target import 1:300
!
ip vrf 200
 rd 200:200
 route-target export 1:200
 route-target import 1:300
!
ip vrf 300
 rd 300:300
 route-target export 1:300
 route-target import 1:100
 route-target import 1:200

OSPF --------------------------------------------------------------

 

router ospf 100 vrf 100
 router-id 4.4.4.4
 log-adjacency-changes
 redistribute bgp 10 subnets
 network 100.0.0.0 0.0.0.3 area 0
 network 0.0.0.0 255.255.255.255 area 0
!
router ospf 200 vrf 200
 router-id 44.44.44.44
 log-adjacency-changes
 redistribute bgp 10 subnets
 network 200.0.0.0 0.0.0.3 area 0
 network 0.0.0.0 255.255.255.255 area 0

BGP -------------------------------------------------------------
!
router bgp 10
 no synchronization
 bgp log-neighbor-changes
 no auto-summary
 !
 address-family ipv4 vrf 300
  no synchronization
  network 220.0.0.0 mask 255.255.255.252
 exit-address-family
 !
 address-family ipv4 vrf 200
  redistribute ospf 200 vrf 200
  no synchronization
 exit-address-family
 !
 address-family ipv4 vrf 100
  redistribute ospf 100 vrf 100
  no synchronization
 exit-address-family

 

R4#sh ip bgp vpnv4 all
BGP table version is 17, local router ID is 44.44.44.44
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 100:100 (default for vrf 100)
*> 10.0.0.0/24      100.0.0.1                2         32768 ?
*> 100.0.0.0/30     0.0.0.0                  0         32768 ?
*> 220.0.0.0/30     0.0.0.0                  0         32768 i
Route Distinguisher: 200:200 (default for vrf 200)
*> 20.0.0.0/24      200.0.0.1                2         32768 ?
*> 200.0.0.0/30     0.0.0.0                  0         32768 ?
*> 220.0.0.0/30     0.0.0.0                  0         32768 i
Route Distinguisher: 300:300 (default for vrf 300)
*> 10.0.0.0/24      100.0.0.1                2         32768 ?
*> 20.0.0.0/24      200.0.0.1                2         32768 ?
*> 100.0.0.0/30     0.0.0.0                  0         32768 ?
*> 200.0.0.0/30     0.0.0.0                  0         32768 ?
*> 220.0.0.0/30     0.0.0.0                  0         32768 i

-----------------------on neighbor R3 220.0.0.0 (in vrf 300) is in the routing table for vrf 100 as designed----------------------

R3#sh ip route vrf 100

     220.0.0.0/30 is subnetted, 1 subnets
O E2    220.0.0.0 [110/1] via 100.0.0.2, 00:29:48, FastEthernet1/0.10
     100.0.0.0/30 is subnetted, 1 subnets
C       100.0.0.0 is directly connected, FastEthernet1/0.10
     10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, FastEthernet0/0

----------------------OSPF Database on neighbor R3-------------------------------------------

R3#sh ip ospf data

            OSPF Router with ID (33.33.33.33) (Process ID 200)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
33.33.33.33     33.33.33.33     521         0x80000006 0x005A0E 2
44.44.44.44     44.44.44.44     541         0x80000006 0x001C18 1

                Net Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
200.0.0.2       44.44.44.44     540         0x80000005 0x006820

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
220.0.0.0       44.44.44.44     540         0x80000005 0x009BAE 3489660938

            OSPF Router with ID (3.3.3.3) (Process ID 100)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
3.3.3.3         3.3.3.3         722         0x80000006 0x008C9F 2
4.4.4.4         4.4.4.4         581         0x80000006 0x00F845 1

                Net Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
100.0.0.2       4.4.4.4         581         0x80000005 0x00FEA7

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
220.0.0.0       4.4.4.4         581         0x80000005 0x00509A 3489660938

 

ESXi LAB

VRF's----------------------------------------------------------

vrf definition cavia
 rd 1:100
 !
 address-family ipv4
  route-target export 1000:100
  route-target import 1000:300
 exit-address-family
!
vrf definition microsoft
 rd 1:200
 !
 address-family ipv4
  route-target export 1000:200
  route-target import 1000:300
 exit-address-family
!
vrf definition shared
 rd 1:300
 !
 address-family ipv4
  route-target export 1000:300
  route-target import 1000:100
  route-target import 1000:200
 exit-address-family

OSPF ----------------------------------------------------------------

router ospf 100 vrf cavia
 redistribute bgp 50 subnets
 network 172.100.200.0 0.0.0.3 area 0
 network 0.0.0.0 255.255.255.255 area 0
!
router ospf 200 vrf microsoft
 redistribute bgp 50 subnets
 network 172.200.200.0 0.0.0.3 area 0
 network 0.0.0.0 255.255.255.255 area 0
!

BGP -----------------------------------------------------------------

router bgp 50
 bgp log-neighbor-changes
 !
 address-family ipv4 vrf cavia
  redistribute ospf 100
 exit-address-family
 !
 address-family ipv4 vrf microsoft
  redistribute ospf 200
 exit-address-family
 !
 address-family ipv4 vrf shared
  network 45.0.0.0 mask 255.255.255.252
 exit-address-family

---------------45.0.0.0 is in the correct BGP VRF's----------------

R8#sh ip bgp vpnv4 all
BGP table version is 20, local router ID is 8.8.8.8
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
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: 1:100 (default for vrf cavia)
 *>  45.0.0.0/30      0.0.0.0                  0         32768 i
 *>  80.100.0.0/30    172.100.200.1            2         32768 ?
 *>  172.100.100.0/30 172.100.200.1            2         32768 ?
 *>  172.100.100.4/30 172.100.200.1            2         32768 ?
 *>  172.100.200.0/30 0.0.0.0                  0         32768 ?
Route Distinguisher: 1:200 (default for vrf microsoft)
 *>  45.0.0.0/30      0.0.0.0                  0         32768 i
 *>  80.200.0.0/30    172.200.200.1            2         32768 ?
 *>  172.200.100.0/30 172.200.200.1            2         32768 ?
 *>  172.200.100.4/30 172.200.200.1            2         32768 ?
 *>  172.200.200.0/30 0.0.0.0                  0         32768 ?
Route Distinguisher: 1:300 (default for vrf shared)
 *>  45.0.0.0/30      0.0.0.0                  0         32768 i
 *>  80.100.0.0/30    172.100.200.1            2         32768 ?
 *>  80.200.0.0/30    172.200.200.1            2         32768 ?
 *>  172.100.100.0/30 172.100.200.1            2         32768 ?
 *>  172.100.100.4/30 172.100.200.1            2         32768 ?
 *>  172.100.200.0/30 0.0.0.0                  0         32768 ?
 *>  172.200.100.0/30 172.200.200.1            2         32768 ?
     Network          Next Hop            Metric LocPrf Weight Path
 *>  172.200.100.4/30 172.200.200.1            2         32768 ?
 *>  172.200.200.0/30 0.0.0.0                  0         32768 ?

-----------------------on neighbor R1 45.0.0.0 (in vrf shared) is not in the routing table for vrf cavia----------------------

R1#sh ip route vrf cavia

Gateway of last resort is 172.100.200.2 to network 0.0.0.0

S*    0.0.0.0/0 [1/0] via 172.100.200.2
      80.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C        80.100.0.0/30 is directly connected, GigabitEthernet1.1
L        80.100.0.1/32 is directly connected, GigabitEthernet1.1
B        80.100.0.4/30 [20/0] via 80.100.0.2, 03:52:22
      172.100.0.0/16 is variably subnetted, 7 subnets, 2 masks
C        172.100.100.0/30 is directly connected, GigabitEthernet3.1
L        172.100.100.2/32 is directly connected, GigabitEthernet3.1
C        172.100.100.4/30 is directly connected, GigabitEthernet2.1
L        172.100.100.6/32 is directly connected, GigabitEthernet2.1
B        172.100.101.0/30 [20/0] via 80.100.0.2, 03:52:22
C        172.100.200.0/30 is directly connected, GigabitEthernet4.1
L        172.100.200.1/32 is directly connected, GigabitEthernet4.1

----------------------OSPF Database on neighbor R1 -------------------------------------------

 

R1#
R1#sh ip ospf data

            OSPF Router with ID (172.100.200.1) (Process ID 100)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
172.100.200.1   172.100.200.1   668         0x8000000A 0x009F4E 4
172.100.200.2   172.100.200.2   681         0x80000007 0x005F5C 1

                Net Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
172.100.200.1   172.100.200.1   668         0x80000002 0x0012BD

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
45.0.0.0        172.100.200.2   441         0x80000002 0x0047E1 3489660978
80.100.0.4      172.100.200.1   1679        0x80000008 0x00A883 3489725929
172.100.101.0   172.100.200.1   1679        0x80000008 0x00C4A9 3489725929

  • WAN Routing and Switching
1 REPLY
New Member

BUMP

BUMP

74
Views
0
Helpful
1
Replies
This widget could not be displayed.