- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change IP address ?
Operating System - HP-UX
1752597
Members
5265
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО02-25-2011 11:00 AM
тАО02-25-2011 11:00 AM
We need to move our server over to a new network from the current one. Can I just edit /etc/hosts put in the new IP address, edit /etc/rc.config.d/netconf enter the new IP, gateway and subnet for that interface, then restart /sbin/init.d/net and have the changes take?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 11:39 AM
тАО02-25-2011 11:39 AM
Re: Change IP address ?
Hi,
Change IP address with ifconfig on that interface.... Edit /etc/rc.config.d/netconf... Use set_parms and assign same IP address... This should pretty much update everything... And ofcourse for netconf to be "re-read" you need to start and stop the service. Just need to do a few of em but doin' all keeps you on the safe side...
Since you have mentioned routes... you should take a nice look at set_parms.
Regards
Ismail Azad
Change IP address with ifconfig on that interface.... Edit /etc/rc.config.d/netconf... Use set_parms and assign same IP address... This should pretty much update everything... And ofcourse for netconf to be "re-read" you need to start and stop the service. Just need to do a few of em but doin' all keeps you on the safe side...
Since you have mentioned routes... you should take a nice look at set_parms.
Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2011 11:08 AM
тАО02-28-2011 11:08 AM
Solution
The procedure you have will work (I've done it many times),
EXCEPT:
the net script only ADDS routes.
Thus after you run 'net start',
you'll still have the previous defaut route in the route table:
# netstat -rvn | grep def
default/0.0.0.0 10.1.0.198 UG 0 lan0 1500
default/0.0.0.0 10.1.0.199 UG 0 lan0 1500
so, you'll have to delete the old one:
# route delete net 0.0.0.0 10.1.0.198
# netstat -rvn | grep def
default/0.0.0.0 10.1.0.199 UG 0 lan0 1500
Note that DNS would also need to be changed,
if you use it in your network.
EXCEPT:
the net script only ADDS routes.
Thus after you run 'net start',
you'll still have the previous defaut route in the route table:
# netstat -rvn | grep def
default/0.0.0.0 10.1.0.198 UG 0 lan0 1500
default/0.0.0.0 10.1.0.199 UG 0 lan0 1500
so, you'll have to delete the old one:
# route delete net 0.0.0.0 10.1.0.198
# netstat -rvn | grep def
default/0.0.0.0 10.1.0.199 UG 0 lan0 1500
Note that DNS would also need to be changed,
if you use it in your network.
"The lyf so short, the craft so long to lerne." - Chaucer
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP