cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
975
Views
0
Helpful
4
Replies

Importing routes from Global Routing table to VRF and vice versa | Need Urgent help

abhijit.pal1
Level 1
Level 1

Dear All Networkers,

I need urgent help on this. We are going to have a topology soon similar to above for production use. Hence i just tried to simulate the scenario on GNS3.

--------------------------------------------------------------------------------------------------------------------------------------------

My Goal is to have communication as below.

============

For Data Traffic

============

PE_Branch router: int Loop-back 1 ip-address 1.1.1.1 <=> Client_Vlan_40 ip-address 40.40.40.10

(communication between 1.1.1.1 and 40.40.40.10)

=============

For Voice Traffic

=============

PE_Branch router: int Loop-back 2 ip-address 2.2.2.2 <=> Client_Vlan_40 ip-address 50.50.50.10

(communication between 2.2.2.2 and 50.50.50.10)

-----------------------------------------------------------------------------------------------------------------------------------------------

As per my understanding

1. The PE1/2 routers should advertise 40.40.40.0/24 and 50.50.50.0/24 routes to PE_Branch.

2. PE_Branch router should advertise 1.1.1.0/24 and 2.2.2.0/24 routes to PE1/2.

I tried to accomplish this through Static route and importing GRT subnet using BGP but couldn't make it work. I see loads of discussions on internet but still this stuff is not working.

Can you please share how this goal can be achieved in both ways? I meant using static route and using BGP?

Please note while trying with static route, the router didn't accept egress interface as default-gateway giving me error saying i must use a next-hop ip unless it's not P2P interface.

Please find the device configs below. I gave only PE1 and PE_Branch's config as PE2 will just have similar config as PE1 and Client_Vlan routers are just acting as clients.

Thanks i advance!!

PE1
=====
ip vrf Data
rd 100:1
route-target export 100:1
route-target import 100:1
!
ip vrf Voice
rd 200:1
route-target export 200:1
route-target import 200:1
!
!
interface GigabitEthernet0/0
no ip address
duplex full
speed 1000
media-type gbic
negotiation auto
!
interface GigabitEthernet0/0.100
encapsulation dot1Q 100
ip vrf forwarding Data
ip address 100.100.100.1 255.255.255.0
!
interface GigabitEthernet0/0.200
encapsulation dot1Q 200
ip vrf forwarding Voice
ip address 200.200.200.1 255.255.255.0
!
interface GigabitEthernet1/0
ip address 10.10.10.1 255.255.255.252
negotiation auto
!
interface GigabitEthernet2/0
ip address 40.40.40.1 255.255.255.0
negotiation auto
!
!
router eigrp 1
network 10.10.10.1 0.0.0.0
network 40.40.40.1 0.0.0.0
auto-summary
!

PE_Branch
==========
!
ip vrf Data
rd 100:1
route-target export 100:1
route-target import 100:1
!
ip vrf Voice
rd 200:1
route-target export 200:1
route-target import 200:1
!
!
interface Loopback0
no ip address
!
interface Loopback1
ip address 1.1.1.1 255.255.255.0
!
interface Loopback2
ip address 2.2.2.2 255.255.255.0
!

interface GigabitEthernet0/0
no ip address
duplex full
speed 1000
media-type gbic
negotiation auto
!
interface GigabitEthernet0/0.100
encapsulation dot1Q 100
ip vrf forwarding Data
ip address 100.100.100.3 255.255.255.0
!
interface GigabitEthernet0/0.200
encapsulation dot1Q 200
ip vrf forwarding Voice
ip address 200.200.200.3 255.255.255.0

4 Replies 4

Hello,

What is the reason you want to use global routing table? With the topology you have, you can implement end to end VRF routing and communication.

Masoud

Hi Masoud,

Loop-back interface 1 at branch is assumed to be a client PC in Global routing table of the Branch router. This interface should be able to access Client_Vlan_40 (which is also in Global routing table of PE1 router) just to imitate a client server communication.

Similarly Loop-back interface 2 at branch is assumed to be a client IP PHONE in Global routing table of the Branch router. This interface should be able to access Client_Vlan_50 (which is also in Global routing table of PE1 router) just to imitate a ip phone to CUCM communication.

In the MPLS cloud we want, the provider prioritize the VOICE traffic over Data.

This is the scenario that we are trying to achieve in our environment. I want to use importing routes from Global routing table to VRF and vice versa for the communication to happen.

Please advice.

Thanks in advance.

Hello,

You can not import route from Global routing table to VRF or vice versa. You can direct your traffic from VRF to Global routing table and vice versa.

Masoud

I'm still not following what you are trying to do.

I agree with Masoud, why are the loopbacks in the global routing table ?

You can just configure the VRF per loopback on the branch router so you don't use the global routing table and that would meet your requirements.

Unless you haven't told us all of you requirements ie. is there a need for the data and voice vlans to communicate between each other ?

Jon

Review Cisco Networking for a $25 gift card