nixCraft Poll

Topics

Solaris > How to configure LAN Card (NIC)

Posted by Vivek Gite [Last updated: January 28, 2005]

Following are generic steps

1) UNZIP or untar the driver

# gunzip -cd driver-x.y.z.tar.gz | tar xf -

2) Install the driver by running special install script, for e.g.

# sh install

OR

# chmod +x install; ./install

3) Or you can also try out as follows to install driver:

# /usr/ccs/bin/make install

4) Or if driver in package format then install it using pkgadd command:

# buzip2 driver.bz2
# pkgadd -d driver

5) Open /etc/hostname.driver0 i.e. if your lan card driver name it tu or rtls then you can set up the ip address as follows:

# vi /etc/hostname.tu0
192.168.1.1

OR

# vi /etc/hostname.rtls0
192.168.1.1

6) Then restart Solaris computer/server by typing following command:

# init 6

Complete example to install tu lan card driver (DAVICOM DM9102A or ADMtek AN983B chipset )
1) Download the file from authors web site.

2) Untar driver files using following commands:

# gunzip -cd tu-0.9.10.tar.gz | tar xf -
# cd tu-0.9.10

3) Install the driver as follows:

# /usr/ccs/bin/make install

4) Assign IP address to LAN card:

# cat > /etc/hostname.tu0
192.168.1.1

Save file (by pressing CTRL+D).

5) Assign Hostname, if its not assign, open file /etc/hosts using text editor:

# vi /etc/hosts

Add/modify following text:

#
# Internet host table
#
127.0.0.1 localhost loghost sol9
192.168.1.1 sol9 sol9.nixcraft.com loghost

Save file (by pressing ESC + : + x!) exit to shell prompt.

6) Setup network ID and netmask as follows:

# vi /etc/netmask

Add the following line (your network ID):

192.168.1.0 255.255.255.0

7) In above example, 192.168.1.0 is network ID and 255.255.255.0 is netmask.
Now reboot your Solaris system as by typing following command:

# init 6

8) When system comes up type commands to verify NIC driver is working properly:

# dmesg|more
# ifconfig -a

(Check out all of our posts on Solaris)

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. kukan Says:

    i want to configure 3 lan cards..like in solaris for failover

  2. ACV Says:

    One final point - if you cannot make your PC see the DNS servers. After you’ve configured all the necessary files, type this:

    route add default xxx.xxx.xxx.xxx (your DNS ip)

  3. kamal Says:

    hello sir ,

    i am installing new sun solaris OS .
    and in that we are not able to detect the lan card .pls explain me the proper step of configure the lan card .

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.