LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Where is my dmfe1 on SunFire V100? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/where-is-my-dmfe1-on-sunfire-v100-379447/)

saudoi 11-02-2005 09:31 PM

Where is my dmfe1 on SunFire V100?
 
Hi all,

I've just installed Solaris10 onto my SunFireV100. However, I don't see the 2nd ethernet adapter after the installation finished. There's only one dmfe0. How do I active it again?

Once more, telnet service seem not to be installed sothat I have to use console port to configure it. Can I install telnet or SSH to remote admin this server.


Thank you in advance.

jlliagre 11-03-2005 01:15 AM

Code:

ifconfig dmfe1 plumb
Telnet service is installed by default, ssh too, but need to be enabled if I recall properly.

saudoi 11-04-2005 01:24 AM

Great!!!
Code:

ifconfig dmfe0 plumb
It work.

How can I enable telnet and ssh services ?

Thanks so much

saudoi 11-04-2005 01:31 AM

omg, the dmfe1 is "unplumb" after I restart the server. Can I keep it up 4ever ?

jlliagre 11-04-2005 01:51 AM

To keep dmfe1 after a reboot, just create the /etc/hostname.dmfe1 file with the wanted IP address inside.

For the other issue, what show the following commands ?
Code:

svcs -l telnet
svcs -l ssh


saudoi 11-04-2005 07:04 AM

Here's the output
Code:

-bash-3.00# svcs -l telnet
fmri        svc:/network/telnet:default
name        Telnet server
enabled      true
state        uninitialized
next_state  none
state_time  Fri Nov 04 19:37:08 2005
restarter    svc:/network/inetd:default

Code:

-bash-3.00# svcs -l ssh 
fmri        svc:/network/ssh:default
name        SSH server
enabled      true
state        offline
next_state  none
state_time  Fri Nov 04 19:37:05 2005
restarter    svc:/system/svc/restarter:default
dependency  require_all/none svc:/system/filesystem/local (online)
dependency  optional_all/none svc:/system/filesystem/autofs (offline)
dependency  require_all/none svc:/network/loopback (online)
dependency  require_all/none svc:/network/physical (online)
dependency  require_all/none svc:/system/cryptosvc (online)
dependency  require_all/none svc:/system/utmp (online)
dependency  require_all/restart file://localhost/etc/ssh/sshd_config (online)

Can you give me the format of the file /etc/hostname.dmfe1

Thanks.

saudoi 11-04-2005 09:08 PM

I put "192.168.1.4 netmask 255.255.255.0" into /etc/hostname.dmfe1 file, after restart, i see the dmfe1 up but i can not ping to my pc (192.168.1.44), if move the cable to dmfe0, ping is okie. What's problem here?

saudoi 11-04-2005 10:34 PM

Haha, I can start telnet and ssh service. just create file /etc/resolv.conf and put "nameserver 192.168.1.2" inside this file, restart server and these services come up. I think because file /etc/resolv.conf is absent so inetd couldn't start > telnet and SSH same. Is it rite ?

jlliagre 11-05-2005 04:29 AM

Well, you had a messed up network configuration.
You told the system to use dns as a name resolution method, but you didn't configure dns. As a consequence, the services depending on a proper network initialization weren't launched, that make sense.

About dmfe1, what says "ifconfig -a" an "netstat -rn" ?

saudoi 11-05-2005 09:30 AM

Which option should I choose for name resolution method? I don't have any DNS server in my lab (I have only 1 PC and 1 Sun). I think that I need to re-install my server (to learn more experience ;) ) . Do you have any suggestion for me sothat i can have the server with good configurations.

Thx.

jlliagre 11-05-2005 09:36 AM

Hey, it looks like everyone want to reinstall its server as soon as a problem happens. Solaris is not Windows ;)

Choosing the name resolution is done through a single file: /etc/nsswitch.conf

Just copy /etc/resolv.files to /etc/nsswitch.conf and you are set.

saudoi 11-05-2005 12:32 PM

I've changed line "hosts: files dns" -> "hosts: files" in the /etc/nsswitch.conf file already.

Howerver, I changed it back "files dns" and type Dns address of my ISP into /etc/resolv.conf file in order to I could access internet.

Of course, before I re-install my server, I will try everything till it stop responding :D

I think these troubles can give me more experiences after I resolve them ;)

jlliagre 11-05-2005 02:01 PM

I'm confused by your answers.

Again, about dmfe1, what says "ifconfig -a" an "netstat -rn" ?

saudoi 11-05-2005 06:53 PM

My Lab is closed today, i will post the output "ifconfig -a" and "netstat -rn" tomorrow.

(I'm not good at English, I'm learning it too :d. Thx for ur reading and understand ;) )

AgentX 11-06-2005 01:54 AM

Quote:

Originally posted by saudoi
I put "192.168.1.4 netmask 255.255.255.0" into /etc/hostname.dmfe1 file, after restart, i see the dmfe1 up but i can not ping to my pc (192.168.1.44), if move the cable to dmfe0, ping is okie. What's problem here?
You entered the IPs correctly, right?

saudoi 11-06-2005 10:09 AM

Yes, I set 2 ip addresses for my server:
dmfe0: 192.168.1.2 /24
dmfe1: 192.168.1.4 /24

My PC: 192.168.1.44 /24.

What's problem here?

saudoi 11-06-2005 11:16 PM

I have 1 cable plug to server.

1st time, I connect this cable to dmfe0 and try to ping my PC. Here is the output:

Code:

-bash-3.00# ifconfig -a                     
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 
        inet 127.0.0.1 netmask ff000000                                     
dmfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
        ether 0:3:ba:11:bf:9b
dmfe1: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
        ether 0:3:ba:11:bf:9c

-bash-3.00# ping 192.168.1.44
192.168.1.44 is alive

Next, I move the cable connect from dmfe0 to dmfe1 and ping my pc again
Code:

-bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
dmfe0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.255
        ether 0:3:ba:11:bf:9b
dmfe1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.1.4 netmask ffffff00 broadcast 192.168.1.255
        ether 0:3:ba:11:bf:9c

-bash-3.00# ping 192.168.1.44
no answer from 192.168.1.44

The content of /etc/hostname.dmfe1
Code:

-bash-3.00# cat /etc/hostname.dmfe1
192.168.1.4 netmask 255.255.255.0

and the result of netstat -rn command
Code:

-bash-3.00# netstat -rn

Routing Table: IPv4
  Destination          Gateway          Flags  Ref  Use  Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.1.0          192.168.1.2          U        1      2  dmfe0
192.168.1.0          192.168.1.4          U        1      0  dmfe1
224.0.0.0            192.168.1.2          U        1      0  dmfe0
default              192.168.1.1          UG        1      2
127.0.0.1            127.0.0.1            UH        4    77  lo0
-bash-3.00#



All times are GMT -5. The time now is 03:17 AM.