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:

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

🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig 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
  • Sampath Nov 11, 2011 @ 8:43

    How do i configure the ip for Lan0

  • Michael May 24, 2007 @ 10:31

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.