Re: Two ethernet interfaces puzzle

From: David Haggett (news-spam_at_haggett.demon.co.uk)
Date: 08/08/04


Date: Sun, 08 Aug 2004 15:29:55 +0100

On Sat, 07 Aug 2004 17:34:25 -0400, Gonzalo wrote:

Actually, the problem is far simpler than Jason suggests (although he is
correct).

The problem is that Linux (in common with other solaris) seperates
the network, data-link and physical layers (OSI network model). The
problem is that the kernel sees both network interfaces as available:

> eth0 Link encap:Ethernet HWaddr irrelevant
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
         ^^
 
> wlan0 Link encap:Ethernet HWaddr irrelevant
> UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
         ^^

It's trying to send packets out of the wired interface, possibly
because 'e' comes before 'w', but there's no physical media to
carry it. By telling the kernel that eth0 is not available you force it
to send packets out of the wireless one.

I read somewhere about a daemon that watches physical interfaces for the
"ethernet link beat" and automatically brings the network up or down.
This would be the best solution for you (same network for both), but
unfortunately I can't remember what it was called.

Sorry - hoping someone else read the same article and can point you in
the right direction.

-- 
David Haggett
Linux user since 01/01/2003
Email: david<at>haggett<dot>demon<dot>co<dot>uk


Relevant Pages

  • Re: Help Broadcasting a UDP packet on the LAN:URGENT
    ... >> evident which network interfacethey should be using to do this. ... > than broadcast, as will be required anyway with IPv6. ... Bruce's design allows you to specify which interfaces participate in the ... you send packets and process ...
    (freebsd-net)
  • Re: Is my system secure? What else should I do?
    ... > network functionality for my computing activities (browsing, ... My network shows No presence to the outside world, ... browsing and open for secure browsing. ... Linux is no longer protecting the other computers/devices on your local ...
    (comp.os.linux.security)
  • Re: Help Broadcasting a UDP packet on the LAN:URGENT
    ... We use all-ones packets well ... > network interfacethey should be using to do this. ... > interfaces because you have a per-network broadcast address if you want ... That way you get "for free" to control which interfaces should send ...
    (freebsd-net)
  • Re: Strange TCP Traffic
    ... network is simply talking to his ISP's router or TP, ... packets on the Linux box with 193.231.122.78 as the obvious target. ... I'm not too familiar with Linux, but it shouldn't be that difficult to ...
    (comp.security.firewalls)
  • Re: LONWorks vs. Ethernet
    ... >Linux PC, which also sends signals back to open and close the relays. ... >and how much the chips, transceivers, and external components cost ... >it's far too sensitive to wiring imperfections, and the network ... The AVR is a far superior device to the Neuron chip as far performance ...
    (comp.arch.embedded)