- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 08:12 AM - edited 03-05-2019 05:06 PM
I have a default route 0.0.0.0 but I'd like some packets that come in on certain interfaces to have a different default route.
Solved! Go to Solution.
- Labels:
-
Other Switching
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 08:21 AM
If you only wanted 192.168.1.0/24 to use the specific default route on a particular interface, something like this should work.
interface FastEth...
ip policy route-map mymap
access-list 10 permit ip 192.168.1.0 0.0.0.255
route-map mymap permit 20
match ip address 10
set ip default next-hop
Wow, this seems to be a popular answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 08:17 AM
Hi
You need to use Policy Based Routing for this. Attached is a white paper explaining how PBR works and what it can do. After reading this serach on Cisco site for your IOS version configuration docs and PBR will be in there.
http://www.cisco.com/en/US/products/ps6599/products_white_paper09186a00800a4409.shtml
HTH
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 08:20 AM
Roland,
You can use PBR and match the intresteing traffic using an ACL to have it source routed to a different next hop IP. This way your specific incmoing traffic an interface will be policy routed to a different next hop router and the other traffic which doesnot match the PBR will follow the normal defualt route.
http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/12cgcr/qos_c/qcpart1/qcpolicy.htm
HTH,Please rate if it does.
-amit singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 08:20 AM
You can do this trhough PBR "Policy base routing"
http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a0080457b9c.html
HTH
Jorge

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 08:21 AM
If you only wanted 192.168.1.0/24 to use the specific default route on a particular interface, something like this should work.
interface FastEth...
ip policy route-map mymap
access-list 10 permit ip 192.168.1.0 0.0.0.255
route-map mymap permit 20
match ip address 10
set ip default next-hop
Wow, this seems to be a popular answer.
