On Tuesday 10 February 2004 12:51, Anders Johansson wrote:
On Tue, 2004-02-10 at 15:47 -0500, Jeff Bankston wrote:
Rookie question of the day......
What option on ifconfig permits me to drop and acquire an IP address without rebooting? I tried the down/up options, no joy. No "plumb" command that I can find.
If you're using dhcpcd (the default dhcp client), then "dhcpcd -k" will kill dhcp, bring down the network interface, and force it to request a new IP address the next time you bring it up.
But it will probably get the same IP anyway regardless of the request, because that is the way most dhcp servers work. If trying to avoid a DOS attack, its often very desirable to get a different IP, and there is a utility called changemac which will temprarily change your mac address so that the dhcp server will give you a different IP. http://galeb.etf.bg.ac.yu/~azdaja/changemac.html -- _____________________________________ John Andersen