- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Best way to change hostname & 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
10-01-2001 10:54 AM
10-01-2001 10:54 AM
HP-UX 11.0, N4000
I'm going to replace our old N4000 with a new one. The new one is configured, tested and ready all is left to do is change the ip address/hostname so that users start logging in the new N4000. What (and why) would be the best method to do this?
a) "/sbin/set_parms initial" and reboot.
b) edit the /etc/rc.config.d/netconf file and change the appropiate parameters and then reboot.
c) Is there any other way?
Thanks in advance.
Luis
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 11:02 AM
10-01-2001 11:02 AM
Re: Best way to change hostname & ip address
"/sbin/set_parms initial" should do the job you want. You can manully edit /etc/rc.config.d/netconf for other information or you can do that thru sam --> networking and communication.
hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 11:02 AM
10-01-2001 11:02 AM
Re: Best way to change hostname & ip address
I don't believe there is a best way to this, its just a matter of preference. Some people prefer just running /sbin/set_parms and not deal with editing multiple files or run multiple commands.
But both the ways do work, i believe its just a matter of preference. But if you are editing files, don't forget /etc/hosts.
-Regards
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 11:04 AM
10-01-2001 11:04 AM
Re: Best way to change hostname & ip address
If you use your option B, then you must make sure that you modify /etc/hosts as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 11:05 AM
10-01-2001 11:05 AM
Re: Best way to change hostname & ip address
You can modify the files yourself, but I would recommend using set_parms and then manually checking the files. Below are a few that I would double check.
/etc/hosts
/etc/nsswitch.conf
/etc/resolv.conf
/etc/rc.config.d/netconf
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 11:06 AM
10-01-2001 11:06 AM
SolutionRunning /sbin/set_parms is easy, but so is editing /etc/rc.config.d/netconf -- the choice is really up to you.
Don't forget to change your ROUTE_GATEWAY and your SUBNET_MASK as necessary.
If you are running DNS on the server that is changing, be sure to modify /etc/resolv.conf as necessary on *other* servers.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 11:12 AM
10-01-2001 11:12 AM
Re: Best way to change hostname & ip address
Also look out for the /etc/nsswitch.conf file.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 11:25 AM
10-01-2001 11:25 AM
Re: Best way to change hostname & ip address
Otherwise, if you can not afford to reboot, you'd have to edit /etc/rc.config.d/netconf, /etc/hosts and then bounce several daemons, including (but not limited to) rpc*, nfsd, nis client/server, swagentd, and a bunch more that I'm missing.
-Santosh