HP-UX desktop is very sensitive to networking changes such as hostname and IP address, I learned it hard way :( So first you need to kill HP-UX desktop (CDE) with following command (login as root and open terminal) :
# /sbin/init.d/dtlogin.rc stop
Next open the /etc/rc.config.d/netconf file and make changes to HOSTNAME and IP address. Save the file.
# vi /etc/rc.config.d/netconf
HOSTNAME=myhpux INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=202.54.10.20 SUBNET_MASK[0]=255.255.255.0 BROADCAST_ADDRESS[0]=""
DHCP_ENABLE[0]="0"
Finally, you need to update the /etc/hosts file with correct IP and hostname:
# vi /etc/hosts
Reboot the system
# shutdown -ry 0
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins

- My 10 UNIX Command Line Mistakes
- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
Facebook it - Tweet it - Print it -
We're here to help you make the most of sysadmin work. So, subscribe!

{ 2 comments… read them below or add one }
HP-UX: How Do I de-configure one of my 2 Lan cards?
How do i configure the ip for Lan0