Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

setting static IPs via commandline

Posted on 2004-09-22
3
306 Views
Last Modified: 2013-11-13
I have a mac osx powermac on my network that I access via commandline only.  Right now, its getting its address via DHCP...   I plan to restrict the range that my router assigns DHCP to, and give the mac a static ip outside of that range.  Once its static, I dont have to worry that my shell scripts are pushing to the wrong ip!  Does anyone know how I can change network settings via command line?

-meue
0
Comment
Question by:meuedyn
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
weed earned 500 total points
ID: 12128241
0
 

Expert Comment

by:dobbyduck
ID: 12129459

Telnet or SSH to the OS X machine and use ifconfig (man ifconfig) to configure the ip addresses.
You must be root. (enable in netinfo).
> ifconfig en0 192.168.1.66
this will change the ip of your machine to 192.168.1.66. You can also add the subnet mask and broadcast mask if required.

Dobby.
0
 
LVL 30

Expert Comment

by:weed
ID: 12129756
That's what the link I just posted says...
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MAC Management Software 8 86
Cannot connect Apple TV 4 to local wifi network 2 126
time machine 8 48
exchange support of mac 2 75
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question