New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Internet, Networking, and Wireless Discussion of networking, internet, and wireless including Apple's Airport products.

Renew DHCP lease script


Post Reply New Thread Subscribe

 
Thread Tools
cherrybomb

 
Member Since: Apr 28, 2009
Posts: 2
cherrybomb is on a distinguished road

cherrybomb is offline
I go to this university where they use Bradford Wireless Network to control wireless use. For macs, it takes 4-5 minutes to obtain 10.5... IP from 10.9. The easiest way for me to avoid waiting is to go through System Preferences, Network, and renew DHCP lease there. But it gets highly annoying doing it so many times during the day after I sign in.

Is there a script that could execute this faster? I tried googling, but I couldn't find any good results.
QUOTE Thanks
Collin Bl

 
Collin Bl's Avatar
 
Member Since: Apr 07, 2009
Location: Napier NZ
Posts: 3,281
Collin Bl is a jewel in the roughCollin Bl is a jewel in the roughCollin Bl is a jewel in the rough
Mac Specs: 27 iMac i5, MBP 13 & iMac 20, 2TB dual TC, AppleTV, iPh4S

Collin Bl is offline
First, why not try adding DNS numbers of your setup that you are using at Uni. Make a location for Uni go into Sys Prefs/Airport/Location/Edit Locations and then with the location selected go into Sys Prefs/Airport/Advanced/DNS and put in the DNS numbers for you ISP.
Like this;
202.27.158.40
202.27.156.72
Have a location for home with settings and another for Uni with its settings.
Let us know if that helps.
QUOTE Thanks
scathe

 
scathe's Avatar
 
Member Since: Jan 12, 2009
Location: Prague, Czech Republic
Posts: 1,096
scathe is a jewel in the roughscathe is a jewel in the rough
Mac Specs: 2,4Ghz 15" unibody

scathe is offline
you could run an AppleScript, it has a function built in, called do shell script:
do shell script "ipconfig set en0 BOOTP" with administrator privileges
do shell script "ipconfig set en0 DHCP" with administrator privileges
(just copy the above 2 lines into Script Editor)

basically, you will run the same thing you would run from Terminal, but you can compile it and sava as a .app and run that with spotlight or anything .. this will run and just ask you for a password
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
yea, I was thinking about setting to bootp then reset to dhcp. That'd definitely do it!

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
cherrybomb

 
Member Since: Apr 28, 2009
Posts: 2
cherrybomb is on a distinguished road

cherrybomb is offline
I tried both the DNS numbers and the shell script. Neither worked. I put the script into the editor and saved it as an app. After executing it and typing in my password, my IP didn't change. I'm trying to figure this out because it's so tedious to go through the steps every time I want to use the wireless.
QUOTE Thanks

Post Reply New Thread Subscribe


« Network Access | looking 4 help/tutorial on setting up wireless transfer mac2mac via net »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
help with DHCP IP renew multini Switcher Hangout 0 03-18-2009 07:17 AM
DHCP issue mastertag Internet, Networking, and Wireless 14 08-25-2008 03:57 PM
Really Need Help Regarding MAC Script MACSCRIPT OS X - Apps and Games 2 08-13-2008 07:15 AM
Break an apartment lease gary61071 Schweb's Lounge 11 03-31-2008 01:22 AM
apple script to greet me off stand by jakeroberts OS X - Development and Darwin 0 04-29-2007 12:34 PM

All times are GMT -4. The time now is 06:16 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?