eth0 - restarting withoout a reboot?

Stephen R Laniel steve at laniels.org
Fri Jan 27 16:11:08 UTC 2006


On Fri, Jan 27, 2006 at 10:01:54AM -0600, Oscar Veloz wrote:
> How does one restart eth0 from the command line without rebooting the
> computer?

Well, if you're talking about turning off the power on the
card, then I can't help you. But if by 'restart' you mean
'release the DHCP lease and renew it', you can do

sudo ifdown eth0

to release and

sudo ifup eth0

to renew. Sometimes (like recently) the ifup/ifdown scripts
are hosed, in which case you need to do what those scripts
are supposed to do:

sudo dhclient -r eth0
sudo dhclient eth0

assuming your NIC is eth0.

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060127/0725de8b/attachment.sig>


More information about the ubuntu-users mailing list