The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Installing CVS package on solaris machine eamani_sun SUN Solaris 2 06-03-2008 10:25 AM
Getting Solaris machine into Network panchpan SUN Solaris 16 11-02-2007 02:23 AM
Need to change my machine name gun UNIX for Dummies Questions & Answers 3 11-29-2006 04:38 AM
change files permission on Remote machine almeisan1 Shell Programming and Scripting 1 10-05-2006 12:03 PM
How can i Configure TCP Keepalive on sun solaris 9 machine? m_amin SUN Solaris 1 02-04-2006 09:34 AM

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 02-22-2006
er_aparna er_aparna is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 52
how to change IP of my SUN solaris machine

Hello,

I want to change the IP of my SUN solaris machine but i am not bale to find the right way. I tried the following steps:
1) edit /etc/inet/hosts and change IP address for host listed in
/etc/hostname.le0
2) ifconfig le0 down
3) ifconfig le0 inet NEW_IP_ADDR netmask + broadcast +
4) ifconfig le0 up
5) netstat -rn (get name or ip_addr of "default" router)
6) ping ROUTER_IP_ADDR
7) if ping fails:
route add default ROUTER_IP_ADDR NEW_IP_ADDR 1
On the 3rd point i m getting error as bad address .

Pls help .

Thanks

Aparna
  #2 (permalink)  
Old 02-22-2006
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
try sys-unconfig
  #3 (permalink)  
Old 02-22-2006
98_1LE 98_1LE is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
I suspect the problem is the + in step 3. If you are moving it to another subnet, you need to update /etc/netmasks.

If you are only chaning the IP, and not the hostname, you only need to change /etc/hosts.

If you are changing the hostname, you also need to edit /etc/hosts, /etc/hostname.<interface>, ajd /etc/nodename. Technically there are 2 or 3 more places where the old hostname is encoded, but I have never changed any of them and have never had a problem.
  #4 (permalink)  
Old 02-24-2006
networkfre@k networkfre@k is offline
Registered User
  
 

Join Date: Aug 2004
Location: standing in a Sun 25k, Vienna
Posts: 78
like andryk said, sys-unconfig is the recommended by also by SUN (working for a SUN partner). you can but shouldnt change those settings by hand, sys-unconfig is your friend, and I´ve used it really often for example when installing a server and you dont´ know the customers settings, than you just enter sys-unconfig when your done and the customer will have a normal solaris question+answer when he first startup.

Sys-unconfig will do:

x) Revert to a blank system, no hostname, no IP settings, no language selected, no name service and so on...

x) Will bring the SUN down to the OBP

x) Then just boot with "boot" and you will get the normal solaris installation menu.


greetz
  #5 (permalink)  
Old 03-02-2006
stdout stdout is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 103
hello,

why dont you just edit your /etc/hosts? much simple right?

cheers..
  #6 (permalink)  
Old 03-07-2006
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
Quote:
Originally Posted by stdout
hello,

why dont you just edit your /etc/hosts? much simple right?

cheers..
if the box stays on the same subnet as the original IP address --- this method is the quickest way to get the IP address change ... just put in the correct IP address of the box in /etc/hosts and reboot ...

if the box is changing subnets, sys-unconfig is cleaner ...
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 08:56 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