Operating System - HP-UX
1821246 Members
2815 Online
109632 Solutions
New Discussion юеВ

how to change IP Address on HPUX 10.20

 
Venkat_33
Frequent Advisor

how to change IP Address on HPUX 10.20

Hi,

I changed the IPAddress but its showing eroor
Error lan0 interface ifconfig

which daemons i want to run for network

and also tell me
how to change iP address
12 REPLIES 12
Robert-Jan Goossens
Honored Contributor

Re: how to change IP Address on HPUX 10.20

Venkat,

You can use the set_parms command

# set_parms ip_address

Best regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: how to change IP Address on HPUX 10.20

Shalom Venkat,

What did you do to change it the first time.

Permanent change:
vi /etc/rc.config.d/netconf

Restart the system or at least networking after this:
/sbin/init.d/net stop
/sbin/init.d/net start

ifconfig command to make a temporary change, see the man page for details

set_parms may let you do these changes interactively.

SAM can also do it for you but often makes mistakes.

See /var/adm/syslog/syslog.log for details on the actual problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: how to change IP Address on HPUX 10.20

Hi:

The simplest way to change the IPAddress is to run:

# /sbin/Set_parms ip_address

A reboot is required.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: how to change IP Address on HPUX 10.20

Minor correction:

I believe it's

/sbin/set_parms ip_address

without the capital "s".


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: how to change IP Address on HPUX 10.20

Hi (again):

Yup, thanks, Pete. My brain meant :

# /sbin/set_parms ip_address

...while my finger tweaked the second "s" erroneously :-))

Regards!

...JRF...
Yogeeraj_1
Honored Contributor

Re: how to change IP Address on HPUX 10.20

hi vencat,

it is also advisable to do it from the server console also.

also, backup the config files just in case...

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Venkat_33
Frequent Advisor

Re: how to change IP Address on HPUX 10.20

New IP is assigns on lo0 interface

but i want to change to lan0 how to do
Steven E. Protter
Exalted Contributor

Re: how to change IP Address on HPUX 10.20

My fingers are getting fatter too, even after 5 months without a car, walking up and down hills makes me lose weight.

What's up with that?

I reccommend rebooting after anything other than a SAM network change or set_parms ip_address

Both of those commands are smart enough to straigten out neworking.

If you get funky rpc or NFS errors, boot it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Venkat_33
Frequent Advisor

Re: how to change IP Address on HPUX 10.20

sorry for trouble,

i did what u said
set_parms ipaddress after reboot

#netstat -rn output

Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.20.11.145 127.0.0.1 UH 0 lo0 4136

The New Ipadderss is assigning to lo0 Interface
James R. Ferguson
Acclaimed Contributor

Re: how to change IP Address on HPUX 10.20

Hi (again):

Did the change in IP address you made change your default gateway? I suspect so. I don't see a default gateway. You should run:

# /sbin/set_parms addl_netwrk

...and verify and/or change settings appropriately.

Regards!

...JRF...
Venkat_33
Frequent Advisor

Re: how to change IP Address on HPUX 10.20

If i am using

ifconfig lan0 inet 172.21.134.26

route add 172.21.134.26 172.21.134.1

its working temporarly but how should i go for permanently

but /etc/rc.config.d/netconf i entered IP address






James R. Ferguson
Acclaimed Contributor

Re: how to change IP Address on HPUX 10.20

Hi (again):

If you made your updates dynamically, then yes, absolutely, you need to make the appropriate changes in '/etc/rc.config.d/netconf'. Make sure that you have defined ROUTE_DESTINATION, ROUTE_GATEWAY and ROUTE_COUNT for instance.

Regards!

...JRF...