Specified a default route by ACL.

Specified a default route by ACL.

NewsGroups | Search | Tools
 comp.dcom.sys.cisco  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Specified a default route by ACL. Steve Houle 10-10-2006
Posted by Steve Houle on October 10, 2006, 1:06 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi.

I've got a question. If i got two router acting has default gateway
connected to a third router. How could I specified a default gateway by
ACL. Like, if I want all match with ACL 101 (who permit HTTP, SMTP) router
over Router A and the rest goes to router B.

Thanks.

Steve.

Posted by Walter Roberson on October 10, 2006, 1:21 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
>I've got a question. If i got two router acting has default gateway
>connected to a third router. How could I specified a default gateway by
>ACL. Like, if I want all match with ACL 101 (who permit HTTP, SMTP) router
>over Router A and the rest goes to router B.

You want "policy based routing" (PBR). Probably you want to
combine it with "ip nat".

Posted by Steve Houle on October 10, 2006, 1:27 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Walter Roberson wrote:

>>I've got a question. If i got two router acting has default gateway
>>connected to a third router. How could I specified a default gateway by
>>ACL. Like, if I want all match with ACL 101 (who permit HTTP, SMTP)
>>router over Router A and the rest goes to router B.
>
> You want "policy based routing" (PBR). Probably you want to
> combine it with "ip nat".

Actually, there is no nat involved under this scenario.

I'll search google about PBR.

Thanks.

Steve.

Posted by Walter Roberson on October 10, 2006, 2:39 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
>Walter Roberson wrote:

>>>I've got a question. If i got two router acting has default gateway
>>>connected to a third router. How could I specified a default gateway by
>>>ACL. Like, if I want all match with ACL 101 (who permit HTTP, SMTP)
>>>router over Router A and the rest goes to router B.

>> You want "policy based routing" (PBR). Probably you want to
>> combine it with "ip nat".

>Actually, there is no nat involved under this scenario.

You want to select the outgoing routing by protocol, not by IP.
You will presenting outgoing packets to router A and to router B that
have the same source address (as other outgoing packets) {and possibly
even the same destination address but different ports.)

Now, when the remote systems respond to those packets, which path will
the responses take back to you? Through router A or through router B?
The remote systems don't know anything about your outgoing packet
arrangements, so the remote systems are going to route back to you
according to the IP only, without consideration of the port.
And that implies that all the responses (for a given host) are going to
come back through the same router, regardless of port.

The solution to this is to NAT the outgoing packets so that the source
IP corresponds to a public IP address in the range handled by the router
the packet went out through. Then the remote systems are going to route
the responses back to the appropriate router, which will de-NAT
the destination and pass the data on to the internal systems.


Note, by the way, that what you propose to do is not at all robust if
either of the routers goes down (or the path through it becomes
unavailable.) Especially if the router that goes down is the single
router that all the response traffic would travel through if you
are not NAT'ing.

If robustness is an issue in the situation, then I recommend
that you read Vincent C. Jones' white papers at
networkingunlimited.com

Posted by Barry Margolin on October 10, 2006, 9:22 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
roberson@hushmail.com (Walter Roberson) wrote:

> >Walter Roberson wrote:
>
> >>>I've got a question. If i got two router acting has default gateway
> >>>connected to a third router. How could I specified a default gateway by
> >>>ACL. Like, if I want all match with ACL 101 (who permit HTTP, SMTP)
> >>>router over Router A and the rest goes to router B.
>
> >> You want "policy based routing" (PBR). Probably you want to
> >> combine it with "ip nat".
>
> >Actually, there is no nat involved under this scenario.
>
> You want to select the outgoing routing by protocol, not by IP.
> You will presenting outgoing packets to router A and to router B that
> have the same source address (as other outgoing packets) {and possibly
> even the same destination address but different ports.)
>
> Now, when the remote systems respond to those packets, which path will
> the responses take back to you? Through router A or through router B?
> The remote systems don't know anything about your outgoing packet
> arrangements, so the remote systems are going to route back to you
> according to the IP only, without consideration of the port.
> And that implies that all the responses (for a given host) are going to
> come back through the same router, regardless of port.

He never said he wanted the return traffic to be routed specially, just
the outgoing traffic. Asymmetric routing isn't inherently bad, although
there certainly are times when you don't want it.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***

Similar ThreadsPosted
What is the default precedence: local-route, static-route, OSPF-route? August 4, 2008, 3:00 am
Need to route SMTP traffic through static interface (not default route) March 27, 2007, 5:19 pm
RIP + Default Route October 21, 2005, 1:58 am
Default Route November 4, 2005, 7:05 pm
Default Route(s) August 14, 2006, 11:58 am
Default route using interface not next-hop on LAN March 2, 2005, 6:39 am
Default Route BGP Query December 4, 2006, 8:24 pm
Default Route Question September 4, 2007, 3:32 pm
Pix VPN-Tunnel Default Route? November 22, 2007, 8:15 am
Can't set default route to outside interface May 29, 2008, 10:12 pm

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map