[10631] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: default routes on Ciscos

daemon@ATHENA.MIT.EDU (David Papp)
Fri Jul 11 11:42:28 1997

Date: Fri, 11 Jul 1997 09:19:58 -0600 (MDT)
From: David Papp <david@oanet.com>
To: Nick Lauriat <lauriat@panther.middlebury.edu>
cc: nanog@merit.edu
In-Reply-To: <Pine.A41.3.95.970711102825.38240A-100000@tiger.middlebury.edu>

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. :)

--------------------------->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 *


On Fri, 11 Jul 1997, Nick Lauriat wrote:
> 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
> 
> 
> 

home help back first fref pref prev next nref lref last post