adding nic cards?

From: Thomison, Lee <ThomisonL@ci.anchorage.ak.us>
Date: Thu Jun 10 2004 - 16:15:17 AKDT

Hi folks.

Got a box gentoo box running kernel 2.6.5. It has two nics in it, eth0
192.168.1.176 eepro100 on-motherboard nic
eth1 192.168.0.176 3c59x 3com 3c905c =20

when it's just the two, everything works fine. But if I add a third=20

eth2 192.168.23.176 8139too linksys
something-or-other

then eth0 works fine, but can't ping out of eth1. I can ping its own ip
(192.168.0.176, but nothing else.

If I swap the linksys and the 3com, and make the appropriate changes to
the /etc/modules.d/aliases, I get the same results, eth0 works fine.
Eth1 will ping itself, and nowhere else.

Any ideas?

Thanks!

Lee

------------------------------------------------------------

Here are the relevant part of /etc/modules.d/aliases:

alias eth0 eepro100
alias eth1 3c59x
alias eth2 8139too

--------------------------------------------------------------

Here is the /etc/conf.d/net:

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0=3D"dhcp"
iface_eth0=3D"192.168.1.176 netmask 255.255.255.0 broadcast =
192.168.1.255"
iface_eth1=3D"192.168.0.176 netmask 255.255.255.0 broadcast =
192.168.0.255"
iface_eth2=3D"192.168.23.176 netmask 255.255.255.0 broadcast
192.168.23.255"

# For setting the default gateway
#
gateway=3D"eth1/192.168.0.1"

----------------------------------------------------------------

Here is the ifconfig:

eth0 Link encap:Ethernet HWaddr 00:02:55:4A:A0:35
          inet addr:192.168.1.176 Bcast:192.168.1.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:906 errors:0 dropped:0 overruns:0 frame:0
          TX packets:161 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:67810 (66.2 Kb) TX bytes:20205 (19.7 Kb)
          Interrupt:20 Base address:0xb000

eth1 Link encap:Ethernet HWaddr 00:20:18:8B:51:31
          inet addr:192.168.0.176 Bcast:192.168.0.255
Mask:255.255.255.0
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b) TX bytes:13008 (12.7 Kb)
          Interrupt:21 Base address:0xff00

eth2 Link encap:Ethernet HWaddr 00:0A:5E:06:EF:2F
          inet addr:192.168.23.176 Bcast:192.168.23.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:427 errors:0 dropped:0 overruns:1 frame:0
          TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30492 (29.7 Kb) TX bytes:6603 (6.4 Kb)
          Interrupt:22 Base address:0x7480

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:83 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6682 (6.5 Kb) TX bytes:6682 (6.5 Kb)

-----------------------------------------------

Here is route -n

/sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.23.0 0.0.0.0 255.255.255.0 U 0 0 0
eth2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0
lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0
eth1

Here is the /etc/init.d:

-rwxr-xr-x 1 root root 9776 Jun 7 08:12 net.eth0
lrwxrwxrwx 1 root root 8 Mar 29 07:41 net.eth1 -> net.eth0
lrwxrwxrwx 1 root root 8 Jun 9 10:59 net.eth2 -> net.eth0

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Jun 10 16:12:26 2004

This archive was generated by hypermail 2.1.8 : Thu Jun 10 2004 - 16:12:27 AKDT