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

How to set different default routes for different VRFs?

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

Re: How to set different default routes for different VRFs?

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.

119
Views
0
Helpful
1
Replies
CreatePlease to create content