Dual Network Cards
Hello all, (No more stupid questions!!)
I am running Slackware 10.2 and have 2 network cards. The first card is plugged into my network and recieves an IP fine. I would like to connect the secound card to a Cisco switch that is configured for port forwarding. Basically I want to run Snort and monitor all traffic in andout of my network. The problem is that when I plug in the cable to that port on the switch, nothing shows up. How do I config that nic to allow it to see the packets that are coming into it? Thanks in advance. |
Is the interface configured? What does 'ifconfig -a' show?
What does 'netstat -rn' show (routing table) So many more questions but these are the basic questions. |
Yeah, to expand on dd12's response, the kernel only autodetects 1 NIC card. You need to modprobe the right module (if different) then ifconfig it up manually.
|
Sorry guys........little in-experienced here...
All I had to do was 'ifconfig eth1 up' and life is good. |
Quote:
You need to tell the kernel to initialize both NICS. I will give you an example from my system. First you need the hardware address of your 2 NICS, so run the following command: Code:
# lspci -v | grep -A6 "Ethernet controller" Code:
0000:01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) Code:
ether=10,0xd000,eth0 ether=11,0xd100,eth1 Code:
ether={IRQ},{I/O address},{interface name} If you need more help just ask.... |
Interesting info, bulliver.
Does anyone happen to know how it is that live CD distros like Knoppix manage to find both NICs and configure them? I've noticed that Knoppix (and derivatives like featherLinux) built on Linux 2.4 don't do this and Knoppix 4.0.2, which is built on Linux 2.6.12 does. The point where the eth0 and eth1 messages are printed is certainly long after lilo has run. Thanks |
Quote:
Quote:
|
Different distributions have different startup scripts....you are correct. Under RHEL /etc/sysconfig/network-scripts has most of what you need. If above all you needed to do was an ifconfig then you already had the hardware detected. All you need to find is the proper place to configure on reboot for Slakware.
|
Okay, I'll take a stab at it, then - is it done in hwsetup?
That's Knopper's program for finding hardware; it usually runs from a script like /etc/rcS.d/knoppix-autoconfig. Is that where the NICs are discovered? If so, has Knopper changed hwsetup for Linux 2.6 so that it does a more thorough job or is it just naturally benefiting from some improvements made in 2.6? Should this move to the Knoppix forum :-) ? Thanks oops, looks like my problem was the older distros didn't have support for the 3com 3c940 on this mobo - Linux 2.4 version of DSL is definitely finding two NICs just fine. Sorry for the noise. |
All times are GMT -5. The time now is 10:56 AM. |