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

by LinuxTitli on October 29, 2005 · 2 comments

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:

Share this with other sys admins!
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 }

1 Michael May 24, 2007

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

Reply

2 Sampath November 11, 2011

How do i configure the ip for Lan0

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 10 + 8 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: