[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Multiple NICs with Monolithic kernel



I am having trouble setting up a system for 3 nic cards with a monolithic
kernel ( 2.4.18 )

The three cards are identical and use the eepro100 driver.

For testing I have them set up on the same sub-net.  All three cards are
getting assigned all three ips.

I am not passing any kernel parameters

Here is my /etc/network/interfaces

------------------
loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
# installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
    address 10.0.1.10
    netmask 255.255.255.0
    network 10.0.1.0
    broadcast 10.0.1.255
    gateway 10.0.1.3

 auto eth1
iface eth1 inet static
    address 10.0.1.11
    netmask 255.255.255.0
    network 10.0.1.0
    broadcast 10.0.1.255
    gateway 10.0.1.3

auto eth2
iface eth2 inet static
    address 10.0.1.12
    netmask 255.255.255.0
    network 10.0.1.0
    broadcast 10.0.1.255
    gateway 10.0.1.3
------------------------

And the output of ifconfig

------------------------
eth0      Link encap:Ethernet  HWaddr 00:02:B3:87:52:49
          inet addr:10.0.1.10  Bcast:10.0.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:977 errors:0 dropped:0 overruns:0 frame:0
          TX packets:736 errors:0 dropped:0 overruns:60 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:247132 (241.3 KiB)  TX bytes:55033 (53.7 KiB)
          Interrupt:11 Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 00:03:47:B1:D7:7D
          inet addr:10.0.1.11  Bcast:10.0.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:27658 (27.0 KiB)  TX bytes:19535 (19.0 KiB)
          Interrupt:10 Base address:0x4000

eth2      Link encap:Ethernet  HWaddr 00:02:B3:87:71:B5
          inet addr:10.0.1.12  Bcast:10.0.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:23 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:9 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:2535 (2.4 KiB)  TX bytes:1097 (1.0 KiB)
          Interrupt:9 Base address:0x6000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:117 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
------------------------------------

With this setup and only one card with a cable attached I can ping all
three addresses 10.0.1.10, 10.0.1.11, and 10.0.1.12.  This is true no
matter which card is plugged in.  

I have setup multiple nics before but they always used different
drivers, and I assigned which was eth0 and eth1 via aliases.  

I wish to use a monolithic kernel for security.  Can you help me
understand either how to set this up so each card gets one ip and/or
understand how each card is getting all three?  

~Michael



Reply to: