Networking Questions...

Heads up, guys, questions coming. I am having a few troubles with my solaris box. Hope you guys, again, could help me...

1.) During setup, I chose "Non-networked" setting. After installation, i try to manually "link up" the NICs but I can't seem to know what are the "interface names" (such as bge0, hme0, etc)... is there any way to learn this?

2.) I tried sys-unconfig and now I chose "Networked" setting.The NICs are now enabled but when the two are "up", I CAN NOT ping them.

But if I disable one of them, the other one CAN be ping-ed... why is that?

3.) Is it necessarily to have two different hostnames for each NIC?

The box is a Sun Blade 2500...

If you guys don't mind, I also have a few non-networking questions...

4.) Why is it that everytime I create a user with a home directory, the home directory isn't created? (e.g. useradd -d /export/home/test test)

5.) How do you change default shell?

Thanks so much again. Your efforts will be remembered.

midnytblu

[1040 byte] By [midnytblu] at [2007-11-26 8:27:31]
# 1

Hi,

1) You could have a look in /etc/path_to_inst and check if you can find any network devices there.... that could tell you the names of the devices you are looking for. Otherwise you could try and run a prtconf -vp and search for network devices.

2) Have you tried setting "local-mac-address=true" on the obp ?

If multiple interfaces are connected to the same network and they both use the same mac address then you will run into trouble

4) you should use the -m option with useradd to have it automatically create the users homedir

5) The default shell can be changed by doing a usermod and then use the option -s and give it the shell with the path to the shell.

Regards,

Nico

NicoB at 2007-7-6 21:43:21 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

thanks so much, NicoB-san.

you did right disregarding the #3 question for it was nonsense actually (misspelled too :( )...

anyway, regarding the two NICs... i was able to enable them but only if I put them in different networks... e.g. one is with 192.168.10.10 and the other one is 192.168.11.10

any explanations on that, sir? thanks again much.

midnytblu

midnytblu at 2007-7-6 21:43:21 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

Hi,

Well, can you check the mac addresses for both interfaces ?

If you run ifconfig -a as root you will see the mac addresses associated with both interfaces.

They are probably the same ?

If so then they cannot reside on the same network since interfaces that reside on the same network will require different mac addresses because they otherwise cause conflict on the network.

Regards,

Nico

NicoB at 2007-7-6 21:43:21 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

MAC addresses checked... OK!

glad to say that they are both working perfectly now... same network also...

i really don't know what happened but sometimes they can be ping-ed and sometimes they can not... i hope they'd stay that way for the time being...

thank again, sir Nico.

midnytblu

midnytblu at 2007-7-6 21:43:21 > top of Java-index,Solaris Operating System,Solaris 10 Features...