-- TANSTAAFL "there ain't no such thing as a free lunch"
""Daren Presbitero"" wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > Had a question and been trying to figure this one out for a while now. > I have a router with an internal 205.10.1.0/24 network hanging off of fa0/0 > and external connection to lots of other networks that start with 205. I > want to create a 205.0.0.0/8 static route pointing everything to the > external gateway router, but will have problems when sending to an external > network (205.10.50.0/24) because the longest matched route will come up as > the internal 205.10.1.0 network's route, not the 205.0.0.0 static route. I > need to force the packet to route through the 205 static route IF it does > not match the internal network. How would I do this with a route-map? > NOTE: I need the route-map to check the dest.IP and IF it is not destined > for the 205.10.1.0 subnet then send it to the upstream default gateway. well, let's look at your first assumption. that is, that a destination to 205.10.50.x ( /24 ) will be matched by 205.10.1.0 during a route lookup. or to put it another way, if you have two routes in your routing table: S 205.0.0.0 (default gateway interface ) C 205.10.1.0 ( interface whatever ) which one will a destination of 205.10.50.x match? that said, you can add policy routing, and give yourself a different kind of flexibility. let's look at the route-map structure, and see how it operates. start with your access-lists. access-list 1 permit 205.10.1.0 0.0.0.255 access-list 2 permit 205.0.0.0 0.255.255.255 I'm going to assume for argument's sake that at this time you have no other destinations you want to reach. route-map 205net permit 10 match ip addr which one? set now here you have a choice - interface or ip next-hop. the flexibility gained is that you can modify this route-map to suit your needs as they change - add more access-lists to reflect different subnets and add more route-map clauses to reflect the policy requirements. or you can resort to good old routing. which is easier on the brain. ;-> > > Mahalo for your help, the only thanks accepted is a two week stay in your town. living room floor will be ok. couch better. ;-> > Daren Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=60265&t=60263 -------------------------------------------------- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]