All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] trying to bridge eth0 & usb0 but arp requests go to the wrong network
@ 2008-01-18 21:35 andreas
  2008-01-19 21:16 ` Stephen Hemminger
  2008-01-24  6:17 ` richardvoigt
  0 siblings, 2 replies; 3+ messages in thread
From: andreas @ 2008-01-18 21:35 UTC (permalink / raw)
  To: bridge

Hello,

I'm trying to get bridging to work between eth0 and usb0:

192.168.13.2  <--->  br0:192.168.13.47  <---> 192.168.13.1
                      usb0         eth0

192.168.13.2:~ # ping 192.168.13.1
... 100 % packet loss

On 192.168.13.1 I do see the arp requests but no icmp packet :-/

Just like "No traffic gets trough (except ARP and STP)" in the
FAQ on http://www.linux-foundation.org/en/Net:Bridge

Except ...

I can ping 192.168.13.1 from the bridge (192.168.13.47)
Trying to ping 192.168.13.2 from the bridge does not work
I do see the arp requests for 192.168.13.2 on 192.168.13.1 (!)

I get the same result if if enable STP on the bridge.

What is going wrong here? :-/

Any hint appreciated!

Regards,
andreas


PS: The bridge system is a SUSE 10.2 with kernel 2.6.18.8-0.7-default 
(incl. suse patches) usb0 is a MosChip usb nic using the mcs7830 driver 
and eth0 is an on board intel nic. both work fine in non bridging mode.

my routing table (just ignore the vmnet stuff):

bibo:/proc/sys/net/ipv4 # route -n
Kernel IP routing table
Destination  Gateway      Genmask       Flags Metric Ref Use Iface
10.0.0.0     0.0.0.0      255.255.255.0 U     0      0     0 vmnet8
192.168.13.0 0.0.0.0      255.255.255.0 U     0      0     0 br0
10.0.10.0    0.0.0.0      255.255.255.0 U     0      0     0 vmnet1
127.0.0.0    0.0.0.0      255.0.0.0     U     0      0     0 lo
0.0.0.0      192.168.13.1 0.0.0.0       UG    0      0     0 br0

Filtering is not enabled as far as I can see:

   bibo:/proc/sys/net/bridge # ls
   bridge-nf-call-arptables  bridge-nf-call-iptables
   bridge-nf-call-ip6tables  bridge-nf-filter-vlan-tagged
   bibo:/proc/sys/net/bridge # cat *
   0
   0
   0
   0
   bibo:/proc/sys/net/bridge #

   # iptables -vnL
   Chain INPUT (policy ACCEPT 842 packets, 683K bytes)
   pkts bytes target     prot opt in     out     source  destination
   Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
   pkts bytes target     prot opt in     out     source  destination
   Chain OUTPUT (policy ACCEPT 885 packets, 98734 bytes)
   pkts bytes target     prot opt in     out     source  destination

How I set up the bridge:

   # ifconfig usb0 0.0.0.0 down
   # ifconfig eth0 0.0.0.0 down
   # brctl addbr br0
   # brctl addif br0 eth0
   # brctl addif br0 usb0
   # ifconfig br0 192.168.13.47 up
   # brctl show br0
   bridge name   bridge id               STP enabled     interfaces
   br0           8000.000d6080dcd6       no              eth0
                                                         usb0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] trying to bridge eth0 & usb0 but arp requests go to the wrong network
  2008-01-18 21:35 [Bridge] trying to bridge eth0 & usb0 but arp requests go to the wrong network andreas
@ 2008-01-19 21:16 ` Stephen Hemminger
  2008-01-24  6:17 ` richardvoigt
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2008-01-19 21:16 UTC (permalink / raw)
  To: andreas; +Cc: bridge

On Fri, 18 Jan 2008 22:35:59 +0100 (CET)
andreas@bunten.de wrote:

> Hello,
> 
> I'm trying to get bridging to work between eth0 and usb0:
> 
> 192.168.13.2  <--->  br0:192.168.13.47  <---> 192.168.13.1
>                       usb0         eth0
> 
> 192.168.13.2:~ # ping 192.168.13.1
> ... 100 % packet loss
> 
> On 192.168.13.1 I do see the arp requests but no icmp packet :-/
> 
> Just like "No traffic gets trough (except ARP and STP)" in the
> FAQ on http://www.linux-foundation.org/en/Net:Bridge
> 
> Except ...
> 
> I can ping 192.168.13.1 from the bridge (192.168.13.47)
> Trying to ping 192.168.13.2 from the bridge does not work
> I do see the arp requests for 192.168.13.2 on 192.168.13.1 (!)
> 
> I get the same result if if enable STP on the bridge.
> 
> What is going wrong here? :-/
> 
> Any hint appreciated!
> 
> Regards,
> andreas
> 
> 
> PS: The bridge system is a SUSE 10.2 with kernel 2.6.18.8-0.7-default 
> (incl. suse patches) usb0 is a MosChip usb nic using the mcs7830 driver 
> and eth0 is an on board intel nic. both work fine in non bridging mode.
> 
> my routing table (just ignore the vmnet stuff):
> 
> bibo:/proc/sys/net/ipv4 # route -n
> Kernel IP routing table
> Destination  Gateway      Genmask       Flags Metric Ref Use Iface
> 10.0.0.0     0.0.0.0      255.255.255.0 U     0      0     0 vmnet8
> 192.168.13.0 0.0.0.0      255.255.255.0 U     0      0     0 br0
> 10.0.10.0    0.0.0.0      255.255.255.0 U     0      0     0 vmnet1
> 127.0.0.0    0.0.0.0      255.0.0.0     U     0      0     0 lo
> 0.0.0.0      192.168.13.1 0.0.0.0       UG    0      0     0 br0

