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

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

Default route a VRF to Global

Hi all, i tried to add route in a VRF to go toward the global router in a 6513 with sup720.

For exemple i have an svi on global router with ip 192.168.1.1 ; this svi links to a wan and there is some entries in the routing table

i have two svi mapped in a vrf with 172.16.1.1 and 172.16.2.1

i also have other vrf.

In each VRF, i want to point default to 192.168.1.1 in the global router.

i tried the global parameter at the end of the ip route command (ip route vrf xyz 0.0.0.0 0.0.0.0 192.168.1.1 global  but the ios return an error saying that the gateway is this router.

I know i could leak route between VRF and using BGP (i tried it) , but i only want each VRF know some route with GRT and vice-versa, so im looking a simple manner to add  some route to GRT.

Thanks.

2 REPLIES

Re: Default route a VRF to Global

You can not use IP on the same router. Saying the next hop router has IP 192.168.1.2, you should configure it like

ip route vrf xyz 0.0.0.0 0.0.0.0 192.168.1.2 global

Re: Default route a VRF to Global

Hi all, i tried to add route in a VRF to go toward the global router in a 6513 with sup720.

For exemple i have an svi on global router with ip 192.168.1.1 ; this svi links to a wan and there is some entries in the routing table

i have two svi mapped in a vrf with 172.16.1.1 and 172.16.2.1

i also have other vrf.

In each VRF, i want to point default to 192.168.1.1 in the global router.

i tried the global parameter at the end of the ip route command (ip route vrf xyz 0.0.0.0 0.0.0.0 192.168.1.1 global  but the ios return an error saying that the gateway is this router.

I know i could leak route between VRF and using BGP (i tried it) , but i only want each VRF know some route with GRT and vice-versa, so im looking a simple manner to add  some route to GRT.

Thanks.

Hi,

The global keyword specifies that the next hop address of the static route is resolved within the global routing table, not within the the customer1 VRF.

The following is an example of the static route.

    ip route vrf customer1 0.0.0.0 0.0.0.0 192.168.67.1 global

Having a static route with a global keyword in the customer1 VRF ensures that all packets destined to the Internet are routed to the Internet gateway and subsequently to the Internet.

Check out the below link hope it clear your query !!

http://www.cisco.com/en/US/tech/tk436/tk428/technologies_configuration_example09186a00801445fb.shtml

Ganesh.H

9321
Views
5
Helpful
2
Replies
CreatePlease to create content