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.

Silver

Inter-VPN routing with export map for host routes

Hi,

I am trying to export host routes from a connected network from one VRF to multiple other VRFs. This is to allow the leaking specific host routes for management purposes. However, I suspect that the /32 host route(s) actually need to be present in the management VRF so the RTs are added accordingly, rather than just specified in the match clause of the MGMT VRF export map.

Ideally here, I only want to export 10.111.111.254/32 from the connected network 10.111.111.0/24 in the MGMT VRF. The only way around this I can see it to move 10.111.111.0/24 behind another device, and add specific host route(s) within the MGMT VRF for the 10.111.111.X/32 host routes (which are redistributed into the MGMT VRF), using the additional device as the next-hop.

ip vrf MGMT

rd 1:1

export map MGMT-EXPORT-MAP

route-target export 1:1

route-target import 1:1

route-target import 1:1001

!

ip vrf CUST-B

rd 1:2

export map CUSTOMERS-EXPORT-MAP

route-target export 1:2

route-target import 1:2

route-target import 1:1000

!

interface FastEthernet0/0.100

encapsulation dot1Q 100

ip vrf forwarding MGMT

ip address 10.111.111.1 255.255.255.0

!

interface FastEthernet0/0.200

encapsulation dot1Q 101

ip vrf forwarding CUST-B

ip address 10.96.2.1 255.255.254.0

!

router bgp 65000

bgp router-id 1.1.1.1

no bgp default ipv4-unicast

bgp log-neighbor-changes

!

address-family ipv4 vrf CUST-B

  redistribute connected

  no synchronization

exit-address-family

!

address-family ipv4 vrf MGMT

  redistribute connected

  no synchronization

exit-address-family

!

ip prefix-list CUSTOMERS seq 5 permit 10.96.2.0/23

!

ip prefix-list ONPREMISE seq 5 permit 10.111.111.0/24

ip prefix-list ONPREMISE seq 10 permit 10.111.111.254/32

!

route-map CUSTOMERS-EXPORT-MAP permit 10

match ip address prefix-list CUSTOMERS

set extcommunity rt  1:1001 additive

!

route-map MGMT-EXPORT-MAP permit 10

match ip address prefix-list ONPREMISE

set extcommunity rt  1:1000 additive

Cheers,

Matt

1 REPLY

Inter-VPN routing with export map for host routes

Hi Matt

Yes the X/32 routes needs to be present in the VRF Routing-Table and if they are to be learnt statically then the MP-iBGP config for that particular VRF address-family has to redistribute static routes as well.

Regards

Varma

571
Views
0
Helpful
1
Replies