Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'And for us CLI junkies..' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
And for us CLI junkies..
Authored by: 3kirt on Apr 02, '04 11:01:12PM

ifconfig en0 down
ifconfig en0 up



[ Reply to This | # ]
ifconfig
Authored by: sudogeek on Apr 03, '04 05:02:32PM

Does this actually send a "release" to the DHCP server or simply shut down the interface locally?



[ Reply to This | # ]
ifconfig
Authored by: sdeleurme on Apr 09, '04 07:48:05PM

Nope. Just shuts down the interface locally. You can prove this for yourself with tcpdump.



[ Reply to This | # ]
ifconfig
Authored by: paulsomm on Oct 09, '05 06:13:11PM

Actually, it does and is the standard way this is accomplished on many unix variants. If your IP isn't changing, it's not your Mac's fault but your DHCP server. Remember, DHCP leases happen one of two ways: 1, the client requests an address and the server agrees to hand it out (this is how renewing an existing lease works) or 2, the DHCP server has an entry for your network card's MAC address and will only hand out the IP it has assigned to it already (this is how static leases work, and how many home-firewalls work until the DHCP lease time is reached).

You may have to delete your entry in your DHCP server if you're not seeing your IP change on the Mac.



[ Reply to This | # ]