Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't find how to set a static IP on the local network ( on HP-UX using the command line. I want the address to be kept after the server reboots, so it seems the use of ifconfig will lose the IP configured.

share|improve this question
up vote 3 down vote accepted

The recommended way for a novice is to use SAM -> Network Configuration. However, since you have stated you want to use the command line, use set_parms:

# set_parms ip_address

Alternatively edit /etc/rc.config.d/netconf and /etc/hosts manually.

See man set_parms for more information.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.