- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Set IP and Hostname
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
02-19-2006 08:17 PM
02-19-2006 08:17 PM
May i know how to set a new IP and hostname at a server?
Please help.
Rgrds
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:21 PM
02-19-2006 08:21 PM
Re: Set IP and Hostname
You can run the command "set_params" to setup hostname and IP address for a new server.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:25 PM
02-19-2006 08:25 PM
Re: Set IP and Hostname
There are ample number of ways to do it.
The easiest of it is using the command....
set_params
The other way would be editing manually, /etc/rc.config/netconf, /etc/hosts files, which I discourage,if you are a new to HPUX arena.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:25 PM
02-19-2006 08:25 PM
Re: Set IP and Hostname
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=149249
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:27 PM
02-19-2006 08:27 PM
Re: Set IP and Hostname
Minor typo in above answers
# set_parms initial
this will walk you throught all the steps.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:33 PM
02-19-2006 08:33 PM
Re: Set IP and Hostname
will set hostname.
set_parms ip_address
will set ip-address.
This action is needing *reboot of machine*
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:35 PM
02-19-2006 08:35 PM
Re: Set IP and Hostname
1) Setting hostname:
# hostname
Change in /etc/rc.config.d/netconf file for HOSTNAME entry and /etc/hosts file entry for hostname resolvation.
2) Setting IP-Address:
# ifconfig
Change the setting in /etc/rc.config.d/netconf file based on interface.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:36 PM
02-19-2006 08:36 PM
Re: Set IP and Hostname
Hi,
To change the IP address while the server is running you may use ( without reboot)
#ifconfig
Regards,
Sivakaminathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:37 PM
02-19-2006 08:37 PM
Re: Set IP and Hostname
For your requirement, these 2 commands would suffice.
set_parms ip_address
set_parms hostname
But if you want to achieve this change in one reboot, then u will have to use..
set_parms initial
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:38 PM
02-19-2006 08:38 PM
Re: Set IP and Hostname
Sorry for the typo in my previous post, it should be # /sbin/set_parms. This is the easiest and robust method of all.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:45 PM
02-19-2006 08:45 PM
Re: Set IP and Hostname
Dear Shapuan,
The IP addess set using ifconfig wont be permanent.
The best way to make all basic network settings permanent is
#set_params
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:49 PM
02-19-2006 08:49 PM
Re: Set IP and Hostname
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 08:56 PM
02-19-2006 08:56 PM
Re: Set IP and Hostname
What about changing the Hostname,Ip address and default gateway to a new one.
i try to run set_parms, seems didn't affect anything. Do i have to reboot the server after set the new hostname.
Rgrds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 09:00 PM
02-19-2006 09:00 PM
Re: Set IP and Hostname
yes, you should reboot the server in order to apply the changes.
-Arun
P.S Remember to assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 09:06 PM
02-19-2006 09:06 PM
Re: Set IP and Hostname
if you are making more than 1 change, it is preferrable to restart the server so as to check if you have done everything well.
After restart, you can verify all your changes.
make sure that you have also backed up the configuration files and modification to remote scripts/programs so that they are aware of this change (if any)
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 02:10 PM
02-20-2006 02:10 PM
Re: Set IP and Hostname
Thanks for all info. i had make a change and it works.
another thing to ask, how to change this
"apps100d: / >" ---- to "gst: />"
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 02:15 PM
02-20-2006 02:15 PM
Re: Set IP and Hostname
Hi,
pls check the .profile
if it has a entry like,
PS1=[`hostname`]$
Then the prompt is 'hostname' then it would get changed automatically after changing the hostname.
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 02:20 PM
02-20-2006 02:20 PM
Re: Set IP and Hostname
Hi,
If you want to change it manually to
"gst: />"
Then you have to add the follwoing line to .profile
PS1=gst'$PWD'$
Hope this Helps,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 02:23 PM
02-20-2006 02:23 PM
Re: Set IP and Hostname
"apps100d: / >" ---- to "gst: />"
You might be having PS1 set in your .profile or /etc/profile and it reflects to hostname changes. Once you change your hostname to "gst" execute your .profile by
# . /.profile
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 03:51 PM
02-20-2006 03:51 PM
Re: Set IP and Hostname
i have checked at .profile. it stated like this " export PS1='gst: $PWD >'". But it still read the " apps100d: / > " even in the profile stated gst.
Please advice.
Thnks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 04:02 PM
02-20-2006 04:02 PM
Re: Set IP and Hostname
If you made any changes to .profile, You need to logout and relogin to see your changes take effect.
2 more pointers to add.
1) Do not club another unrelated question in the same forum. Because,.. it would not reflect in the normal search ..even though a solution is provided for the second question. I would suggest you to close the first thread and open a new one for the second issue.
2) Secondly, not been shelfish.. when I went through this thread ..u have already received the solution for the first query. It is only befitting you to award point to the members who have taken pains in answering your query. Some even have taken pains twice or trice to get you through the problem. One other advantage in awarding the same. A Solution Bunny could be tagged with this thread . which would help us in future to indentify this as a solved thread when we search for a related issue.
No offense intended, just ..keeping up the motto and emphasizing what I consider this forum.. as "THE WORLDS BEST FORUM, and definitely proud to be a part of"...
Regards,
Senthil KUmar. A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 04:07 PM
02-20-2006 04:07 PM
Re: Set IP and Hostname
Please go through the following link. I defenitely feel everyone needs to go through this doc time to time..
http://66.34.90.71/ITRCForumsEtiquette/
A very good doc by Patrick Walleck.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:35 PM
02-20-2006 10:35 PM
Re: Set IP and Hostname
if you've changed .profile, you have to check the last lines .dtprofile.
Here is defined, if .profile is used!
HTH
Volkmar
P.S.
You have assigned points to 0 of 29 responses to your questions.
Please work at your assignment rate!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 10:52 PM
02-20-2006 10:52 PM
Re: Set IP and Hostname
# . $HOME/.profile
what it is now on the prompt.
--
Muthu