Flush and request new IP

From Seven
Jump to: navigation, search

In some networks my Ubuntu box cannot map the hardware address (MAC) to IP or domain names. In that case sometimes it helps to explicitly renew the ID address. First remove the current lease:

sudo dhclient -r

Then request for a new one (here binding to the wireless interface "wlan0"):

sudo dhclient wlan0