multiples gateways

Toni Schmidbauer toni at stderror.at
Wed Aug 20 17:24:46 PDT 2003


On Wed, Aug 20, 2003 at 09:25:47AM -0300, Marcelo Massel wrote:
>      I ´ m using freebsd 5.0 and I need to know if it´s possible to use more than one gateway?. I have two ethernet interfaces one with 10.10.10.254/24 and one with the 10.10.50.254/24 which are  the gateways for two differents  LANs   .if its posible to do it, how could i do it?

if i understand you correctly, 10.10.10.254 is the gw for
the 10.10.10.0/24 network and 10.10.50.254 is the gw for the
10.10.50.0/24 net. and you would like to connect these two
networks.
so the only thing you have to do is enable ip-forwarding
via "sysctl -w net.inet.ip.forwarding=1" and change the
appropriate line in /etc/sysctl.conf (man 5 sysctl.conf).

hth,
toni
-- 
Kann man etwas nicht verstehen, dann urteile man | toni at stderror dot at 
lieber gar nicht, als dass man verurteile.       | Toni Schmidbauer
-- Rudolf Steiner                                | 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030820/04cd8254/attachment.bin


More information about the freebsd-questions mailing list