1829014 Members
2488 Online
109986 Solutions
New Discussion

Changing IP address

 

Changing IP address

I have a HP Visualie B132L machine, I need to move this one to a new loccation, that is going to be a new segment in our network. This needs I have to change the IP address on this machine ( IP, Mask and Gateway). How do I change the IP address, this machine is running HPUX 10.20. Could sombody can help me with this please.
no personal quote
11 REPLIES 11
John Carr_2
Honored Contributor

Re: Changing IP address

Hi

simple go to /etc put new IP address in hosts file instead of old.

go to /etc/rc.config.d and put new gateway IP in netconf

shutdown system , move to new location and reboot.

good luck
John.
John Carr_2
Honored Contributor

Re: Changing IP address

Hi

also check you dont have the IP address instead of the hostname at the bottom of the /var/adm/inetd.sec file as this will stop it from booting properly.

cheers
John.
pap
Respected Contributor

Re: Changing IP address

Hi,
Just follow the steps below :

#cd /etc/rc.config.d
# vi netconf and edit following lines in this file.

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="10.2.0.33"
SUBNET_MASK[0]="0xfffffe00"
BROADCAST_ADDRESS[0]="10.2.1.255"
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

Put repective values for IP and Subnets etc....and save the file.

1. edit /etc/hosts file and add your new IP address and hostname entry in that file.

Then reboot the machine or do following of you do not want to reboot it

#/sbin/init.d/net stop
#/sbin/init.d/net start


Thanks,
-Piyush

"Winners don't do different things , they do things differently"
Rusty Sapper
Frequent Advisor

Re: Changing IP address

After you reboot with the new IP address. do a
netstat -in
this will tell you the curreny IP address assigned to the LAN card.


-Rusty
Jeff Schussele
Honored Contributor

Re: Changing IP address

Don't forget that if your network uses DNS (or NIS) to inform the admins of the change.

You can also use:

#set_parms ip_address

to change your IP.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Krishna Prasad
Trusted Contributor

Re: Changing IP address

The above manual steps will work,but

set_parms ip_address may be safer.

You still will need to make any changes to your host or dns entry. If you don't use dns and other servers talk to this machine, the remote host file will need changed.
Positive Results requires Positive Thinking
Tom Dawson
Regular Advisor

Re: Changing IP address

Raghuram,

It might be cleaner/easier ( if you are not familiar with the system ) to go into Sam, Networking and Communications.

Then select "Internet Addresses" to update the host file.

Then select "Network Interface Cards" to change the IP address on your NIC. This updates /etc/rc.config.d/netconf.

HTH,
Tom
MANOJ SRIVASTAVA
Honored Contributor

Re: Changing IP address

Raghuram


Try this


set_parms ip_address


and you have to erboot the system and then you are good to go.


Manoj Srivastava
castro_2
Regular Advisor

Re: Changing IP address

You can use the SAM in Networking or edit the file /etc/rc.config.d/netconf and after is not necesary reboot the machine, you can use /sbin/init.d/ net start

Regards
federico_3
Honored Contributor

Re: Changing IP address

The easiest way, to me, is

#set_parms ip_address

Federico

Magdi KAMAL
Respected Contributor

Re: Changing IP address

Hi,



1.
#ifconfig lan# inet netmask broadcast up

The character "#" is a value of 0,1, ... up to the inteface number that you want to configure.

2.
Vi the file /etc/rc.config.d/netconf and modify the following entry :

IP_ADDRESS[#]=
SUBNET_MASK[#]=
BROADCAST_ADDRESS[#]=
ROUTE_GATEWAY[#]=

The character "#" is the instance number of the interface number that you are reconfiguring ( is a value 0,1,2, ...)

3. Reboot your system and midification will take effect after that.

Magdi