[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

setting static IPs via commandline

Posted on 2004-09-22
3
Medium Priority
?
315 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
[X]
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
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
weed earned 2000 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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

649 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