UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

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, 01: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, 07: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: 814 Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 5 h 10 m 43 sec
Reputation Power: 243
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, 08: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, 09: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, 03: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
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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway