![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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. |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|