I can't find how to set a static IP on the local network (192.168.xxx.xxx) 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.
Asked
Active
Viewed 2,236 times
1
![](../../users/profiles/6177.webp)
Ward - Reinstate Monica
- 12,788
- 28
- 44
- 59
![](../../users/profiles/44383.webp)
Serty Oan
- 715
- 1
- 7
- 15
1 Answers
3
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.
![](../../users/profiles/48068.webp)
upasaka
- 1,365
- 9
- 6