Re: VLAN/Bridge No response from trunk Interface

From: Maxim Konovalov (maxim_at_macomnet.ru)
Date: 06/20/03

  • Next message: jdroflet_at_canada.com: "(no subject)"
    Date: Fri, 20 Jun 2003 23:41:10 +0400 (MSD)
    To: Han Hwei Woo <hhwoo@nb.sympatico.ca>
    
    

    Hello,

    On Fri, 20 Jun 2003, 11:39-0300, Han Hwei Woo wrote:

    > Here's the network I'm trying to setup
    >
    > 192.168.0.3 192.168.0.1 192.168.0.2
    > OpenBSD | vlan0----><--- vlan0 | FreeBSD | em0 ---><--- em0 | Windows 2000
    >
    > with net.link.ether.bridge_cfg: vlan0,em0
    >
    > If I try to ping the FreeBSD machine from OpenBSD, arp requests are
    > sent out, and they are seen on both of the FreeBSD machine's
    > interfaces. However, no arp response is generated.
    >
    > So, I enter in the arp entries myself.
    >
    > Once I do that, when I again try to ping the FreeBSD host from
    > OpenBSD, the ping requests are seen on both the FreeBSD interfaces.
    > However, no response is generated.
    >
    > If I instead try to ping the OpenBSD machine from FreeBSD, the ping
    > requests get to the OpenBSD machine, and the OpenBSD replies, and
    > both the FreeBSD interfaces receive the reply, according to tcpdump.
    > However, the ping program does not receive them.
    >
    >
    > I also tried this setup:
    >
    > 192.168.0.3 192.168.0.1 192.168.0.2
    > OpenBSD | vlan0----><--- vlan0 | FreeBSD | vlan1 ---><--- vlan0 | Windows 2000
    >
    > with net.link.ether.bridge_cfg: vlan0,vlan1
    >
    > And the same problem occurs. I have also tried with different
    > network cards as the parent interface of vlan0 on FreeBSD
    > (fxp0,dc0).

    1) Please try a hack below;
    2) Don't use bridge.ko, it is semi-broken, compile the bridging code
    in kernel instead (options BRIDGE);
    3) sysctl net.inet.ip.check_interface=0 is mandatory in some
    topologies.

    Index: if_ethersubr.c
    ===================================================================
    RCS file: /home/ncvs/src/sys/net/if_ethersubr.c,v
    retrieving revision 1.147
    diff -u -r1.147 if_ethersubr.c
    --- if_ethersubr.c 5 May 2003 09:15:50 -0000 1.147
    +++ if_ethersubr.c 20 May 2003 15:06:50 -0000
    @@ -625,6 +625,7 @@
             if (rule) /* packet was already bridged */
                     goto post_stats;

    +#if 0
             if (!(BDG_ACTIVE(ifp))) {
                     /*
                      * Discard packet if upper layers shouldn't see it because it
    @@ -641,6 +642,7 @@
                                 return;
                     }
             }
    +#endif

             /* Discard packet if interface is not up */
             if ((ifp->if_flags & IFF_UP) == 0) {
    %%%

    -- 
    Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    

  • Next message: jdroflet_at_canada.com: "(no subject)"

    Relevant Pages

    • Re: FreeBSD 5.1 <-> WinXP Networking Problem UPDATE #2
      ... > All my computers can ping each other! ... > connect to the internet from the FreeBSD server. ... > requests made by the WinXP machines go unanswered!! ... > Yet when I ping from them, ...
      (freebsd-questions)
    • Re: Fwd: That whole "Linux stealing our code" thing
      ... The myth that Theo understands dual licensing? ... It's no longer dual licenced in the FreeBSD tree because the FreeBSD ... FreeBSD doesn't have Reyk's athHAL from OpenBSD, ... dual licenced files planned to make GPL-only ...
      (Linux-Kernel)
    • Re: Quick and dirty router/firewall to test something?
      ... using FreeBSD vs. OpenBSD. ... Soekris boards up against commercial Watchguard and Cisco offerings any ... Chris Olive ...
      (comp.os.linux.misc)
    • Re: FreeBSD vs. OpenBSD
      ... Subject: FreeBSD vs. OpenBSD ... you can secure any OS before you put it in the wild. ... | OpenBSD boasts that they test the patch branch before its posted. ...
      (Security-Basics)
    • Re: RX (download) limit problem
      ... > I've been seeing a strange problem with my 5.4-STABLE freebsd ... > behind it or the firewall itself) can get a decent rate. ... > In talking to some openBSD guys we had a theory that it might be something ... > the upload and download being kept symmetric and hence so low on the ...
      (freebsd-current)