- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change IP address
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 11:20 PM
07-09-2002 11:20 PM
Change IP address
This is a Newbie Question, :-)
Would like to ask on how to change the IP address, Netmask and Gateways in HP-UX, what file should I edit.
Thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 11:22 PM
07-09-2002 11:22 PM
Re: Change IP address
Hi
the best way is to use command set_parms
set_parms ip_address
set_parms addl_netwrk
but if you want to do it manually do:
1. change ip address in /etc/hosts
2. modify entry in /etc/rc.config.d/netconf
it require reboot
regards seba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 11:30 PM
07-09-2002 11:30 PM
Re: Change IP address
you can use the command:
set_parms initial
you will get a GUI in which you can change all needed settings like IP- adress, subnet mask, gateway, DNS, hostname and so on. After these steps you will have to do a reboot.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 11:31 PM
07-09-2002 11:31 PM
Re: Change IP address
set_parms ip_address
will ask for your new IP and will ask for a reboot once changed - but answer N for now.
set_parms addl_netwrk will ask you to change the subnetmask and def gateway (and other stuff but you can answer N to what you dont want to change) but be creaful running this. We ran it when we changed our def gateway and subnetmask recently and it hung on ALL our HP servers we ran it on. I think that was because the new def gateway wasnt up and running yet, or because the new subnetmask wasnt valid yet and it tried to invoke them immediately.
Either way it didnt update the necessary files so in future we ran set_parms ip_address but for the def gateway and subnetmask we edited the config file directly (/etc/rc.config.d/netconf) and then rebooted. This worked fine and proved much more reliable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 11:43 PM
07-09-2002 11:43 PM
Re: Change IP address
use SAM to change the address/parameters for interface cards.
or
#ifconfig lan0
Modify the entry in /etc/rc.config.d/netconf
ROUTE_GATEWAY[0]=
regds
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 12:42 AM
07-10-2002 12:42 AM
Re: Change IP address
Hi,
If you ready to reboot the machine, then use
#set_parms initial
which ask you to set hostname, ip,gateway,subnet...
If don't want to reboot the machine,
1)edit /etc/hosts file,
replace the existing IP with new IP
2)cd /etc/rc.config.d
edit netconf file
replace the existing IP, netmask, and gateway with new addresses
3) cd /sbin/init.d
#./net.init stop
#./nettl stop
#./netstop
#./net start
#./nettl start
#./net.init start
will do your objective
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 12:06 PM
07-12-2002 12:06 PM
Re: Change IP address
Routing for gateway can be changed by
route add/delete default ip_address (of gateway)
If you want to make the changes permanent then edit the file /etc/rc.config.d/netconf