UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 12th, 2006, 02:46 PM
jimmo jimmo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 21 jimmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 31 m 21 sec
Reputation Power: 0
Changing hostname and IP on Solaris 10

We have a Solaris 10 machine and need to change the hostname and the IP address. I have worked primarily with Solaris 8 and this is my first experience with Solaris 10. I am fairly sure I will get the basics, but I have the vague recollection that there was something under /etc/opt or similar. Now, I cannot find it. So, I was wondering if someone knew of a checklist of things to change to make sure that I do not miss anything.

Any info would be greatly appreaciated.

Reply With Quote
  #2  
Old April 12th, 2006, 08:33 PM
Ehlanna's Avatar
Ehlanna Ehlanna is offline
Not a clue what to put ...
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: in front of this keyboard
Posts: 879 Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level)Ehlanna User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 3 Days 10 h 27 m 24 sec
Reputation Power: 331
I dunno if it is still in Sol 10, but there WAS a command/script called sys_unconfig which you could use to do this.

Reply With Quote
  #3  
Old April 23rd, 2006, 09:37 PM
shiv729 shiv729 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 1 shiv729 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m
Reputation Power: 0
Changing the IP on Solaris 10 requires editing two files:

1. /etc/hosts
2. /etc/inet/ipnodes

If you are changing network address, you will need to change the router address in the file:
1. /etc/defaultrouter

Changing the hostname now only requires editing these files:

1. /etc/hosts
2. /etc/nodename
3. /etc/hostname.<interface name>

<interface name> is the driver name followed by the instance number of the interface. ie. hme0, bge0, ce0, qfe0

You can find all your network interfaces by drivername and instance# by running the following command: prtconf -D | grep network

Note: the following hosts files are no longer used in solaris 10.
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

Rebooting the computer should bring up the new ip and hostname.

Reply With Quote
  #4  
Old July 21st, 2006, 10:51 AM
kraja kraja is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 kraja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 27 sec
Reputation Power: 0
Need Help to change the hostname and IPAddress on Solaris8

Hi,

I tried modifying the hostanme and IPAddress using sys-unconfig command but in vain. After feeding all the configuration details of the system, at the end the following error is observed.
"System Identification Error-------
An error occured while trying to set the IP address XX.XXX.XX.XX on the network interface.

- Kraja

Your help on this is greatly appreciated....as i have imp deliverables.
Quote:
Originally Posted by shiv729
Changing the IP on Solaris 10 requires editing two files:

1. /etc/hosts
2. /etc/inet/ipnodes

If you are changing network address, you will need to change the router address in the file:
1. /etc/defaultrouter

Changing the hostname now only requires editing these files:

1. /etc/hosts
2. /etc/nodename
3. /etc/hostname.<interface name>

<interface name> is the driver name followed by the instance number of the interface. ie. hme0, bge0, ce0, qfe0

You can find all your network interfaces by drivername and instance# by running the following command: prtconf -D | grep network

Note: the following hosts files are no longer used in solaris 10.
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

Rebooting the computer should bring up the new ip and hostname.

Reply With Quote
  #5  
Old August 6th, 2006, 04:25 PM
j.a.baker j.a.baker is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 1 j.a.baker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 53 sec
Reputation Power: 0
No luck with changing hostname

I tried editing the three files suggested by shiv--- to no avail. I've tried as well editing all the meaningful /etc* files as prescribed by "the book" and still no luck. Running 5.10 on a new x86 Toshiba laptop and so far everything else seems fine. Installed as 'network' computer and using DHCP (as req'd by router); which gives no opportunity to name the host, so it's "unknown". Ask away if you need to know what some of the files or prtconf looks like. Thanks in advance.

Reply With Quote
  #6  
Old November 10th, 2009, 08:12 AM
iaguru iaguru is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 1 iaguru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 35 sec
Reputation Power: 0
Changing hostname on Solaris 10

In addition to changing the /etc/hosts file you need to do a uname -S `hostname` and that should do the trick.

Last edited by iaguru : November 10th, 2009 at 08:13 AM. Reason: spelling error

Reply With Quote
  #7  
Old November 21st, 2009, 05:44 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,200 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Week 1 Day 11 h 47 m 52 sec
Reputation Power: 11
imho, a sys-adm should know what he is doing, forget tools for this
jos - or an other issue like add or delete users - follow shiv729 instructions,
so you will learn how to do it, even if tools are NOT installed

btw: my experience NEVER DELETE AN USER, just disable it, setting
an inpossible pwd or changing his login-shell to a non existing-shell.
why?
if you have to restore data .......... imagine what could happen
__________________
working on Solaris[5-9], preferred languages french and C.

Reply With Quote
  #8  
Old August 26th, 2010, 09:44 AM
GrnRt GrnRt is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 1 GrnRt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 39 sec
Reputation Power: 0
Smile Thanks: The instructions worked great!

Thanks shiv729. To change the IP steps 1 and 2 were all that was needed. I found another post that referenced a lot more files (probably for older Solaris) but for Solaris 10, your instructions were spot on.

Quote:
Originally Posted by shiv729
Changing the IP on Solaris 10 requires editing two files:

1. /etc/hosts
2. /etc/inet/ipnodes

If you are changing network address, you will need to change the router address in the file:
1. /etc/defaultrouter

Changing the hostname now only requires editing these files:

1. /etc/hosts
2. /etc/nodename
3. /etc/hostname.<interface name>

<interface name> is the driver name followed by the instance number of the interface. ie. hme0, bge0, ce0, qfe0

You can find all your network interfaces by drivername and instance# by running the following command: prtconf -D | grep network

Note: the following hosts files are no longer used in solaris 10.
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

Rebooting the computer should bring up the new ip and hostname.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Changing hostname and IP on Solaris 10


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap