cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
22170
Views
5
Helpful
2
Replies

Default route a VRF to Global

Gizmo37QC
Level 1
Level 1

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 2

Yudong Wu
Level 7
Level 7

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

Ganesh Hariharan
VIP Alumni
VIP Alumni

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

Review Cisco Networking for a $25 gift card