[plug] Setting up a Gateway for a Ethernet Interface

Jason Nicholls jason at mindsocket.com.au
Sat Sep 15 14:48:42 WST 2001


G'day,

On Sat, Sep 15, 2001 at 02:22:33PM +0800, Mark A. Sasse wrote:
> I was wondering if someone could lend some assistance with setting up a
> gatway for a network interface.  I have looked at the man route page with no
> avail.
> 
> I am trying to add a network gateway through console for a network interface
> eth0.
> 
> When I do the following:
> 
> route -add net <gateway address> netmask <netmask> eth0
> 
> It adds it but it is not the gateway for the interface I need.

If you're talking about the default route, then the route man page even has an
example:

 route add default gw mango-gw

In your case you'd use the IP of eth0 interface rather than the name
"mango-gw". so:

route add default gw <IPaddr>




Later,

Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls    icq: 11745841    email: <jason at mindsocket.com.au>
Proprietor                        mobile: 0417 410 811
Mind Socket [web services]          http://www.mindsocket.com.au/
--------------------------------------------------------------------



More information about the plug mailing list