• no traffic between 2 bridges on two Linux hotst

    From wkevin@1:0/0 to All on Fri Jul 25 09:51:57 2014
    Hi,
    I have two Linux hosts connected directly via a cable.

    I can ping one host from the other.

    I added a bridge on machine A by:

    ip link add p4p1 name mybr type bridge
    ip link set p4p1 down
    ip addr add 2.2.2.2/24 dev mybr
    ip link set mybr up


    I added a bridge on machine B by:
    ip link add p3p1 name mybr type bridge
    ip link set p3p1 down
    ip addr add 2.2.2.200/24 dev mybr
    ip link set mybr up

    On both machines I have

    ethtool mybr
    Settings for mybr:
    Link detected: yes

    However, I don't have traffic from one machine to the other:

    ping 2.2.2.200 from 2.2.2.2 does not work (and vice versa)

    Running "ifconfig mybr" on both machines shows that the Rx counters are not incremented (there are no Rx errors); The Tx counters on both sides are incremented.

    Any ideas what should I do to enable traffic ?


    regards,
    Kevin


    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb
  • From ramirose@gmail.com@1:0/0 to All on Fri Jul 25 10:58:03 2014
    Hi,
    The following script (on both sides) should work:

    #!/bin/sh

    ip link add name mybr type bridge
    ip link set dev mybr up

    ip link set dev eth0 promisc on
    ip link set dev eth0 up

    ip link set dev eth0 master mybr

    #Now assign an IP address with ip addr add x.x.x.x/24 dev mybr

    Regards
    Rami Rosen

    http://ramirose.wix.com/ramirosen


    On Friday, July 25, 2014 12:51:57 PM UTC+3, wkevin wrote:
    Hi,

    I have two Linux hosts connected directly via a cable.



    I can ping one host from the other.



    I added a bridge on machine A by:



    ip link add p4p1 name mybr type bridge

    ip link set p4p1 down

    ip addr add 2.2.2.2/24 dev mybr

    ip link set mybr up





    I added a bridge on machine B by:

    ip link add p3p1 name mybr type bridge

    ip link set p3p1 down

    ip addr add 2.2.2.200/24 dev mybr

    ip link set mybr up



    On both machines I have



    ethtool mybr

    Settings for mybr:

    Link detected: yes



    However, I don't have traffic from one machine to the other:



    ping 2.2.2.200 from 2.2.2.2 does not work (and vice versa)



    Running "ifconfig mybr" on both machines shows that the Rx counters are not

    incremented (there are no Rx errors); The Tx counters on both sides are
    incremented.



    Any ideas what should I do to enable traffic ?





    regards,

    Kevin

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb