Thursday, September 13, 2007

DHCP renew on Linux

On Linux, to renew IP, just issue dhcpcd interface_name.

One way to identify the LAN or wireless interface, issue iwconfig command. The interface (normally eth0, eth1, eth2) is the network interface. The entry with the indication no wireless extension is normally the LAN. You need to issue ifconfig down before you issue the dhcpcd command.

The dhcpcd interface_name will automatically bring up the interface it is renewing.

No comments: