Lowyat.NET Forums

Welcome Guest ( Log In | Register )

 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Solaris 10 Question, Confusing problem

Cyrus2k
post Jul 3 2009, 01:10 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #1


Casual
***

Group: Junior Member
Posts: 414
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: Ampang/Setapak @ http://himitsu.us





Been working on a server (Sun M4000) lately, and just reinstall Solaris 10 in the server.
Since it lacks of its own display output, so I need to use Xbrowser to login the Solaris CDE.

There are 3 NICs on the server: 2 are used for communication links with other nodes while 1 is used for local access (Xbrowser).

Then I need to permanently change the IP address of 2 NICs (communications), so I modify the IP entries in the following file
CODE
/etc/hosts

then I reboot the server using
CODE
shutdown -y -g0 -i6


After I reboot it, I am unable to login via Xbrowser anymore. I can monitor the domain using the XSCF shell, but just that no idea what is causing this problem... By right, I should be able to login since I didnt make any changes to the NIC that I am using for local access.. rclxub.gif

Any experienced user mind to enlighten me?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
zaidi
post Jul 3 2009, 09:50 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #2


Enthusiast
*****

Group: Senior Member
Posts: 765
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003




/etc/hosts is wrong place to edit. and since cde uses hosts to connect local, if you edit it wrongly cde will not start.

try to restore back /etc/hosts via console. i'm not sure the correct way to change IP for your solaris, but /etc/hosts is definitely not the one.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
wKkaY
post Jul 3 2009, 10:36 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #3


Smile, what's the use of crying?
Group Icon

Group: Forum Admin
Posts: 4,549
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: Malaysia




Actually in Solaris you really do change IPs in /etc/hosts.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
thefryingfox
post Jul 3 2009, 10:59 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #4


Lonely Maharajah
*******

Group: Senior Member
Posts: 4,121
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Feb 2005




isnt it at ifconfig where u change the iP?
sorri im noob
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cyrus2k
post Jul 3 2009, 11:53 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #5


Casual
***

Group: Junior Member
Posts: 414
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: Ampang/Setapak @ http://himitsu.us





QUOTE(zaidi @ Jul 3 2009, 09:50 AM)
/etc/hosts is wrong place to edit. and since cde uses hosts to connect local, if you edit it wrongly cde will not start.

try to restore back /etc/hosts via console. i'm not sure the correct way to change IP for your solaris, but /etc/hosts is definitely not the one.
*


Actually, I have search through the internet and just like Wkkay had said, changing /etc/hosts is really needed (along side with /etc/netmask) to permanently modify the IP... hmm.gif


QUOTE(thefryingfox @ Jul 3 2009, 10:59 AM)
isnt it at ifconfig where u change the iP?
sorri im noob
*


ifconfig is just the temporary method to change the IP... after reboot the configurations will reset back to previous settings. sweat.gif

Still scratching my head on the solution; although I can just reinstall the server again but it was pointless since eventually I need to change IP then will bump back to the same problem... hmmm...

I can ping the NICs using the IP that I assigned to normally, just that my Xbrowser won't connect to the CDE hmm.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
sylvian14
post Jul 9 2009, 12:21 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #6


Getting Started
**

Group: Junior Member
Posts: 76
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Feb 2006
From: KL/PJ





QUOTE(Cyrus2k @ Jul 3 2009, 11:53 AM)
Actually, I have search through the internet and just like Wkkay had said, changing /etc/hosts is really needed (along side with /etc/netmask) to permanently modify the IP...  hmm.gif
ifconfig is just the temporary method to change the IP... after reboot the configurations will reset back to previous settings. sweat.gif

Still scratching my head on the solution; although I can just reinstall the server again but it was pointless since eventually I need to change IP then will bump back to the same problem... hmmm...

I can ping the NICs using the IP that I assigned to normally, just that my Xbrowser won't connect to the CDE  hmm.gif
*



Actually, the way to change is to use a command called "sys-unconfig". This will cause the server to come down to single user and then you need to enter the network info again, like hostname, domain then the IP and the netmask info, as if you are going through the entire installation again, but only for the network portion. The server will then reboot and it'll be permanent.

"ifconfig" command is only temporary, as you have pointed out.

I know in pre-Solaris 10, you can use the /etc/hosts and the /etc/hostname.<interface_name> to make it permanent.

/etc/hosts - IP then your hostname as a entry
/etc/hostname.<interface_name> - just your hostname you have specified in /etc/hosts as a entry

Don't know whether Solaris 10 can still accept this method or it has change the structure all together. Still haven't played with Solaris 10 yet. sad.gif

Hope that helps.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 



----debug section please ignore----
Lo-Fi Version Time is now: 25th November 2009 - 12:37 PM
All Rights Reserved 2003-2009 Vijandren Ramadass (~living on a prayer~)