Home > Archive > alt.certification.cisco > April 2003 > 2 Default Routes





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author 2 Default Routes
Phone Support

2003-04-24, 9:24 am

I need to set up 2 default routes where one range of IPs will go out one way
and a different range will go out another using the same Eth on a Cisco
router


anchor40

2003-04-24, 12:39 pm

It sounds like you have an Ethernet interface that shares a network with two other routers, and you wish to route one range of source addresses through the first router, and the other range through the second router.

If the above accurately re-phrases your question, then BGP is the way to go. But, there are several different ways to config depending on the policy. If you absolutely do not want the links to be redundant (limit the path each range can take), then you could use one method. but if you want the fail-over capability (preferred routes), then another would be used.

Plenty of sample configs on Cisco CCO.
NewsUser

2003-04-24, 4:24 pm

That's very easy. I have the same case, for example, you can have a router
with IP 192.168.0.1/24 and you need to redirect the IP packets to different
gateways, we will work with two new ranges of IP addresses:

ip route 192.168.1.0 255.255.255.0 192.168.0.2
ip route 192.168.2.0 255.255.255.0 192.168.0.3

This way, you will redirect the traffic to several gateways depending on its
range.

Regards.

----------------------------
I need to set up 2 default routes where one range of IPs will go out one way
and a different range will go out another using the same Eth on a Cisco
router



Hansang Bae

2003-04-24, 5:24 pm

In article <slSpa.8367$Zo.99923@dfw-read.news.verio.net>,
todd@cbcast.com says...
> I need to set up 2 default routes where one range of IPs will go out one way
> and a different range will go out another using the same Eth on a Cisco
> router



You can't do this w/o using Policy based routing. See
comp.dcom.sys.cisco's FAQ (google it) for a working example. Or search
cco for Policy based routing.

--

hsb

"Somehow I imagined this experience would be more rewarding" Calvin
*************** USE ROT13 TO SEE MY EMAIL ADDRESS ****************
******************************
******************************
********
Due to the volume of email that I receive, I may not not be able to
reply to emails sent to my account. Please post a followup instead.
******************************
******************************
********
Hansang Bae

2003-04-24, 5:24 pm

In article <anchor40.mek4c@mail.examnotes.net>,
anchor40.mek4c@mail.examnotes.net says...
> It sounds like you have an Ethernet interface that shares a network with
> two other routers, and you wish to route one range of source addresses
> through the first router, and the other range through the second
> router.
>
> If the above accurately re-phrases your question, then BGP is the way
> to go. But, there are several different ways to config depending on
> the policy. If you absolutely do not want the links to be redundant
> (limit the path each range can take), then you could use one method.
> but if you want the fail-over capability (preferred routes), then
> another would be used.


BGP won't work since it doesn't route based on the source IP. PBR is
the only way to do this.

--

hsb

"Somehow I imagined this experience would be more rewarding" Calvin
*************** USE ROT13 TO SEE MY EMAIL ADDRESS ****************
******************************
******************************
********
Due to the volume of email that I receive, I may not not be able to
reply to emails sent to my account. Please post a followup instead.
******************************
******************************
********
Phone Support

2003-04-24, 5:24 pm

Thank for the information

"Hansang Bae" <uonr@alp.ee.pbz> wrote in message
news:MPG.191221f96584f36498996e@news-server.nyc.rr.com...
> In article <slSpa.8367$Zo.99923@dfw-read.news.verio.net>,
> todd@cbcast.com says...
> > I need to set up 2 default routes where one range of IPs will go out one

way
> > and a different range will go out another using the same Eth on a Cisco
> > router

>
>
> You can't do this w/o using Policy based routing. See
> comp.dcom.sys.cisco's FAQ (google it) for a working example. Or search
> cco for Policy based routing.
>
> --
>
> hsb
>
> "Somehow I imagined this experience would be more rewarding" Calvin
> *************** USE ROT13 TO SEE MY EMAIL ADDRESS ****************
> ******************************
******************************
********
> Due to the volume of email that I receive, I may not not be able to
> reply to emails sent to my account. Please post a followup instead.
> ******************************
******************************
********



John

2003-04-27, 3:24 am

On Thu, 24 Apr 2003 20:32:17 +0000, NewsUser wrote:

> That's very easy. I have the same case, for example, you can have a router
> with IP 192.168.0.1/24 and you need to redirect the IP packets to different
> gateways, we will work with two new ranges of IP addresses:
>
> ip route 192.168.1.0 255.255.255.0 192.168.0.2
> ip route 192.168.2.0 255.255.255.0 192.168.0.3
>
> This way, you will redirect the traffic to several gateways depending on its
> range.
>
> Regards.
>
> ----------------------------
> I need to set up 2 default routes where one range of IPs will go out one way
> and a different range will go out another using the same Eth on a Cisco
> router


This will send both ip ranges to 2 different gateways depending on the
network to be reached. The question appears to be how to send different ip
ranges to any particular destination via different paths. I don't think
you can do that without setting up internal policies. A route map that
matches an address range and sets the next hop based on that range would
work. In other words, policy routing like Hansang said. An example is:
http://www.cisco.com/univercd/cc/td...dep.htm#1001398
anchor40

2003-04-28, 10:52 am

Hansang,

I thought with BGP you could establish policy for some networks to have a primary path out one ISP, and other networks to have a primary path out another ISP, but keep the "other" ISP as backups.

192.168.2.0 /23 --> ISP A (B backup)
192.168.4.0 /23 --> ISP B (A backup)

where ISP A and B are both connected to E0

192.168.2.0 /23 ---ISP B
\ E0 |
Router - |
/ ---ISP A
192.168.4.0 /23

Couldn't a "Weight" statement in a route map set the primary path for the traffic?
Hansang Bae

2003-04-28, 10:24 pm

In article <anchor40.mlt8c@mail.examnotes.net>,
anchor40.mlt8c@mail.examnotes.net says...
>
> Hansang,
>
> I thought with BGP you could establish policy for some networks to have
> a primary path out one ISP, and other networks to have a primary path
> out another ISP, but keep the "other" ISP as backups.
>
> 192.168.2.0 /23 --> ISP A (B backup)
> 192.168.4.0 /23 --> ISP B (A backup)
>
> where ISP A and B are both connected to E0
>
> 192.168.2.0 /23 ---ISP B
> \ E0 |
> Router - |
> / ---ISP A
> 192.168.4.0 /23
>
> Couldn't a "Weight" statement in a route map set the primary path for
> the traffic?



I read the post has "based on the source IP, I want to route to XYZ" So
if that's the case, then BGP won't work for the outbound (user to ISP)
traffic. It'll certainly work for the inbound traffic.

--

hsb

"Somehow I imagined this experience would be more rewarding" Calvin
*************** USE ROT13 TO SEE MY EMAIL ADDRESS ****************
******************************
******************************
********
Due to the volume of email that I receive, I may not not be able to
reply to emails sent to my account. Please post a followup instead.
******************************
******************************
********
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net