Release and renew IP
Marius Gedminas
marius at pov.lt
Mon Oct 13 01:17:43 UTC 2008
On Mon, Oct 13, 2008 at 12:52:35AM +0000, Anthony M. Rasat wrote:
> On Mon, Oct 13, 2008 at 12:20:59AM +0000, Anthony M. Rasat wrote:
> >>>How do I release and/or renew >>>an IP address in a command >>>line?
> >>
> >>May I assume that is a DHCP >>nterface of eth0? Here a >>"shorter" way:
> >>
> >> sudo dhclient eth0
> >>
> >Ah, but should it be dhclient or >dhclient3? If you end up with two >DHCP clients on one interface, >they will interfere with each other >causing your connection to stop >working mysteriously every 5 >minutes or so.
>
> File /sbin/dhclient is a symbolic link to /sbin/dhclient3.
That's good to know; it was not so in older Ubuntu versions.
> >>And now the "proper" way >>which also require proper >>configuration:
> >>
> >>sudo /etc/init.d/network restart
> >Does that work when you use >Network Manager?
> >
> >Marius Gedminas
>
> If network manager has written to file /etc/network/interfaces every
> required parameter (eg. iface eth0 inet dhcp), then yes, it should
> work with network manager. Note that OP wanted to renew, not modify
> its configuration, of IP address.
AFAIK network-manager doesn't write to /etc/network/interfaces.
Marius Gedminas
--
Committee, n.:
A group of men who individually can do nothing but as a group
decide that nothing can be done.
-- Fred Allen
-------------- 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/20081013/ffecdca6/attachment.sig>
More information about the ubuntu-users
mailing list