Please reproduce without the interference of the proprietary VMware
network. Since VM networking does it's own bridging, I suspect interference.

Or go bug SUSE support

-- 
Stephen Hemminger <stephen.hemminger@vyatta.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] trying to bridge eth0 & usb0 but arp requests go to the wrong network
  2008-01-18 21:35 [Bridge] trying to bridge eth0 & usb0 but arp requests go to the wrong network andreas
  2008-01-19 21:16 ` Stephen Hemminger
@ 2008-01-24  6:17 ` richardvoigt
  1 sibling, 0 replies; 3+ messages in thread
From: richardvoigt @ 2008-01-24  6:17 UTC (permalink / raw)
  To: andreas; +Cc: bridge

On Jan 18, 2008 9:35 PM,  <andreas@bunten.de> wrote:
> Hello,
>
> I'm trying to get bridging to work between eth0 and usb0:
>
> 192.168.13.2  <--->  br0:192.168.13.47  <---> 192.168.13.1
>                       usb0         eth0
>
> 192.168.13.2:~ # ping 192.168.13.1
> ... 100 % packet loss
>
> On 192.168.13.1 I do see the arp requests but no icmp packet :-/
>
> Just like "No traffic gets trough (except ARP and STP)" in the
> FAQ on http://www.linux-foundation.org/en/Net:Bridge
>
> Except ...
>
> I can ping 192.168.13.1 from the bridge (192.168.13.47)
> Trying to ping 192.168.13.2 from the bridge does not work
> I do see the arp requests for 192.168.13.2 on 192.168.13.1 (!)
>
> I get the same result if if enable STP on the bridge.
>
> What is going wrong here? :-/
>
> Any hint appreciated!
>
> Regards,
> andreas
>
>
> PS: The bridge system is a SUSE 10.2 with kernel 2.6.18.8-0.7-default
> (incl. suse patches) usb0 is a MosChip usb nic using the mcs7830 driver
> and eth0 is an on board intel nic. both work fine in non bridging mode.
>
> my routing table (just ignore the vmnet stuff):
>
> bibo:/proc/sys/net/ipv4 # route -n
> Kernel IP routing table
> Destination  Gateway      Genmask       Flags Metric Ref Use Iface
> 10.0.0.0     0.0.0.0      255.255.255.0 U     0      0     0 vmnet8
> 192.168.13.0 0.0.0.0      255.255.255.0 U     0      0     0 br0
> 10.0.10.0    0.0.0.0      255.255.255.0 U     0      0     0 vmnet1
> 127.0.0.0    0.0.0.0      255.0.0.0     U     0      0     0 lo
> 0.0.0.0      192.168.13.1 0.0.0.0       UG    0      0     0 br0
>
> Filtering is not enabled as far as I can see:
>
>    bibo:/proc/sys/net/bridge # ls
>    bridge-nf-call-arptables  bridge-nf-call-iptables
>    bridge-nf-call-ip6tables  bridge-nf-filter-vlan-tagged
>    bibo:/proc/sys/net/bridge # cat *
>    0
>    0
>    0
>    0
>    bibo:/proc/sys/net/bridge #
>
>    # iptables -vnL
>    Chain INPUT (policy ACCEPT 842 packets, 683K bytes)
>    pkts bytes target     prot opt in     out     source  destination
>    Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
>    pkts bytes target     prot opt in     out     source  destination
>    Chain OUTPUT (policy ACCEPT 885 packets, 98734 bytes)
>    pkts bytes target     prot opt in     out     source  destination
>
> How I set up the bridge:
>
>    # ifconfig usb0 0.0.0.0 down
>    # ifconfig eth0 0.0.0.0 down

I've always had the best luck bringing bridge member interfaces "up"
(but with no IP address).

On my system, which uses the newer networking utilities, that would be

ip link set usb0 up
ip link set eth0 up

Also I configure the bridge IP address and bring it up before adding
slave interfaces, but I don't think the order should matter.

>    # brctl addbr br0
>    # brctl addif br0 eth0
>    # brctl addif br0 usb0
>    # ifconfig br0 192.168.13.47 up
>    # brctl show br0
>    bridge name   bridge id               STP enabled     interfaces
>    br0           8000.000d6080dcd6       no              eth0
>                                                          usb0
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-24  6:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18 21:35 [Bridge] trying to bridge eth0 & usb0 but arp requests go to the wrong network andreas
2008-01-19 21:16 ` Stephen Hemminger
2008-01-24  6:17 ` richardvoigt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.