cancel
Showing results for 
Search instead for 
Did you mean: 

Add route to VRF

Add route to VRF

Jonhs
New Contributor

Hi Experts

I'm quite new in this.

I ned to add a static to a vrf in our VSP8284XSQ Switch.

When a do a : sh ip route vrf MYVRF     i got this

DST           MASK          NEXT           VRF/ISID COST FACE PROT AGE TYPE PRF
172.22.0.0 255.255.0.0 172.16.1.1       MYVRF       1          5         STAT  0       IB       5
172.23.0.0 255.255.0.0 172.16.1.254 MYVRF       1          5         STAT   0       IB       5
172.25.0.0 255.255.0.0 172.16.1.1      MYVRF        1          5         STAT 0        IB        4

I just need to add a route here.

Any help available?

 

Regards

 

4 REPLIES 4

jeronimo
Contributor III

Is there a problem with the documentation? I'm not sure ... this seems pretty basic. What is the actual problem?

And why am I getting mails all day long from Extreme Community, it's as if I was suddenly subscribed to all forums...

Jonhs
New Contributor

Hi

Thanks for your reply! I just need to add a route in the VRF. In the documentation i found  this

-> ip route (for a VRF)
Configure a default route for a VRF. To assign a static route to specify a gateway address route for the management interface,
configure the static route in the MgmtRouter VRF context. You can specify up to four static routes for the management interface.

At this point i  didn't find the way to enter the VRF context. I know it's quite basic but it's a production switch and i don't want to mess things up.

Probably is a quicki for you...

Thanks for your help

 

Best regards

JordanB
New Contributor

Need to go into the VRF first and then add route under it:

ie:
conf t
router vrf MYVRF 
ip route 1.1.1.1 255.255.255.255 2.2.2.2
exit
write mem

Jonhs
New Contributor

Hi

Thanks for you answer, it is really appreciated.

when i try the command, i got this error:
% Incomplete command. See '^' marker.

The  marker is at the end, so i got to add somethings.

here is the command that should make it...
ip route 172.26.0.0 255.255.0.0 172.16.1.1 local-next-hop enable

but i got this error:
Error: Cannot find route

At this point, it looks like the command wants to modify an existing route.
IP route add didn't do it neither 😞

So i'm still unable to add a route from the cli.

 

Best regards

GTM-P2G8KFN