[Bridge] Linux bridge configure

kylix kylix13 at 163.com
Thu Aug 30 21:48:06 PDT 2007


dear all:

   I try to configure a bridge in my embedded linux. I had fininshed
these operations below:

   1) configure kernel, select the option "802.1d bridge"

   2) compile bridge-utils

   3) issue these commands:
      ifconfig eth0 0.0.0.0
      ifconfig eth1 0.0.0.0
      brctl addbr vb
      brctl addif vb eth0
      brctl addif vb eth1
      ifconfig vb 192.168.110.24 up

   4) cd /proc/sys/net/bridge
      for x in bridge-*; do echo 0 > $x; done

   5) Then I connect pc0 to the eth0, and connect pc1 to eth1. The pc0
IP is 192.168.110.22, the pc1 IP is 192.168.110.60. It is failed that 
I ping pc1 from pc0.
      
   I input brctl command , and get these infomations:
****************************************************************************************   
# ./brctl show
bridge name     bridge id               STP enabled     interfaces
vb              8000.0050c20c3000       no              eth0
                                                        eth1
# ./brctl showmacs vb
port no mac addr                is local?       ageing timer
  1     00:16:17:4c:7b:4e       no                65.66
  1     00:16:17:91:6f:0b       no                36.87
  1     00:16:17:91:6f:0c       no               292.78
  1     00:17:31:49:2c:7a       no               223.91
  1     00:17:31:4a:4d:bd       no                14.28
  1     00:30:4f:26:8c:bb       no               165.50
  1     00:40:71:00:43:2a       no                 4.84
  1     00:40:71:00:43:8e       no                 3.70
  1     00:50:c2:0c:30:00       yes                0.00    /* eth0 */
  2     00:50:c2:0c:30:01       yes                0.00    /* eth1 */

# ./brctl showstp vb
vb
 bridge id              8000.0050c20c3000
 designated root        8000.0050c20c3000
 root port                 0                    path cost                  0
 max age                  20.00                 bridge max age           200.00
 hello time                2.00                 bridge hello time         20.00
 forward delay           150.00                 bridge forward delay      15.00
 ageing time             300.00
 hello timer               0.29                 tcn timer                  0.00
 topology change timer     0.00                 gc timer                   0.09
 flags


eth0 (1)
 port id                8001                    state                forwarding
 designated root        8000.0050c20c3000       path cost                 19
 designated bridge      8000.0050c20c3000       message age timer          0.00
 designated port        8001                    forward delay timer        0.00
 designated cost           0                    hold timer                 0.00
 flags

eth1 (2)
 port id                8002                    state                forwarding
 designated root        8000.0050c20c3000       path cost                100
 designated bridge      8000.0050c20c3000       message age timer          0.00
 designated port        8002                    forward delay timer        0.00
 designated cost           0                    hold timer                 0.00
 flags
******************************************************************************************

   Does anyone tell me how to set it ?  Gratitude for your help. 

       
Best regards
 				

        kylix
        kylix13 at 163.com
          2007-08-28



More information about the Bridge mailing list