Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How can I manually release an IP address?

How can I manually release an IP address?
Thread Tools
Senior User
Join Date: Nov 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Oct 16, 2003, 03:30 PM
 
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
Reply With Quote
Oct 16, 2003, 04:14 PM
 
Are you trying to get a new IP from a DHCP Server? Or make sure the one you have is gone?
     
Keda  (op)
Senior User
Join Date: Nov 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Oct 16, 2003, 04:51 PM
 
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
Reply With Quote
Oct 16, 2003, 05:39 PM
 
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
Reply With Quote
Oct 16, 2003, 07:15 PM
 
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
Reply With Quote
Oct 16, 2003, 09:27 PM
 
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
     
Keda  (op)
Senior User
Join Date: Nov 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Oct 17, 2003, 08:10 AM
 
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
Reply With Quote
Oct 17, 2003, 11:38 AM
 
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
Reply With Quote
Oct 17, 2003, 12:10 PM
 
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
Reply With Quote
Oct 17, 2003, 12:47 PM
 
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
     
Keda  (op)
Senior User
Join Date: Nov 1999
Location: Alexandria, VA USA
Status: Offline
Reply With Quote
Oct 17, 2003, 01:03 PM
 
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
Reply With Quote
Oct 18, 2003, 03:44 AM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:01 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2