Results 1 to 5 of 5
  1. #1

    Member Since
    Apr 28, 2009
    Renew DHCP lease script
    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.

  2. #2

    Collin Bl's Avatar
    Member Since
    Apr 07, 2009
    Napier NZ
    27 iMac i5, MBP 13 & iMac 20, 2TB dual TC, AppleTV, iPh4S
    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;
    Have a location for home with settings and another for Uni with its settings.
    Let us know if that helps.

  3. #3

    scathe's Avatar
    Member Since
    Jan 12, 2009
    Prague, Czech Republic
    2,4Ghz 15" unibody
    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

  4. #4

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Tucson, AZ
    Way... way too many specs to list.
    yea, I was thinking about setting to bootp then reset to dhcp. That'd definitely do it!
    This machine kills fascists
    Got # ? phear the command line!

  5. #5

    Member Since
    Apr 28, 2009
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What Does "Renew Lease" Mean?
    By goddess_of_go in forum iPad Hardware and Accessories
    Replies: 13
    Last Post: 12-18-2014, 05:42 AM
  2. How do I check the time limit on DHCP lease on OS X mavericks?
    By Nguithi in forum Internet, Networking, and Wireless
    Replies: 1
    Last Post: 05-29-2014, 04:05 PM
  3. Need to Renew DHCP License every few minutes
    By NealF in forum Internet, Networking, and Wireless
    Replies: 2
    Last Post: 01-18-2014, 09:56 PM
  4. Renew dhcp lease help
    By dans1950 in forum Internet, Networking, and Wireless
    Replies: 4
    Last Post: 11-10-2011, 11:24 PM
  5. help with DHCP IP renew
    By multini in forum Switcher Hangout
    Replies: 0
    Last Post: 03-18-2009, 08:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts