Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2007 16:19:54 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: add route entries in freebsd os.
Message-ID:  <20070601161954.dbd4a0f0.wmoran@potentialtech.com>
In-Reply-To: <46607B8C.4080508@adventnet.com>
References:  <4660673A.6080203@adventnet.com> <200706011416.02148.freebsd@dfwlp.com> <46607B8C.4080508@adventnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to bsenthil <bsenthil@adventnet.com>:

> Thanks Horne,
> 
> I have two interfaces
> eth0 - 192.168.1.5 (gateway - 192.168.1.2)
> eth1 -192.168.2.5 (gatwway - 192.168.2.2)
> 
> and i try to add router entries in below order ...
> 
> route add -net 192.168.100.5 192.168.4.2 255.255.255.0 (??? inteligent not enough to decide which network goes to which 
> interface. which one it take eth0 / eth1)
> 
> 
> route add -net 192.168.3.5 192.168.1.2 255.255.255.0 (inteligent enough to decide which network goes to which 
> interface)
> 
> 
> route add -net 192.168.4.5 192.168.2.2 255.255.255.0 (inteligent enough to decide which network goes to which 
> interface)
> 
> 
> Problem : How the freebsd os handle the first router entries.

It will send it via the default router, which you didn't mention.

However, there is an -interface modifier that can be used to control what
you want.  I don't think you're doing what you think you're doing, or at
least, you're describing it poorly.  Why not provide us with your
existing configuration and the resultant errors?

-- 
Bill Moran
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070601161954.dbd4a0f0.wmoran>