Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jun 2007 15:16:54 -0500
From:      Reid Linnemann <lreid@cs.okstate.edu>
To:        bsenthil <bsenthil@adventnet.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: add route entries in freebsd os.
Message-ID:  <46607EB6.9070202@cs.okstate.edu>
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
Written by bsenthil on 06/01/07 15:03>>
> 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)
> 

You haven't laid out how to get to the 192.168.4/24 network, so the 
interface that is connected to the default route is the only legitimate 
choice the routing machinery has.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46607EB6.9070202>