Originally posted by: timswim78
I typed into google: OS-X ip release and renew
http://www.neotechcc.org/MAC/osx-renew-1.htm
Originally posted by: Brazen
I found the syntax for the release:
ifconfig interface dhcp release
and for the renew:
ifconfig interface dhcp extend
interface would be the name of your network interface, usually eth0 on linux
Originally posted by: fartbag
How bout /etc/init.d/network stop
/etc/init.d/network start
in a shell script?
I'm not a Mac guy but if Unix is in there somewhere that should work.
Apple Mac OS X (by command line):
* get an administrator password for the computer
* open a Terminal command window
* type the commands
o sudo ipconfig set en0 BOOTP
o sudo ipconfig set en0 DHCP
* enter the administrator password when asked to
* close the Terminal window
Originally posted by: n0cmonkey
Originally posted by: Brazen
I found the syntax for the release:
ifconfig interface dhcp release
and for the renew:
ifconfig interface dhcp extend
interface would be the name of your network interface, usually eth0 on linux
That doesn't work on OS X. eth0 only means stuff in Linux. It's en? in Mac OS X.
Originally posted by: hopejr
Originally posted by: n0cmonkey
Originally posted by: Brazen
I found the syntax for the release:
ifconfig interface dhcp release
and for the renew:
ifconfig interface dhcp extend
interface would be the name of your network interface, usually eth0 on linux
That doesn't work on OS X. eth0 only means stuff in Linux. It's en? in Mac OS X.
en0
A simple log-out/log in should release/renew the DHCP lease (but maybe not... I usually just use the GUI method)
Originally posted by: n0cmonkey
Originally posted by: hopejr
Originally posted by: n0cmonkey
Originally posted by: Brazen
I found the syntax for the release:
ifconfig interface dhcp release
and for the renew:
ifconfig interface dhcp extend
interface would be the name of your network interface, usually eth0 on linux
That doesn't work on OS X. eth0 only means stuff in Linux. It's en? in Mac OS X.
en0
That's the first one. I generally use en1 on my Powerbook, iBook, and mini. So en? is appropriate (for any reasonable value of ?).![]()
Originally posted by: Murpheeee
I am looking for a way to relese/renew an IP Address in Mac OS-X
It has to be something which can be run by clicking a shortcut on the desktop.
I figured som kind of UNIX code to run in Terminal might be easiest.....
Anyone help me out?
Originally posted by: halfadder
For onboard ethernet:
sudo ipconfig set en0 DHCP
Originally posted by: Murpheeee
Originally posted by: halfadder
For onboard ethernet:
sudo ipconfig set en0 DHCP
This takes care of the release, how about the renew?
Originally posted by: n0cmonkey
man ipconfig
Maybe something like:
Apple Mac OS X (by command line):
* get an administrator password for the computer
* open a Terminal command window
* type the commands
o sudo ipconfig set en0 BOOTP
o sudo ipconfig set en0 DHCP
* enter the administrator password when asked to
* close the Terminal window