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

VRF-Lite - Redistributing from one EIGRP AS to another

Set is as follows: R1 has dedicated links to R2 and R3. R2 is in VRF net1 adn R3 is in VRF net2. I would like R1 to be a hub for R2 and R3 which are spokes. I would like to do this with EIGRP.

I have the following configuration on R1:

ip vrf net1

rd 100:1

route-target export 100:1

route-target import 100:1

!

ip vrf net2

rd 200:1

route-target export 200:1

route-target import 200:1

!

router eigrp 1

auto-summary

!

address-family ipv4 vrf net2

network 192.168.102.0

no auto-summary

autonomous-system 200

exit-address-family

!

address-family ipv4 vrf net1

network 192.168.100.0

network 192.168.101.0

no auto-summary

autonomous-system 100

exit-address-family

How could I redistribute routes from net1 VRF into net2 VRF? If under the net2 vrf address-family and type the command "redistribute eigrp 100", I get the following message: %VRF specified does not match AS.

Any good reading on how to really understand EIGRP with VRFs?

Thx!

James

3 REPLIES
Silver

Re: VRF-Lite - Redistributing from one EIGRP AS to another

You cannot use the redistribute command in this manner to import routes into the vrf routing table. This I understand is by design.

For you to import routes from vrf into another within the same PE, you will be required to configure BGP and specify the right route-targets.

Your above config will look this

ip vrf net1

rd 100:1

route-target export 100:1

route-target import 100:1

route-target import 200:1

!

ip vrf net2

rd 200:1

route-target export 200:1

route-target import 100:1

route-target import 200:1

!

router eigrp 1

auto-summary

!

address-family ipv4 vrf net2

network 192.168.102.0

no auto-summary

autonomous-system 200

exit-address-family

!

address-family ipv4 vrf net1

network 192.168.100.0

network 192.168.101.0

no auto-summary

autonomous-system 100

exit-address-family

!

router bgp 1

address-family ipv4 vrf net2

redistrbute eigrp 200

!

address-family ipv4 vrf net1

redistribute eigrp 100

A previous thread could shed more light also.

http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Service%20Providers&topic=MPLS&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.1ddafa9f

Re: VRF-Lite - Redistributing from one EIGRP AS to another

Hi,

as Olorunloba points out you could use BGP to transport the routes between the VRFs. There is no possibility afaik to start two EIGRP processes in one VRF, so you will need BGP to do the trick. Just a small correction to his post as two "redistribute BGP" commands are missing:

ip vrf net1

rd 100:1

route-target export 100:1

route-target import 100:1

route-target import 200:1

!

ip vrf net2

rd 200:1

route-target export 200:1

route-target import 100:1

route-target import 200:1

!

router eigrp 1

!

address-family ipv4 vrf net2

network 192.168.102.0

redistribute bgp 65000

no auto-summary

autonomous-system 200

exit-address-family

!

address-family ipv4 vrf net1

network 192.168.100.0

network 192.168.101.0

redistribute bgp 65000

no auto-summary

autonomous-system 100

exit-address-family

!

router bgp 65000

address-family ipv4 vrf net2

redistrbute eigrp 200

no auto-summary

!

address-family ipv4 vrf net1

redistribute eigrp 100

no auto-summary

Depending on your IOS you might have to add a metric during redistribution of BGP into EIGRP (redistribute bgp 65000 metric ...). Be aware that you will get external routes and might have routing loop issues when performing redistribution at two "PEs" for redundancy reasons.

Hope this helps! Please rate all posts.

Regards, Martin

Silver

Re: VRF-Lite - Redistributing from one EIGRP AS to another

Thanks Martin for the correction. Guess I was feeling sleepy.

1697
Views
0
Helpful
3
Replies
CreatePlease to create content