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

Re: Adding route



On Fri, 1 Jun 2001, Subba Rao wrote:

> Now comes the routing part, where I am stuck. I did create /etc/mygate file
> which has the IP address of the gateway. After I reboot, the gateway is always
> pointing to 127.0.0.1 (localhost). I have tried "route add destination gateway"
> command and that did not make any difference.

If you're using DHCP to get an address remove /etc/mygate. The DHCP server
should assign your default route to you.

The installer creates /etc/mygate even if you use DHCP in the install
process. If you don't move locations (change your gateways) it's not a
problem.

If you're using route to set it you'll want to use:

route add default 192.168.1.1

where 192.168.1.1 was the gateway you wanted to specify. You might need to
delete the route first.

regards,

neal
___________
d neal wise - nwise@spy.net
SPY internetworking  -  will network for food
http://www.spy.net