Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Remotely change static IP via the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remotely change static IP via the command line
Authored by: jzhao on Jan 25, '05 02:21:06PM

I ran into a similar situation as the original poster.

I need to assign static IP address with shell script. I tried ipconfig. It only works half way. The change was propagated by configd. I can see that in system.log. But it didn't get kept. The file /Library/Preferences/SystemConfiguration/preferences.plist was not modified. The old setting came back on reboot.

What I did is: sudo ipconfig set en0 MANUAL 192.168.1.66 255.255.0.0

What else do I need? hanks in advance.



[ Reply to This | # ]