Posted on August 25, 2021 5:07 am
 |  Asked by Cao
 |  158 views
0
0
Print Friendly, PDF & Email

vrf mgmt:

ma1:2.2.2.1/24

 

global vrf:

interface eth1 :100.100.100.1/24

 

Now I want to set a default route in vrf mgmt to global

Does this one work?

1: nexthop address in global vrf not mgmt vrf

2: eth1 in global vrf not mgmt vrf

ip route vrf mgmt 0/0 100.100.100.1

or

ip route vrf mgmt 0/0 eth1

0
Posted by Cao
Answered on August 25, 2021 8:24 am

global vrf means default vrf

0
Posted by Naveen Chandra
Answered on August 25, 2021 1:29 pm

Hi Cao,

Thanks for writing in this forum.

Yes, you can configure static inter-VRF routes in default and non-default VRFs.

This feature works only with the routing system in the multi-agent mode.

To configure the static-Inter VRF routes in an ingress (source) VRF to forward IP traffic to a different egress (target) VRF can be done as below. In my example, I have set a default route in vrf MGMT and the egress next-hop is in vrf default.

 

(config)#ip route vrf MGMT 0.0.0.0/0 egress-vrf default 10.81.116.1

(config)#sh ip route vrf MGMT

VRF: MGMT
Gateway of last resort:

S 0.0.0.0/0 [1/0] via 10.81.116.1, Management1/1 (egress VRF default)

 

Please also find below the document for multiple modes and steps to configure the static-inter-vrf-route.

https://www.arista.com/en/um-eos/eos-static-inter-vrf-route

0
Posted by Cao
Answered on August 25, 2021 10:36 pm

Hi Naveen

Thank you for your reply

actually in my case ,the setup is :

vrf mgmt and default has interfaces that share same subnet

vrf mgmt:

ma1:2.2.2.1/24

 

default vrf:

interface eth1 :2.2.2.10/24

ip route vrf MGMT 0.0.0.0/0  2.2.2.10

It seems it can work in this way too

I am wondering what the logic is behind this

0
Posted by Naveen Chandra
Answered on August 27, 2021 3:20 am

Hi Cao,

That is true, two different VRFs can own the same IP subnet. As per the initial thread, your requirement is to achive an inter VRF routing using static routes.

And now, with the static route you are configuring, "ip route vrf MGMT 0.0.0.0/0  2.2.2.10", the traffic ingressing in VRF MGMT will try to go out from the same VRF MGMT, not from the VRF default.

So you have to define the egress VRF in static route as suggested in the document below:

https://www.arista.com/en/um-eos/eos-static-inter-vrf-route

 

 

 

 

Post your Answer

You must be logged in to post an answer.