- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change IP with shutting down server
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-23-2003 06:29 AM
10-23-2003 06:29 AM
What are all the files that need to be modified, and how do you do it with out restarting the server...
Besides going into sam...
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 06:34 AM
10-23-2003 06:34 AM
Re: Change IP with shutting down server
You can start with these files:
/etc/hosts
/etc/rc.config.d/netconf
You can also use:
set_parms ip_address
I prefer to edit the files by hand.
As for not restarting the server, I haven't really tried that one before. I guess you could stop and start inetd, but that could get to be fun.
How will you move the server to another building without shutting it down? :)
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 06:37 AM
10-23-2003 06:37 AM
Re: Change IP with shutting down server
It may be possible to shut down the network connection with "ifconfig lan0 down", then reconfigure it with "ifconfig lan0
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 06:39 AM
10-23-2003 06:39 AM
Re: Change IP with shutting down server
# /sbin/init.d/net stop
# /sbin/init.d/net start
The way I would do it would be to modify the files (/etc/hosts and /etc/rc.config.d/netconf) before you shut the machine down to move it. Then when you get it to the new location, connect it to the network and power it up, you will be ready to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 06:40 AM
10-23-2003 06:40 AM
SolutionFirst of all, you'd have to do this via a console connection of course, but the procedure would basically be:
1) Stop the network with /sbin/init.d/net stop
2) Verify all NICs are down with netstat -in
If any are still up run ifconfig lanX down & ifconfig lanX unplumb to stop them & remove existing IP
3) Edit /etc/rc.config.d/netconf & enter the new IP(s) & new routes - they're both in there.
4) Restart the network with /sbin/init.d/net start and verify new IPs & routes are correct. I would have it disconnected from the now improper subnet before restarting.
5) Edit any /etc/hosts files necessary (including other systems) & have this servers NIS or DNS entries changed as well.
6) Optionally reboot the server to make sure all is set properly at bootup.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 06:44 AM
10-23-2003 06:44 AM
Re: Change IP with shutting down server
You have to edit the files /etc/hosts and /etc/rc.config.d/netconf.
The /etc/hosts file has the ip address of the server and the gateway address. The netconf file has the ip address, gateway address, netmask and the broadcast address.
You should also modify the /etc.resolv.conf if this system is moving to a different domain and if you are using the dns resolver to do the nslookup.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 06:56 AM
10-23-2003 06:56 AM
Re: Change IP with shutting down server
take a make_tape_recovery backup and then edit /etc/rc.config.d/netconf
It should be pretty intuitive from there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2003 06:59 AM
10-23-2003 06:59 AM
Re: Change IP with shutting down server
Make your changes as others have suggested, then:
# shutdown -y now
This will take you to single user mode.
Once there:
# /sbin/init 3
To go back to multi-user, which in turn should reconfig your lan interface with the new settings from /etc/rc.config.d/netconf.
This is quite a bit faster than a hardware reboot.
HTH.