[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Gateway setup



On Tue, 1 Oct 2002, Daniel Negron/KBE wrote:

> /sbin/route add --net 192.168.10.0 255.255.0.0 gw eth1 (ext card)
> NET/ROM: this needs to be written
> 

Just translating your command into a form acceptable by 'route', I'd do

route add -net 192.168.10.0/16 eth1

I would expect a netmask of 255.255.255.0 (or /24), and not the one you've
written: otherwise you will be adding a route for network 192.168.0.0/16,
probably not what you want.

If what you need is a _default_gateway_, as the 'gw' on your command line
suggests, you'd better go with

route add -host gateway_machine eth1
route add default gw gateway_machine

where gateway_machine is the computer/router/whatever you will use as
external gateway.

Hope it helps!

Ant9000


-- 
_____________________________________________________________________________
Dr. Antonio Galea       N e t   W i s e                 http://www.netwise.it
Sviluppo tecnico     Tecnologie per il Web    Tel 0461.421016 Fax 0461.426021
-----------------------------------------------------------------------------
No, I'm not running 32 bit extensions for a 16 bit patch to an 8 bit operating
system originally coded for a 4 bit microprocessor, written by a 2 bit company,
that can't stand 1 bit of competition...
-----------------------------------------------------------------------------
--






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]