cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
229
Views
0
Helpful
1
Replies

How to set different default routes for different VRFs?

gwhuang5398
Level 2
Level 2

I have multiple VRFs where I will inject a default route into each for Internet access. However some VRFs will have the default route going through Firewall, while others have their default route not going through Firewall. How can I make this happen? I'm thinking adding the interfaces of Internet connections to the VRFs, but not sure how the return traffic from the Interner router would know which VRF to route to.

Thanks

Gary

1 Reply 1

Collin Clark
VIP Alumni
VIP Alumni

This is off the top of my head, so double check my work.

ip route [vrf name] 0.0.0.0 0.0.0.0 [gateway]

In your internet router you will need to specify the interface for each vrf subnet.

ie ip route 192.168.0.0 255.255.255.0 [vrf 1 IP]

ie ip route 192.168.10.0 255.255.255.0 [vrf 2 IP]

Hope that helps.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card