 |
 |
How can I manually release an IP address?
|
 |
|
 |
|
Senior User
Join Date: Nov 1999
Location: Alexandria, VA USA
Status:
Offline
|
|
The subject says it, but how can I make sure the computer has released an IP from a DHCP server? I s there a terminal command?
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status:
Offline
|
|
Are you trying to get a new IP from a DHCP Server? Or make sure the one you have is gone?
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 1999
Location: Alexandria, VA USA
Status:
Offline
|
|
I'd like to do this so I can get a new IP.
Usually, I just change the mode from DHCP to something else and hit apply. Then, change back and apply again. i know there is a better way.
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status:
Offline
|
|
Originally posted by Keda:
I'd like to do this so I can get a new IP.
Usually, I just change the mode from DHCP to something else and hit apply. Then, change back and apply again. i know there is a better way.
Well, in Panther you'll be happy to know that their is actually a "Renew DHCP Lease" button that will automate and make it easier under Network preferences; however, in Jaguar I do exactly as you described...I change the mode to "Boot DHCP Server"...Apply..."Using DHCP"...Apply....

|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2001
Location: Colorado Springs, CO
Status:
Offline
|
|
Originally posted by Keda:
[BUsually, I just change the mode from DHCP to something else and hit apply. Then, change back and apply again. i know there is a better way. [/B]
That's the way our Help Desk recommends: Release an IP address. I guess "wait for Panther" is the answer as for a better way 
|
|
Plato--what's a "Chickie Run"?
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jul 2000
Location: Texas
Status:
Offline
|
|
Originally posted by Keda:
The subject says it, but how can I make sure the computer has released an IP from a DHCP server? I s there a terminal command?
in the Terminal, issue the IFCONFIG command.
Look for en0 and/or en0. decide which ethernet interface you need to release the IP address and type in
ifconfig enx down (turns off the interface) and then
ifconfig enx up (turns it back on again)
this will release and renew the DHCP lease
|
|
---
One XP Box, One Suse Box, One Blue & White,
One ibook, One iMac 17 FP, one 30 gig iPod and a mini
happy .mac customer, os9 free since 3/24/01
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 1999
Location: Alexandria, VA USA
Status:
Offline
|
|
Look for en0 and/or en0. decide which ethernet interface you need to release the IP address and type in
What is en0? Where do I find it?
Also, (going out on a limb) can I log into a base station (AE) and do this samething?
The reason Im asking these question is because my cable modem has been acting up recently. They tech from Comcast says that I have to shut down and restart my machine to clear the cached IP. I just dont buy it. I have, however, been shutting down my base station to renew it's IP.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally posted by Keda:
What is en0? Where do I find it?
en0 is your ethernet card. en1 is your airport card.
Depending on which interface you're using you can type ifconfig interface down where you'd put in either en0 or en1. For example I'm using my ethernet card (en0) to connect to the net, the command I'd use to release my IP would be:
Code:
[aorth@ssku225-100-c: ~]$ ifconfig en0 down
Then I'd type:
Code:
[aorth@ssku225-100-c: ~]$ ifconfig en0 up
That should do it. 
|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Feb 2000
Location: Washington, DC
Status:
Offline
|
|
Well, you could always reformat and do a clean install...
(That's my favorite answer when M$ users ask for help)
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2003
Status:
Offline
|
|
Originally posted by Keda:
The subject says it, but how can I make sure the computer has released an IP from a DHCP server? I s there a terminal command?
In the Network pane, just disable and then re-enable the interface (port).
Joe
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 1999
Location: Alexandria, VA USA
Status:
Offline
|
|
Thanks for the responses.
I am looking forward to playing around with this after work.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Dec 2002
Location: Switzerland
Status:
Offline
|
|
Originally posted by gorickey:
Well, in Panther you'll be happy to know that their is actually a "Renew DHCP Lease" button that will automate and make it easier under Network preferences; however, in Jaguar I do exactly as you described...I change the mode to "Boot DHCP Server"...Apply..."Using DHCP"...Apply....
Thanks for this info about Panther. I'm also doing it the same way in Jaguar.
|
|
SwitCHerland, Europe
17" PowerBook 1GHz | WaterField SleeveCase | LaCie d2 250GB | AirPort Extreme BS, AirPort Express | iPod photo 60GB
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|