Networking Forums

Networking Forums > Computer Networking > Linux Networking > Setting up a bridge disables IP networking?

Reply
Thread Tools Display Modes

Setting up a bridge disables IP networking?

 
 
Olaf Klischat
Guest
Posts: n/a

 
      04-26-2008, 03:49 PM
I have a Linux box with an ethernet adaptor (eth0) that connects into
the local (TCP/IP) LAN. This works.

If I do "brctl addbr br0; brctl addif br0 eth0; ifconfig br0 up", that
IP connection goes dead immediately. No IP packets can be received or
transmitted on eth0, neither pings nor TCP nor anything else. However,
I can still transmit and receive other ethernet frames on eth0 without
problems. I used Scapy and Wireshark to confirm that I can send ARP
frames via eth0 to another host in the LAN, that host receives the
frame and sends back a reply frame, which is received on eth0 on the
bridge host again. No problems there.

How is that even possible? The bridge code should know nothing about
ARP or IP, so how can it make a difference whether I send ARP or IP
over the ethernet interface?

(everything in /proc/sys/net/bridge/bridge-nf-* is set to 0, so no
netfiltering should be done)

(as soon as I "brctl delif br0 eth0", the IP connection starts working
again)
 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      04-26-2008, 04:05 PM
Olaf Klischat wrote:
> I have a Linux box with an ethernet adaptor (eth0) that connects into
> the local (TCP/IP) LAN. This works.
>
> If I do "brctl addbr br0; brctl addif br0 eth0; ifconfig br0 up", that
> IP connection goes dead immediately. No IP packets can be received or
> transmitted on eth0, neither pings nor TCP nor anything else. However,
> I can still transmit and receive other ethernet frames on eth0 without
> problems. I used Scapy and Wireshark to confirm that I can send ARP
> frames via eth0 to another host in the LAN, that host receives the
> frame and sends back a reply frame, which is received on eth0 on the
> bridge host again. No problems there.
>
> How is that even possible? The bridge code should know nothing about
> ARP or IP, so how can it make a difference whether I send ARP or IP
> over the ethernet interface?
>
> (everything in /proc/sys/net/bridge/bridge-nf-* is set to 0, so no
> netfiltering should be done)
>
> (as soon as I "brctl delif br0 eth0", the IP connection starts working
> again)



Did you remember to set up the IP address and
netmask to br0? Also, did you change the routing
previously set to eth0 to go via br0 now?

When you build a bridge, the components are not
used directly as IP interfaces. The IP parameters
belong to the aggregated interface (here: br0).

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
Olaf Klischat
Guest
Posts: n/a

 
      04-26-2008, 04:58 PM
Tauno Voipio <(E-Mail Removed)> writes:

> Olaf Klischat wrote:
>> I have a Linux box with an ethernet adaptor (eth0) that connects into
>> the local (TCP/IP) LAN. This works.
>>
>> If I do "brctl addbr br0; brctl addif br0 eth0; ifconfig br0 up", that
>> IP connection goes dead immediately. No IP packets can be received or
>> transmitted on eth0, neither pings nor TCP nor anything else. However,
>> I can still transmit and receive other ethernet frames on eth0 without
>> problems. I used Scapy and Wireshark to confirm that I can send ARP
>> frames via eth0 to another host in the LAN, that host receives the
>> frame and sends back a reply frame, which is received on eth0 on the
>> bridge host again. No problems there.
>>
>> How is that even possible? The bridge code should know nothing about
>> ARP or IP, so how can it make a difference whether I send ARP or IP
>> over the ethernet interface?
>>
>> (everything in /proc/sys/net/bridge/bridge-nf-* is set to 0, so no
>> netfiltering should be done)
>>
>> (as soon as I "brctl delif br0 eth0", the IP connection starts working
>> again)

>
>
> Did you remember to set up the IP address and
> netmask to br0?


I did exactly what I wrote and nothing more, so no, I didn't reassign
IP addresses. I know that I'm supposed to assign the IP address to the
bridge device, not to the constituent devices. Before mindlessly
copying scripts from tutorials though, I thought I'd like to
understand what's actually going on here. So, I'd love it if you or
somebody else could explain how the bridge code actually works here,
how the behaviour I observed (ARP goes through, IP doesn't) comes
about and, ideally, why it is logical and correct for the code to work
the way it does here.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a SmartBridges air bridge total james.perrins@gmail.com Wireless Internet 4 10-26-2006 07:41 PM
Setting up a bridge Jim Wireless Internet 4 07-19-2006 11:37 PM
MN-720 disables built-in wired networking - how to fix Dave T Broadband Hardware 0 04-27-2004 02:22 PM
setting up a bridge Antoine Cellerier Windows Networking 5 04-17-2004 07:26 PM
Setting up a wireless bridge Dirk Wireless Internet 2 02-07-2004 09:47 PM



1 2 3 4 5 6 7 8 9 10 11