The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Changing IP & hostname LisaS UNIX for Dummies Questions & Answers 5 02-29-2008 06:59 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 07:52 PM
How to stop DHCP from changing hostname vr76413 UNIX for Advanced & Expert Users 3 01-20-2007 06:04 PM
Hostname lost when changing user Pablo_BR UNIX for Dummies Questions & Answers 4 01-31-2006 04:52 PM
what happen when changing Hostname? atiato UNIX for Dummies Questions & Answers 2 02-14-2002 04:20 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2007
Registered User
 

Join Date: Mar 2007
Posts: 51
changing ip and hostname on solaris

dears

does any one know in steps how can i change ip and hostname on solaris
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-11-2007
heru_90's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 63
Dear Murad,

for change your ip, first add your new ip in /etc/hosts file
than for activate your new ip can using this command
Code:
ifconfig [interface] [yournewip] subnetmask [yoursubnetmask] up
for see that you new Ip was activated use
Code:
ifconfig -a
for change hostname i'm not yet know

regards,

heru
Reply With Quote
  #3 (permalink)  
Old 06-11-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
put hostname in /etc/hostname.[interface]

eg /etc/hostname.le0 or /etc/hostname.hme0

and

/etc/nodename

Last edited by porter; 06-11-2007 at 02:22 AM.
Reply With Quote
  #4 (permalink)  
Old 06-11-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,495
On Solaris 10 you (may) need to update all of the following files.
Code:
     /etc/defaultdomain
     /etc/defaultrouter
     /etc/hostname.interface
     /etc/inet/hosts
     /etc/inet/netmasks
or Solaris < 10 yo may also need to update
Code:
     /etc/net/*/hosts
bear in mind also that may applications use this kind of information, and may break if you change it.
Reply With Quote
  #5 (permalink)  
Old 06-11-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Additionally, on Solaris 10, you'll need to modify /etc/inet/ipnodes.

Cheers,
ZB
Reply With Quote
  #6 (permalink)  
Old 06-11-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,495
Quote:
Originally Posted by zazzybob
Additionally, on Solaris 10, you'll need to modify /etc/inet/ipnodes.

Cheers,
ZB
Yes, I forgot that one.
Reply With Quote
  #7 (permalink)  
Old 06-11-2007
Registered User
 

Join Date: Feb 2006
Posts: 84
thats why when i see this thread,
i prefer to sys-unconfig -- erase them all, restart from scratch blank system,
there are to many to change.

cheers.
Reply With Quote
Google UNIX.COM
Reply

Tags
solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0