Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-06-2009, 09:30 PM   #1
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali, Ubuntu, OpenSuse
Posts: 618

Rep: Reputation: 40
Question How to add a network card on Ubuntu 8.04 Server


I have a Ubuntu server which I had running for awhile and I would like to configure it as my DHCP server. I already have an Intel Network card and I installed a 3com network card. The system recognizes the 3COM card lspci but when I do # ifconfig the system only shows the intel card.
what can I do to configure that card?
Old 08-06-2009, 10:20 PM   #2
LQ Newbie
Registered: Nov 2007
Posts: 21

Rep: Reputation: 2
NIC appears in lspci but not in ifconfig

To make sure the card was recognized and a driver loaded, get a shell (in a terminal or remotely) and type the command
dmesg | less
to browse through the kernel messages at boot time. In the less browser, type /eth<enter> to find and highlight the string "eth" and q to quit back to the shell.
There's a message when the driver for the card is loaded.

The Ubuntu desktop has a little network icon, two PCs next to each other. By default it's in the top tray towards the right. There's a little animation when it connects or disconnects.

Next type the commands
ip addr show
and you should see the at least one "eth" device. Two if the 3com driver has loaded.
/sbin/route -n
and you should see the route the DHCP client got via the Intel Ethernet.

If the card is recognized, you can put away the shell window for now and establish a network interface on it with Ubuntu's nice little graphical user interface for that.
Or you can use the shell. Get another shell window and run the command
tail -F /var/log/messages
and just let it run where you can see it. If the driver hasn't loaded yet, the next command will bring it out and you should see a message there. If stuff goes wrong, that's the message we want to see here.

Let's say your home LAN will be and the new 3com NIC is eth1. Type this
sudo ifconfig eth1 broadcast netmask
and then do this again to see if its output changes.
ip addr show ; /sbin/route -n
There should now be an address and a route for eth1 showing.
Now you can go back to Ubuntu's graphical controls and use Synaptic to get the dhcp3-server package and set that up.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to add network interface under Ubuntu 5.10 pxumsgdxpcvjm Linux - Wireless Networking 0 01-29-2006 02:32 PM
Newbie... Add server to network? nwilcox Linux - Newbie 3 10-31-2004 05:47 AM
How to add an additonal Network Card j0217995 Debian 2 06-15-2004 02:33 PM
add network card (debian) eduac Linux - Hardware 2 09-24-2003 07:45 AM
How to add network card ? thundersnows Linux - Hardware 8 08-04-2003 10:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration