Link to home
Start Free TrialLog in
Avatar of j1mlondon
j1mlondon

asked on

help needed setting up a nic on solaris (old version)?

Please can anyone help me get my nic running on solaris. It is an old version 2.7? 2.9?

The nic is in the machine but it doesnt appear to be installed, AND I do not know where to look for the config...
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of j1mlondon
j1mlondon

ASKER

It is an old sparc station NOT intel.
Does the above apply still?
Yes
Solaris (Sparc) should be able to pick up your Ethernet card, if not, you have a hardware problem.
I should have added I want it to use DHCP too!! Is that easy for me to set up?
I have read some previous questions and tried to find it...it seems I should use ifconfig???? is this correct....of course when I tried to use ifconfig with eth0 it didnt work. Does solaris use naming conventions or is it dependent upin the NIC itself????
To find out the name of your interface card, you can use the "ls" command:

eg: ls /etc/hostname*

    your output should looks:
    /etc/hostname.le0
    or
    /etc/hostname.hme0

    le0 or hme0 is the interface name for your NIC, what ever after hostname. is your interface name.

   Do a man man ifconfig to find out more details, and you can check out the documentation from:
   http://docs.sun.com/

   And
   http://www.sun.com/bigadmin/faq/indexNet.html

   To find out more information

   Good luck!

===========
yuzh
The nic is recognized by the os if you have done a
boot -r after you installed it.
You can see your intefaces with ifconfig -a
here you can also see the interfacenames and
the ethernetaddresses.

To use dhcp, create a /etc/dhcp.[le0,hme0,le1,hme1]
file.
Put the ethernetaddress in your dhcpserver.

About hostnames, try to use small case, max 8 chars,
it works best.

BTW, you can always verify that your nic is working
already at the monitorlevel.
ok  watch net
a dot will be printed for every packet seen on the net.

rgds
Hi

type ifconfig -a from the terminal window. It should show up the list of interfaces and ip addresses.

If all that shows up is le0 then your interface may be hidden. With Solaris network interfaces must be attached with the syntax :ifconfig interface plumb before they become visible to the kernel and configurable

Try typing ifconfig hme0 plumb

if it returns an error try typing ifconfig le0 plumb

then type ifconfig -a . If your adapter shows up then you can configure it.
ifconfig hme0 inet <ip address> netmask <x.x.x.0> broadcast <x.x.x.255> up

if you don't specify netmask or boadcast then they are given default addresses.

eg ifconfig hme0 192.1.1.301 up

Then type
touch /etc/hostname.hme0

open this file with a viewer and add the name of the machine. e.g. testsrv

then open /etc/hosts and add the line

<IP address> <hostname>
for example
192.1.1.301 testsrv

Hope this helps

I know it's a bit messy but it should work!!