HP-UX: Configure The New Lan Card [ HP-UX Networking]

in Categories UNIX last updated October 29, 2005

HP-UX unix desktop is very sensitive to networking changes such as hostname and IP address. I learned this hard way. First, you need to kill HP-UX desktop (CDE) with the following command. Open a terminal and login as root user.

# /sbin/init.d/dtlogin.rc stop
Next, open the /etc/rc.config.d/netconf file and make changes to HOSTNAME and IP address. Save and close the file.
# vi /etc/rc.config.d/netconf
Sample config:


Finally, you need to update the /etc/hosts file with correct IP and hostname:
# vi /etc/hosts
Reboot the system:
# shutdown -ry 0

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 2 comments/add one below):

2 comment

    Have a question? Post it on our forum!