nixCraft Poll

Topics

HP-UX: How Do I configure the new Lan card configuration?

Posted by Vivek Gite [Last updated: October 29, 2005]

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

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Michael Says:

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

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.