Changing network setting in OS X from the terminal
If you ssh into your OS X boxes, and are brave enough to be messing with the network (probably best to do networking work when you've got physical access, or a buddy who can it the power switch -- or a robot you can control remotely *WIN!*) you probably want to persist your changes, like an IP address settings and such, right?
Right.
Since editing conf files usually doesn't do much good on OS X (unless you've compiled the stuff yourself, and didn't use the nifty database-ish stuff OS X uses), you'll want to use the "networksetup" command.
Yup, that's it.
man networksetup
You'll need to be root to make changes, but with that command, you can set DHCP stuff, and whatnot.
So that's how you configure your OS X server network without a GUI.
Guess I should add some examples, but I'm too lazy right now. RTFM-page.

There are no comments for this entry.
[Add Comment] [Subscribe to Comments]