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

Re: dumb ifconfig_question



On Tue, Feb 19, 2008 at 07:31:06PM +0000, steef wrote:
> hi list,
>
> when i do <sudo ifconfig eth0 down> contact with the internet is duly shut 
> off.
> but: when i do <sudo ifconfig eth0 up> nothing happens: i still cannot 
> reach the internet.
>
> what is it that i miss?

AFAIK with ifconfig you need to supply all (relevant) parameters:

ifconfig eth0 address 192.168.0.1 netmask 255.255.255.0

then set the default gateway:

route add default gw 192.168.0.254

and a nameserver:

echo "nameserver 123.123.123.123" >> /etc/resolv.conf

(though this should be probably done by hand because order in 
resolv.conf matters)

You are probably looking for ifup which should activate your interface 
according to the configuration in /etc/network/interfaces

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: