Operating System - HP-UX
1826188 Members
2683 Online
109691 Solutions
New Discussion

Re: HP-UX IP address and gateway

 
SOLVED
Go to solution
Ngoh Chean Siung
Super Advisor

HP-UX IP address and gateway

May I know what is the command to view the HP-UX IP address, server name, gateway and subnet mask? And also on how to change these setting? I have used 'netstat -rn' but the result is quite blur to identify.

Thanks...
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: HP-UX IP address and gateway

ifconfig lan0 for lan0 lan1 for lan1 etc

That will give you some.

To see the settings:

more /etc/rc.config.d/netconf
Its all in that file.
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
Ngoh Chean Siung
Super Advisor

Re: HP-UX IP address and gateway

ifconfig lan0 for lan0 lan1 for lan1 etc

For the above command, I need to enter the exact command in HP-UX or ???

I can see all the setting through 'more /etc/rc.config.d/netconf'

It means that I just to modify all the setting in this file, save it and reboot my server to take the effect. Am I right?
Steven E. Protter
Exalted Contributor
Solution

Re: HP-UX IP address and gateway

modify the file /etc/rc.config.d/netconf

keep a copy, but not in that directory

from the console:
/sbin/init.d/net stop
/sbin/init.d/net start

better yet, boot the box.

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
Naveej.K.A
Honored Contributor

Re: HP-UX IP address and gateway

hi,

IP Address and Subnet Mask
netstat -in

Server name:
uname -n

To change these settings...

IP Address and Subnet mask:
set_parms ip_address

To change the gateway and DNS
set_parms addl_netwrk

To change the hostname:
set_parms hostname

set_parms initial
can be used to change all these settings

Thanks and Regards
Naveej
practice makes a man perfect!!!
Michael Tully
Honored Contributor

Re: HP-UX IP address and gateway

Changing network settings can be a frightful experience. If you have any hesitation, your better off using SAM. A system reboot will be required, unless you do this from the system console.
Anyone for a Mutiny ?