View Full Version : How to set static ip-address in terminal
mozimuyu
October 13th, 2009, 09:39 AM
hi,
i am a newer ,i want to know how to set static ip-address in mac os x leopard
thx
ElDiabloConCaca
October 13th, 2009, 09:52 AM
From the GUI, you can set it using the "Network" pane of the System Preferences.
From the command-line, you can control this with the "ifconfig" program. There is a ton of information on it if you perform a simple Google search for "Mac OS X ifconfig".
mozimuyu
October 13th, 2009, 10:05 AM
From the GUI, you can set it using the "Network" pane of the System Preferences.
From the command-line, you can control this with the "ifconfig" program. There is a ton of information on it if you perform a simple Google search for "Mac OS X ifconfig".
i know how to set DHCP ,just execute :ipconfig set en0 DHCP
and i have executed :man ipconfig
i find the info :ipconfig set interface-name (MANUAL | INFORM) ip-address subnet-mask
so how to set Router and DNS ?
ElDiabloConCaca
October 13th, 2009, 10:10 AM
Looks like "scutil" may do that:
http://www.macosxhints.com/article.php?story=20050621051643993
mozimuyu
October 13th, 2009, 10:23 AM
Looks like "scutil" may do that:
http://www.macosxhints.com/article.php?story=20050621051643993
thx very much
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by
vBSEO 3.3.0 RC1