add route entries in freebsd os.
lreid at cs.okstate.edu
Fri Jun 1 20:16:57 UTC 2007
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.
More information about the freebsd-questions