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

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

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • Michael May 24, 2007 @ 10:31

    HP-UX: How Do I de-configure one of my 2 Lan cards?

  • Sampath Nov 11, 2011 @ 8:43

    How do i configure the ip for Lan0

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum