The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > 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
change 43% to 43.5 nortypig Shell Programming and Scripting 2 08-20-2006 04:55 AM
IP change kuultak UNIX for Dummies Questions & Answers 2 07-13-2005 10:01 AM
UID Change mcateriny AIX 4 10-06-2003 01:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-31-2006
pascalbout pascalbout is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 94
Change IP

hello

How can i change the ip address on my solaris sun 9 server ?

thank you

Last edited by pascalbout; 01-31-2006 at 05:59 AM..
  #2 (permalink)  
Old 02-01-2006
Ebom Ebom is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 1
modify /etc/hosts , /etc/netmask and /etc/hostname.<lan interface>
you might want to modify the /etc/defaultrouter
if new ip is on different segment.
  #3 (permalink)  
Old 02-01-2006
pascalbout pascalbout is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 94
thank you !
  #4 (permalink)  
Old 02-01-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,240
Quote:
Originally Posted by Ebom
modify /etc/hosts , /etc/netmask and /etc/hostname.<lan interface>
you might want to modify the /etc/defaultrouter
if new ip is on different segment.
There are other files which may need to be updated besides these. They are listed in the manpage for sys-unconfig.
  #5 (permalink)  
Old 02-01-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Reborg - you may be thinking of a hostname change versus an IP change. The only other files the op should possibly worry about is if NIS, DNS, or some other name service is being used.
  #6 (permalink)  
Old 02-02-2006
XP_2600 XP_2600 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 65
guys im using hostname command to change my host name but when i reboot its back to unknown, how can i make it permanent ? and if its via /etc/hostname whats the right syntax for /etc/hostname ?
  #7 (permalink)  
Old 02-02-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Edit the three files: /etc/nodename, /etc/hostname.<interface_name> and the /etc/inet/hosts. In these, add the entry for your new hostname instead of the existing entry.

These files are used by the startup scripts that set your hostname, so the changes will not be lost upon reboot.
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0