Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 1999 13:45:23 -0600
From:      "Chris Watson" <cwatson@worldmediaco.net>
To:        "Wes Peters" <wes@softweyr.com>
Cc:        <freebsd-net@FreeBSD.ORG>
Subject:   RE: Route add question
Message-ID:  <000101be6a65$5f34ce90$3d01a8c0@nt-trash.omaha.com>
In-Reply-To: <36E57402.685D3039@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help


-----Original Message-----
From:	wpeters@softweyr.com [mailto:wpeters@softweyr.com] On Behalf Of Wes
Peters
Sent:	Tuesday, March 09, 1999 1:18 PM
To:	Chris Watson
Cc:	freebsd-net@FreeBSD.ORG
Subject:	Re: Route add question

Chris Watson wrote:
>
> I was trying to figure out today how to add a default route to an
interface
> that is in a box with another interface that has a default route.

No, you can only have one default route, that's what "default" means.  If
you have multiple gateways via multiple interfaces to the same network
resource, I.e. the corporate backbone or the internet, you need to use a
routing daemon to manage your routing table.

I hate routing :)

Ok let me explain my real problem then:

I am try to replace a cisco 7206 that needs to be moved with a FreeBSD box.

The cisco has one interface n1 going out to a 4700 out to the net.

N1 has an IP of 207.252.133.200 and a netmask of 255.255.255.252

The 7206 also has several other interfaces. N2 n3 n4 ...

Each of these cards in IOS I guess has a primary IP and a multiple secondary
IP's.

N2 has a primary ip of 207.252.121.10 and a netmask of 255.255.255.252
N2 has a secondary ip of 207.252.122.250 and a netmask of 255.255.255.0
N2 has a third secondary ip of 207.252.120.30 and a netmask of
255.255.255.240
This n2 card plugs into a switch which has 3 mail servers on it. Each of the
mail servers uses the primary ip of n2 as the default gateway.

Another switch is cascaded off of the mail server switch which houses web
servers.
These web servers point to the secondary ip of 207.252.122.250 as a default
gateway.

Basically it looks like this:


Internet-----4700-------------------7206--------------------------------swit
ch one-------switch 2--------------switch 3
                                              Primary: 207.252.121.10
			       Secondary: 207.252.122.250


Basically the 7206 has mutiple virtual ip's being used as default gateways.
How do I accomplish the same thing?

How can I assign a single interface multiple IP's each virtual being a
default gateway for different machines on a single switch, li.e switch one
using the primary ip as a default gateway and switch 2 machines using the
2nd virtual ip as a default gateway.


--
             Where am I, and what am I doing in this handbasket?

Wes Peters
+1.801.915.2061



Now

Softweyr LLC
wes@softweyr.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000101be6a65$5f34ce90$3d01a8c0>