10.6 Network Bindings Script

Joined
Sep 27, 2010
Messages
1
Reaction score
0
Points
1
Periodically, I need to join an ad-hoc (computer to computer) wifi connection from the macbook pro to control/admin a piece of network hardware.

The device purposefully has a non-standard 192.168.x.x ip range. The device does not offer DHCP services, thus the process to connect to it is rather protracted and time consuming.

Does 10.6 support any unix like script that can invoke the commands to change the airport connection to the specified ad-hoc connection and set the appropriate tcp/ip static bindings for the airport adapter? Then have another script to return the bindings to their usual DHCP state?
 
Joined
May 22, 2005
Messages
2,159
Reaction score
67
Points
48
Location
Closer than you think.
Your Mac's Specs
Performa 6116 2GBSCSI 8MB OS 7.5.3
Like ipconfig and ifconfig?

Yes it does.

*edit

I assume you are referring to the Windows NET SH commands? If you want executable scripts (like .bat or.cmd) an easier method is using automator applications to run shell scripts. Open Automator and select Utilities from the left side and drag the Shell Script option to the right. Format the script syntax to fit your bill and save.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top