From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <46F132FA.8050501@mediatvcom.com> Date: Wed, 19 Sep 2007 16:32:26 +0200 From: David Martin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------030409030509020004060304" Subject: [Bridge] Arp & Bridge List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@lists.linux-foundation.org This is a multi-part message in MIME format. --------------030409030509020004060304 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit here is my bridge config : Let say br0 containing eth0 and eth1, with br0 IP adress is 192.168.0.10 For some reasons, I would like to be able to send packet from the bridge machine, only via a specific device. Thus, I set IP adress for eth0 and eth1 (let's say 192.168.0.11 and 192.168.0.12). I know a bridge is not supposed to have IP adress on the interfaces.. ___________________________ | br0 (192.168.0.10) | | +--- eth0 (192.168.0.11) --------------------------- ethernet wire --------------------- 192.168.0.1 | +--- eth1 (192.168.0.12) ----------------------------ethernet wire --------------------- 192.168.0.254 |___________________________| But when I try to send packet's from only one device, it does not work. ie : ping -I eth0 192.168.0.1 gives no response. I noticed that arp are sent and received by eth1, but they are of course received by br0 too. So the arp table is completed for br0 but not for eth1... The question is : Why does br0 update the arp table, but eth1 doesnt? how is the arp table are updated? eth1 is the one sending the request! Is there any mean to solve that? --------------030409030509020004060304 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit here is my bridge config :
Let say br0 containing eth0 and eth1, with br0 IP adress is 192.168.0.10

For some reasons, I would like to be able to send packet from the bridge machine, only via a specific device.
Thus, I set IP adress for eth0 and eth1 (let's say 192.168.0.11 and 192.168.0.12).
I know a bridge is not supposed to have IP adress on the interfaces..
 ___________________________
| br0 (192.168.0.10)                |
|  +---   eth0  (192.168.0.11)   --------------------------- ethernet wire --------------------- 192.168.0.1
|  +---   eth1  (192.168.0.12)   ----------------------------ethernet wire --------------------- 192.168.0.254

|___________________________|

But when I try to send packet's from only one device, it does not work.
ie : ping -I eth0 192.168.0.1  gives no response.

I noticed that arp are sent and received by eth1, but they are of course received by br0 too.
So the arp table is completed for br0 but not for eth1...

The question is :
Why does br0 update the arp table, but eth1 doesnt? how is the arp table are updated? eth1 is the one sending the request!
Is there any mean to solve that?
--------------030409030509020004060304--