Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 553
  • Last Modified:

Change IP on Ultra 5 workstation

What's the easiest way to change an IP address of an existing Ultra 5 workstation with Solaris 7?  All other params should stay the same, gateway, netmask etc...

Should this work by itself?

ifconfig hme0 XXX.XXX.XXX.XXX broadcast ZZZ.ZZZ.ZZZ.ZZZ netmask YYY.YYY.YYY.YYY

Does ifconfig update /etc/hosts?  Is there any manual intervention?
0
nsome
Asked:
nsome
1 Solution
 
tfewsterCommented:
See yuzh's answer in http://www.experts-exchange.com/Operating_Systems/Solaris/Q_21141856.html

(ifconfig does _not_ update /etc/hostname.hme0 or /etc/hosts)
0
 
cagriCommented:
Please only update the existing IP address on /etc/hosts file.

ifconfig updates the IP address however, /etc/hosts is checked upon rebooting the system to find the IP address, thus IP config can be used for momentary updates (for example, after updating /etc/hosts, you may use ipconfig to make the new IP effective without rebooting)

Hope this helps.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now