- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing IP's via scripts
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
Forums
Discussions
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
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
01-06-2003 08:21 AM
01-06-2003 08:21 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:30 AM
01-06-2003 08:30 AM
Re: Changing IP's via scripts
The best way is to update your /etc/rc.config.d/netconf file.
#cp /etc/rc.config.d/netconf /etc/rc.config.d/netconf.old
#vi /etc/rc.config.d/netconf
Make changes to reflect your new IP address and netmasks.
#shutdown -h now
Let your network people change the configuration and bring up the server. It should come up with the configuration you specified in netconf file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:44 AM
01-06-2003 08:44 AM
Re: Changing IP's via scripts
Dont copy the netconf file to netconf.old in the same directory. Copy it somewhere else like /tmp instead. I did exactly the same thing once and as the system came back up, the netconf file was read first and then the netconf.old file was read, putting all of the network settings back to what I had changed them from. Took me a while to realise what was happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:49 AM
01-06-2003 08:49 AM
Re: Changing IP's via scripts
you will need to edit the following files.
/etc/rc.config.d/netconf
/etc/hosts
/var/adm/inetd.sec
edit the files to reflect the new IPs and netmask. shutdown the systems the put then on the new network and they should come up fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:54 AM
01-06-2003 08:54 AM
Re: Changing IP's via scripts
So, though it doesn't affect here, I agree that it is a good practice not to keep the backup files in /etc/rc.config.d directory.
Good point Alpha Numeric Systems.
-Sri