- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing IP Addresses on Servers
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
тАО04-18-2001 06:33 AM
тАО04-18-2001 06:33 AM
Peter
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 06:38 AM
тАО04-18-2001 06:38 AM
Re: Changing IP Addresses on Servers
/sbin/initd.d/net [stop|start].
Or set_parms tool interactive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 06:38 AM
тАО04-18-2001 06:38 AM
Re: Changing IP Addresses on Servers
The easiest way is by using sam
Networking and Communications
Network interface cards
select the card that you wish to change the address on.
Actions
Modift
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 06:39 AM
тАО04-18-2001 06:39 AM
Re: Changing IP Addresses on Servers
#ifconfig lan0
More permanent changes can be made with
#set_parms ip_address
This changes all neccessary files.
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 06:39 AM
тАО04-18-2001 06:39 AM
Re: Changing IP Addresses on Servers
hpux -is
Then when you are in single user mode do a mount -a. Change into the /etc/rc.config.d directory and use vi to edit your network related settings in the netconf file. When you are done save the file and either issue the reboot command or do an init 3 to bring the system into multi user mode. Whatever you do, do not user set_parms from single user mode. This caused me many problems on one or two occasions. Hope this helps.
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 06:39 AM
тАО04-18-2001 06:39 AM
Re: Changing IP Addresses on Servers
or as root do:
/sbin/set_parms -? for help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 06:40 AM
тАО04-18-2001 06:40 AM
Re: Changing IP Addresses on Servers
This will bring up a menu type interface using all characters.
Choose Networking and Communications, Network Interface Cards, highlight the card you want to change the address on, and then tab and arrow to actions, and select modify. That will allow you to change your IP address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2001 06:53 AM
тАО04-18-2001 06:53 AM
SolutionDo this from the console. If you mod the IP via telnet, you'll lose IP connectivity, and you won't be happy.
---WAY 1---
# sam
->Networking and communication
->Network Interface Cards
[Select your NIC card]
Actions -> Modify
Change the IP.
Your in luck. Since Microsoft had little or nothing to do with the design of HP-UX, you won't have to reboot ;-).
If you're using a default gateway, you need to mod the gateway. I think you can do this via sam, but I usually use route add/route delete from the command line.
e.g.
#route delete default a.b.c.d
#route add default a.b.c.d
(check man route to verify the syntax).
To make the change permanent, you'll need to add the route in
/etc/rc.config.d/netconf
Change these lines to reflect your situation:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=A.B.C.D
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
Again, sam may do this for you, I don't remember. (if sam works, it would probably update
/etc/rc.config.d/netconf
for you.
--WAY 2--
#set_parms ip_address
from the command line will also work
--WAY 3--
You can use ifconfig from the command line (man ifconfig for details). You'll need to
update the /etc/rc.config.d/netconf file. Look here:
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=A.B.C.D
SUBNET_MASK[0]=ADD.YOUR.NET.MASK
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
Don't forget to update the default route.
Your path depends on your comfort level. It wouldn't hurt to look through the config files, it'll help you understand how things are put together.