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. And see here for current known issues.

How do I inject a static default route into vrf

Could anybody give me any advise on injecting a static default route into vrf.

The static route is to the internet, I can't enable vrf forwading on the fa interface as other users also use this internet connection.

I am configuring a 7206 VXR 12.3(26) and have attached a copy of the config

Any help gratefully received

1 ACCEPTED SOLUTION

Accepted Solutions
Silver

Re: How do I inject a static default route into vrf

Hi

I think you have to specify the route as this

ip route vrf delegate_wireless fa0/0 0.0.0.0 0.0.0.0 194.154.168.1 global

it tells the router to to use a next hop that is not part of the vrf.

Also, don't forget that the return traffic has to be routed out to the vrf.

Something like this.

ip route a.b.c.d tu1 10.252.254.2

/Mikael

8 REPLIES
New Member

Re: How do I inject a static default route into vrf

You have the correct syntax ie “ip route vrf (vrf name) 0.0.0.0 0.0.0.0 (internet router / address)”

I don't suppose you running any sort of dynamic routing?

Re: How do I inject a static default route into vrf

Hi

We're not running on dynamic routing on this particular router.

The static route I've configured doesn't show up in the vrf routing table, do you think its because I don't have VRF forwarding enabled on the internet fa interface (which I can't do as other non vrf networks use this aswell)

Thanks for your help

New Member

Re: How do I inject a static default route into vrf

What does "sh ip route vrf (vrf name)" show?

Does you internet router participate in the same vrf?

Re: How do I inject a static default route into vrf

Hi

Sh ip route vrf (vrf name) just shows the eigrp routes, the vrf static route is not visible

The internet router doesn't participate in any vrf. I'm trying to get the traffic to 'leave' the vrf and route it to the internet.

Thanks for your help

Silver

Re: How do I inject a static default route into vrf

Hi

I think you have to specify the route as this

ip route vrf delegate_wireless fa0/0 0.0.0.0 0.0.0.0 194.154.168.1 global

it tells the router to to use a next hop that is not part of the vrf.

Also, don't forget that the return traffic has to be routed out to the vrf.

Something like this.

ip route a.b.c.d tu1 10.252.254.2

/Mikael

New Member

Re: How do I inject a static default route into vrf

Mikael, must say i did not even think of the tunnel ;o)

I would have just setup bgp between the 2 with "default-originate" on the internet router.

New Member

Re: How do I inject a static default route into vrf

HI

what mean of tu1 in the vrf

ip route a.b.c.d tu1 10.252.254.2

e.g

interface gi1/0.100

ip vrf forwarding access-to-internet

ip add 10.252.254.2 255.255.255.252

how can i set a static route in this case for the traffic which is return from the internet?

thanks!

Re: How do I inject a static default route into vrf

Hi Mikael

Thank you so much much for your help, your suggestion worked a treat!

Kind regards

Anne-marie

791
Views
4
Helpful
8
Replies
CreatePlease login to create content