Operating System - HP-UX
1835229 Members
2339 Online
110078 Solutions
New Discussion

set ipaddress and gateway

 
SOLVED
Go to solution
Jeff Hagstrom
Regular Advisor

set ipaddress and gateway

I have a HPK460/9000 running hpux 11.00 and I need to change the ip address and the gateway. How do I change them?
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: set ipaddress and gateway

Jeff,

Run "/sbin/set_parms ip_address" (don't reboot after), then run "/sbin/set_parms addl_netwrk" (do reboot this time).


Pete

Pete
RAC_1
Honored Contributor

Re: set ipaddress and gateway

/etc/set_parmas ip_address

Anil
There is no substitute to HARDWORK
Robert Bennett_3
Respected Contributor

Re: set ipaddress and gateway

set_parms ip_address

then

set_parms addl_netwrk

this will allow you to change subnet mask and Default gateway - a tui will guide you through.

then

reboot

That should get you changed.
"All there is to thinking is seeing something noticeable which makes you see something you weren't noticing which makes you see something that isn't even visible." - Norman Maclean
Devender Khatana
Honored Contributor

Re: set ipaddress and gateway

Hi,

Can be done through SAM also.
Another way is to manually change /sbin/rc.config.d/netconf file and /etc/hosts file and restart network services or a reboot.


HTH,
Devender
Impossible itself mentions "I m possible"
Bharat Katkar
Honored Contributor

Re: set ipaddress and gateway

Hi,
Probably reboot is not required, see if this works for you:

1. Change ip address using ifconfig.
Connect thr' console and and do.
# ifconfig lanx down
# ifconfig lan netmask UP

2. Use route delete and route add commands to change the gateway. See man route.
For adding route
# route delete
# route add

Then edit /etc/rc.config.d file accrodingly.


Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Suraj Singh_1
Trusted Contributor

Re: set ipaddress and gateway

Another way to do this is to modify "/etc/rc.config.d/netconf" file directly.

After modifying, you should reboot the machine for the changes to take affect.

NOTE: Take care of the name resolution before changing the IP and Gateway.

Regards
What we cannot speak about we must pass over in silence.