default routes on Ciscos

Hi there!

Just curious if anyone out there knows of a way to configure default
routes on a per interface basis on a Cisco. So that different interfaces
had different default routes statically defined.

Any thoughts?

Thanks!

Nick Lauriat

You can do it using route-maps. Here's a quick and dirty example I will
quickly type up. Route-maps are a source type routing rather than
destination based. So you are grabbing packets with your source IP and
any destination IP and tell them to go out Path B instead of the default
path A. (I hope I didn't screw up any of the orders, I am merely trying
to demonstrate a simple example, corrections are welcome. :slight_smile:

--------------------------->8-----------------------------
!
int e0
description Your Internal LAN
ip address 192.168.100.1 255.255.255.0
ip policy route-map DEFROUTE
!
int s0
description Upstream Path A
ip address 192.168.150.2 255.255.255.0
!
int s1
description Upstream Path B
ip address 192.168.200.2 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 192.168.150.1
!
access-list 125 permit ip 192.168.100.0 0.0.0.255 any
!
route-map DEFROUTE permit 10
match ip address 125
set ip next-hop 192.168.200.1
!
--------------------------->8---------------------------------

...David

* David Papp | 4907-99 Street | Phone: +1.403.430.0811 *
* Manager | Edmonton, Alberta | Fax: +1.403.436.9963 *
* OA Internet Inc. | Canada, T6E 4Y1 | Email: david@oanet.com *

Date: Fri, 11 Jul 1997 10:30:58 -0400 (EDT)
From: Nick Lauriat <lauriat@panther.middlebury.edu>
Subject: default routes on Ciscos
To: nanog@merit.edu

Hi there!

Just curious if anyone out there knows of a way to configure default
routes on a per interface basis on a Cisco. So that different interfaces
had different default routes statically defined.

Policy routing will do that at GREAT cost in CPU time.

Any thoughts?

Thanks!

Nick Lauriat

Dave Nordlund d-nordlund@ukans.edu
University of Kansas 913/864-0450
Computing Services FAX 913/864-0485
Lawrence, KS 66045 KANREN