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

Re: Setting gateway



On Thu, 12 Nov 1998, Tomas Petersson wrote:

> Hello, I have just reinstalled debian 2.0 on my 
> computer. For some reason the network has not been
> configured correctly.
> The netcard seems to work ok, and have a ipaddress assigned.
> 
> Which commands do I have to issue to set up an default route
> so I can access the Internet or other computers on my LAN?
> I need to use route, or?
> 
> /Tomas Petersson


route add default gw IP_OF_GATEWAY

(can use hostname too, if you have it entered into /etc/hosts)

If you want to configure this on boot, put it in /etc/init.d/network


                       Michael Beattie (mickyb@es.co.nz)

               PGP Key available, reply with "pgpkey" as subject.
 -----------------------------------------------------------------------------
           If at first you don't succeed, you must be using Windows.
 -----------------------------------------------------------------------------
                Debian GNU/Linux....  Ooohh You are missing out!



Reply to: