- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing IP address via command
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-20-2006 02:54 AM
тАО03-20-2006 02:54 AM
Last week, I changed IP addresses on a rp7405 server /w the following steps.
[original conf]
lan0: 10.10.10.10/24
lan1: 20.20.20.20/24
[target conf]
lan0: 20.20.20.20/24
lan1: 10.10.10.1024
[each steps that I did]
# ifconfig lan0 down
# ifconfig lan0 unplumb
# ifconfig lan1 down
# ifconfig lan1 unplumb
# ifconfig lan0 20.20.20.20 255.255.255.0 20.20.20.1
# ifconfig lan0 plumb
# ifconfig lan0 up
# ifconfig lan1 10.10.10.10 255.255.255.0 10.10.10.1
# ifconfig lan1 plumb
# ifconfig lan1 up
and after reconfiguration,
# netstat -in
# netstat -rn
showed correct information that I want.
All NIC's link status were OK.
but afterall cannot ping anywhere except NIC itself. ie. ping 10.10.10.10 on lan1...
I couldn't solve the problem, so I resolv it /w the help of SAM...
Did I miss the step?
Or are there any miss/wrong steps?
Thank you...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2006 03:16 AM
тАО03-20-2006 03:16 AM
Solution# ifconfig lan0 down
# ifconfig lan0 unplumb
# ifconfig lan1 down
# ifconfig lan1 unplumb
# ifconfig lan0 plumb
# ifconfig lan0 20.20.20.20 255.255.255.0 20.20.20.1 up
# ifconfig lan1 plumb
# ifconfig lan1 10.10.10.10 255.255.255.0 10.10.10.1 up
and change the /etc/rc.config.d/netconf file.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2006 04:03 AM
тАО03-20-2006 04:03 AM
Re: Changing IP address via command
The step you were missing is the route delete and route add commands. To get the default routers to survive a reboot you would have had to change /etc/rc.config.d/netconf so the correct instance [0] pointed to the correct router.
Sam is a good way to change the addresses because it remembers everything. If you want to change the address from a command line take a look at man set_parms and that script will ask you all the right questions and modify all of the right files. i.e.
set_parms initial
One more thing did you remember to change the IP address in /etc/hosts to reflect any name/address change?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2006 04:39 AM
тАО03-20-2006 04:39 AM
Re: Changing IP address via command
I would conclude that the settings you input are not compatible with the target lan. Its possible you have the cables crossed. Try reversing them.
Also, you might want to run a quick hardware check on the two lan cards with cstm, mstm, or xstm
I doubt however that both of them are bad.
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
тАО03-20-2006 12:44 PM
тАО03-20-2006 12:44 PM
Re: Changing IP address via command
then restart net service:
#/sbin/inet.d/net stop
#/sbin/inet.d/net start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2006 03:07 PM
тАО03-20-2006 03:07 PM
Re: Changing IP address via command
/etc/rc.config.d/netconf should be modified manually to as to retain the changes.
don't forget to backup the netconf file prior to any modifications.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 08:04 PM
тАО03-22-2006 08:04 PM