Interface confusion eth0 wired eth1 wireless

Interface confusion eth0 wired eth1 wireless

Post by Sloa » Fri, 22 Mar 2002 14:37:23



I have two NIC's in one box.  One Ethernet wired and one Orinoco
Silver wireless.  I can't get the wireless NIC to ping the Linksys
base station if the wired NIC is not plugged in.

eth0   192.168.1.88      wired NIC
eth1   192.168.1.92      Wireless NIC.

If I bring up the box without the eth0 plugged in I can see the proper
config. on eth1 the wireless NIC but it will not ping the WAP.  I know
that the NIC is picking up a WAP signal because the MAC address of the
WAP shows up in the config. via iwconfig.

If I bring up the box with eth0 plugged in and then ping the WAP I of
course I will have a good connection VIA the wired NIC eth0.  I then
take down eth0 #ifconfig eth0 down.
I still have a good link on eth1.  I can then unplug eth0 and eth1
still works.
Any ideas?

 
 
 

Interface confusion eth0 wired eth1 wireless

Post by Allen Bro » Sat, 23 Mar 2002 06:24:11


Just out of curiousity and if you don't mind me asking ... why are
both of these interfaces on the same network? What are your default
routes for these interfaces?

Allen


> I have two NIC's in one box.  One Ethernet wired and one Orinoco
> Silver wireless.  I can't get the wireless NIC to ping the Linksys
> base station if the wired NIC is not plugged in.

> eth0   192.168.1.88      wired NIC
> eth1   192.168.1.92      Wireless NIC.

> If I bring up the box without the eth0 plugged in I can see the proper
> config. on eth1 the wireless NIC but it will not ping the WAP.  I know
> that the NIC is picking up a WAP signal because the MAC address of the
> WAP shows up in the config. via iwconfig.

> If I bring up the box with eth0 plugged in and then ping the WAP I of
> course I will have a good connection VIA the wired NIC eth0.  I then
> take down eth0 #ifconfig eth0 down.
> I still have a good link on eth1.  I can then unplug eth0 and eth1
> still works.
> Any ideas?


 
 
 

Interface confusion eth0 wired eth1 wireless

Post by David K. Mean » Sat, 23 Mar 2002 07:10:41



> I have two NIC's in one box.  One Ethernet wired and one Orinoco Silver
> wireless.  I can't get the wireless NIC to ping the Linksys base station
> if the wired NIC is not plugged in.

> eth0   192.168.1.88      wired NIC
> eth1   192.168.1.92      Wireless NIC.

> If I bring up the box without the eth0 plugged in I can see the proper
> config. on eth1 the wireless NIC but it will not ping the WAP.  I know
> that the NIC is picking up a WAP signal because the MAC address of the
> WAP shows up in the config. via iwconfig.

> If I bring up the box with eth0 plugged in and then ping the WAP I of
> course I will have a good connection VIA the wired NIC eth0.  I then
> take down eth0 #ifconfig eth0 down.
> I still have a good link on eth1.  I can then unplug eth0 and eth1 still
> works.
> Any ideas?

You don't say what netmask you are using, but these two IP addresses are
suspiciously close together.  One of the essentials of assigning network
addresses on a Linux box (or nearly any other kind) is to assign each
card to a separate subnetwork.  The usual setup I have seen for your
situation is
   eth0 --> 192.168.1.x    netmask 255.255.255.0
   eth1 --> 192.168.2.x    netmask 255.255.255.0

For more details about what a netmask is and how you decide on one, see
my webpage

    http://www.digitalelephant.org/computing/linux/net_glossary.html

 
 
 

Interface confusion eth0 wired eth1 wireless

Post by Sloa » Sat, 23 Mar 2002 10:00:25



Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    1      0        0 eth1

> I have two NIC's in one box.  One Ethernet wired and one Orinoco
> Silver wireless.  I can't get the wireless NIC to ping the Linksys
> base station if the wired NIC is not plugged in.

> eth0   192.168.1.88      wired NIC
> eth1   192.168.1.92      Wireless NIC.

> If I bring up the box without the eth0 plugged in I can see the proper
> config. on eth1 the wireless NIC but it will not ping the WAP.  I know
> that the NIC is picking up a WAP signal because the MAC address of the
> WAP shows up in the config. via iwconfig.

> If I bring up the box with eth0 plugged in and then ping the WAP I of
> course I will have a good connection VIA the wired NIC eth0.  I then
> take down eth0 #ifconfig eth0 down.
> I still have a good link on eth1.  I can then unplug eth0 and eth1
> still works.
> Any ideas?

 
 
 

Interface confusion eth0 wired eth1 wireless

Post by David K. Mean » Sun, 24 Mar 2002 09:43:40




> Kernel IP routing table
> Destination  Gateway     Genmask     Flags Metric Ref Use Iface
> 192.168.1.0  0.0.0.0   255.255.255.0   U     0      0   0 eth1
> 127.0.0.0    0.0.0.0   255.0.0.0       U     0      0   0 lo
> 0.0.0.0      192.168.1.1 0.0.0.0       UG    0      0   0 eth1
> 0.0.0.0      192.168.1.1 0.0.0.0       UG    1      0   0 eth1

There are definitely two problems with this setup.  First, your wired
and wireless ethernet interfaces are on the same subnet.  I would
recommend putting the wireless one on 192.168.2.x, and making sure that
a route to that network is added to the route table.

The second problem is that you have two default gateway lines in the
route table.  There should only be one at any time.  The second one is
almost certainly being ignored, but it indicates that something is bogus
in your sysconfig files.

HTH