LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-13-2010, 04:24 AM   #1
Undermind
Member
 
Registered: Sep 2009
Location: Denmark
Distribution: Arch Linux
Posts: 37

Rep: Reputation: 15
enabling second network card on Debian


Hello there.

i have a dell optiplex configured with an extra PCI network card, because i plan to set it up as a gateway / LTSP server, but i have troubles getting the second network card to work. It is recognized during installation (where i can choose the primary network interface)
and doing a
Code:
 lshw -class network
after installation shows both network cards, with network 0 being labeled DISABLED. i have tried configuring the other network interface in the /etc/network/interfaces file, but it has failed to work. i have also briefly looked at udev rules, but it seems that it renames the interfaces fine during bootup, as
Code:
dmesg | grep "udev"
shows the following
Code:
[    1.138307] udev: starting version 160
[    6.003002] udev: starting version 160
[    7.237092] udev: renamed network interface eth1 to ethlokal
[    7.253775] udev: renamed network interface eth0 to eth1
i also noticed a briefly shown "adress collision" error of some sort during boot, but it never showns for long enough for me to read it through.

the network card that is enabled is an Intel 825662EZ 10/100 ethernet controller, and the one that is disabled is a Realtek RTL-8139/8139C+

I am stumped on this one. thanks in advance
 
Old 10-13-2010, 04:44 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
please post the output of

Quote:
ifconfig
 
Old 10-13-2010, 05:27 AM   #3
Undermind
Member
 
Registered: Sep 2009
Location: Denmark
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 15
here's the output of ifconfig
eth1 is the network card going from the school's internet port to the server, and the disabled one is the one going from my server to the switch

Code:
eth1    link encap:Ethernet  HWaddr 00:12:3f:8f:9f:cc
        inet addr:172.19.192.2  Bcast:172.19.199.255  Mask:255.255.24820
        inet6 addr: fe80:212:3fff:fe8f:9fcc:/64  scope:link
        UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
        RX packets:5 errors:0  dropped:0  overruns:0  frame:0
        TX packets:11  errors:0  dropped:0  overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:348 (348.0 B)  TX bytes:798 (798.0 B)

lo      link encap:Local Loopback
        inet addr:127.0.0.1  Mask:255.0.0.0
        inet6 addr: ::1/128 Scope:Host
        UP LOOPBACK RUNNING  MTU:16436  Metric:1
        RX packets:8  errors:0  dropped:0  overruns: 0  frame:0
        TX packets:8  errors:0  dropped:0  overruns: 0  carrier:0
        collisions:0  txqueuelen:0
        RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
 
Old 10-13-2010, 05:52 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
You seem to be having only one lan card...

try

Quote:
sudo mii-tool
Get NetworkManager

Quote:
$ su
# aptitude update
# aptitude install network-manager-gnome
Then open the interface and see if your both the cards detected or not!
 
Old 10-13-2010, 06:24 AM   #5
fiku
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Rep: Reputation: 2
Post the output of this command - this lists all interfaces (without the -a it lists only configured ones)
Code:
ifconfig -a
If eth0 is detected try doing
Code:
ifconfig eth0 up
and post the output

You can also configure the specified card with ifconfig, e.g.
Code:
ifconfig eth0 192.168.0.2
You have to add a correct route too:
Code:
route add 192.168.0.1 eth0
Have a look throught man pages:
Code:
man route
man ifconfig

Last edited by fiku; 10-13-2010 at 06:32 AM.
 
Old 10-13-2010, 09:37 AM   #6
Undermind
Member
 
Registered: Sep 2009
Location: Denmark
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for the replies! i'll try it tommorow at school, as i'm home right now and the server is shut off
 
Old 10-14-2010, 01:58 AM   #7
Undermind
Member
 
Registered: Sep 2009
Location: Denmark
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 15
well bugger me, Fiku, that worked like a charm. and here i've spent 2 days trying to wrestly it into submission xD it looks like i still have a lot to learn, but i'm getting there. thanks a lot, Fiku, i owe you one
 
Old 10-14-2010, 08:10 AM   #8
fiku
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Rep: Reputation: 2
I'm glad I could help
 
  


Reply


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
Enabling the network card on Dell Latitude D505 runing Linux 2.4 afadaly Linux - Networking 11 10-27-2008 06:45 AM
Enabling direct rendering for beryl on an nvidia card? (Debian Lenny/Sid) Hungry ghost Debian 7 07-08-2007 12:24 PM
Network Configuration in Debian (laptop network card) legendaryhwk Linux - Networking 6 04-06-2006 03:59 AM
Enabling network card in linux? NNP Linux - Networking 5 11-16-2004 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:24 AM.

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