LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   enabling second network card on Debian (https://www.linuxquestions.org/questions/linux-hardware-18/enabling-second-network-card-on-debian-837749/)

Undermind 10-13-2010 04:24 AM

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 :)

prayag_pjs 10-13-2010 04:44 AM

please post the output of

Quote:

ifconfig

Undermind 10-13-2010 05:27 AM

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)


prayag_pjs 10-13-2010 05:52 AM

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!

fiku 10-13-2010 06:24 AM

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


Undermind 10-13-2010 09:37 AM

Thanks for the replies! i'll try it tommorow at school, as i'm home right now and the server is shut off

Undermind 10-14-2010 01:58 AM

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 :D

fiku 10-14-2010 08:10 AM

I'm glad I could help :)


All times are GMT -5. The time now is 12:45 AM.