-1

In Linux, if I want to request a new IP say, for eth0, what commands should I use?

Basically, how do I request a different IP from the DHCP so that it replaces my current one?

2

1 Answer 1

0

I would do the following -

  1. /etc/init.d/dhcp stop (or equivalent) to stop the current DHCP Client listening.

  2. Change the MAC address of the device, for example ifconfig eth0 hw ether 01:02:03:04:05:06 - this will make the DHCP server think its a new client, so it should allocate a new MAC address.

  3. /etc/init.d/dhcp stop - to restart the DHCP server.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .