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

Re: which file do I edit to give my syste a default gateway??



On (10/05/05 14:33), Siju George wrote:
> Hi all,
> 
> I installed my Debian system without a default gateway.
> 
> May I know which file I should edit to give the system a default gateway??
> 
If you are using dhcp, you shouldn't need one and your
/etc/network/interfaces file should look something like this:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

If you are setting the IP address manually:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.x
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
			
Regards

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business




Reply to: