Operating System - HP-UX
1834269 Members
93514 Online
110066 Solutions
New Discussion

making ip address changes

 
Dottie Hamilton
Contributor

making ip address changes

Dumb question, but I think I'm missing something.
On HP when I change the IP address or add a NIC card with an additional IP address; what other changes to I need to make?
Its been awhile & don't want to miss anything.

Thanks to all
11 REPLIES 11
Vladislav Demidov
Honored Contributor

Re: making ip address changes

You have to change /etc/hosts file
Sanjay_6
Honored Contributor

Re: making ip address changes

Hi,

If you do the change the ip addresses using sam it should update the /etc/hosts file on its own. you should not have to do any modifications. If you modify the lan card settings using sam, the same get updated in /etc/rc.config.d/netconf. If you want to modify the same manually, you can edit the file and do the changes.

Hope this helps.

Regds


George_Dodds
Honored Contributor

Re: making ip address changes

You can also change the IP address by editing the /etc/rc.config.d/netconf file and then rebooting the machine.
This is easier than running set_parms if you are not changing anything else like NIS, your time zone and whatever else set_parms prompts you for.

George_Dodds
Honored Contributor

Re: making ip address changes

Above is for if you are changing the server ip.
Dottie Hamilton
Contributor

Re: making ip address changes

what if I am adding an additional NIC card for a second ip address

thank so much
George_Dodds
Honored Contributor

Re: making ip address changes

It's just my post thats for the server ip change, the other posts are correct for additional lan card.

Just me being daft :)
Helen French
Honored Contributor

Re: making ip address changes

Hi,

The best way to do this is SAM. Before invoke SAM, do an 'ioscan -fn' and findout the new LAN card is claimed.

If you configure through SAM, that will do all necessary update for you.

HTH,
Shiju
Life is a promise, fulfill it!
Steve Labar
Valued Contributor

Re: making ip address changes

Make sure you remember to update your name server also, whether it is a DNS or NIS server.

Steve
Sanjay_6
Honored Contributor

Re: making ip address changes

Hi Dottie,

If you add another NIC to the system, you can modify its ip etc using SAM. just make sure the NIC is shown as claimed in the "ioscan -fn" output.

If you want to manually add the info for this lan card you can edit the /etc/rc.config.d/netconf file and modify this info,

INTERFACE_NAME[1]="new_ppa"
IP_ADDRESS[1]="new_ip"
SUBNET_MASK[1]="new_subnet"
BROARDCAST_ADDRESS[1]="_new_broadcast"
INTERFACE_STATE[1]="1/0"
DHCP_ENABLE[1]="1/0"

Note the "1" in closed brackets. "0" refers to first lan card, 1 for second and so on.

Hope this helps.

Regds

Kristopher March
Regular Advisor

Re: making ip address changes

I've got a V class running HP-UX 11.00
It also has a console attached to it and I need to change the ip address of it.
I understand I can use SAM to do this. Does it require a reboot on the console box?
Is there anything I'm missing?
"This ain't no burger flippin job!"
fg_1
Trusted Contributor

Re: making ip address changes

Dottie

just change the /etc/rc.config.d/netconf file and this will change the lan cards.

Gl.