From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <44C8843A.4010200@seskion.de> Date: Thu, 27 Jul 2006 11:15:38 +0200 From: Juergen Pfeiffer MIME-Version: 1.0 References: <44C77FD2.2030208@seskion.de> <20060726083455.08989fc6@localhost.localdomain> <44C7979B.7040906@seskion.de> <20060726101335.67406ee8@localhost> In-Reply-To: <20060726101335.67406ee8@localhost> Content-Type: multipart/alternative; boundary="------------010209080403040407050606" Subject: Re: [Bridge] Is bridgeing possible with kernel 2.6.10 List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@lists.osdl.org This is a multi-part message in MIME format... --------------010209080403040407050606 Content-Type: text/plain; charset="iso-8859-1"; format="flowed" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Stephen Hemminger schrieb: > > The bridge starts in the learning state doesn't forward until the > forwarding delay (30 seconds) in expired. You need to be either patient > or set the delay to a lower value. > > =20 Hi Here is the trace of my test: After the output of "now do pings!", i started to ping on computer=20 192.168.1.1 (MAC=3D00:50:fc:93:e0:9c), connected to eth1 of my bridge to=20 computer 192.168.1.33 (MAC=3D00:14:22:f2:5d:70), connected to eth0 of my=20 bridge. =3D> No Responses! May it be a problem of my ethernet driver=20 (drivers/net/fec.c for Freescale ColdFire 5485) ?? *$ /mnt/mtd/startbridge* + ifconfig eth0 0.0.0.0 down + ifconfig eth1 0.0.0.0 down + brctl addbr br0 + brctl stp br0 on + brctl addif br0 eth0 device eth0 entered promiscuous mode + brctl addif br0 eth1 device eth1 entered promiscuous mode + ifconfig eth0 0.0.0.0 up + ifconfig eth1 0.0.0.0 up + ifconfig br0 0.0.0.0 up br0: port 2(eth1) entering listening state br0: port 1(eth0) entering listening state + sleep 35 br0: port 2(eth1) entering learning state br0: port 1(eth0) entering learning state br0: topology change detected, propagating br0: port 2(eth1) entering forwarding state br0: topology change detected, propagating br0: port 1(eth0) entering forwarding state + echo 'now do pings!' now do pings! + sleep 10 + brctl show bridge name bridge id STP enabled interfaces br0 8000.001122334450 yes eth0 eth1 + brctl showmacs br0 port no mac addr is local? ageing timer 1 00:11:22:33:44:50 yes 0.00 2 00:11:22:33:44:51 yes 0.00 * 1 00:14:22:f2:5d:70 no 10.13* 2 00:40:05:41:12:8d no 4.52 * 2 00:50:fc:93:e0:9c no 0.38 * 2 00:c0:02:39:53:52 no 7.88 + brctl showstp br0 br0 bridge id 8000.001122334450 designated root 8000.001122334450 root port 0 path cost 0 max age 20.00 bridge max=20 age 20.00 hello time 2.00 bridge hello=20 time 2.00 forward delay 15.00 b rbr0id:ge fporowarrdt d=20 el2ay(1 d a geeinng ttiemer i 3n00g.0 0 tihesllao btilmeer d s0.t61a t tecn o imberr 0 : 0 .0p0 l rtotpo lo1gy( cehatnghe 0ti)me r e n19t.7e0 r =20 igcn tg8 _Cefldag s s tTOaPOtLOeGY HANGE TOPOLOGY_CHANGE_DETECTED eth0 (1) port id 8001 state =20 forwarding pdesignated root d80e00v.0i01c12e23 34e45t0 hpa1th closet =20 f 0 34rdeosimgniatsedc buriodgue s80 00m.0o01d12e23 h 45b0 rme0ss:ag e pagoe rtitme r 2 ( 0e.0t0 1de)si gneatnedt peorrt i80n01g fdoriwasrda=20 dbellaye tde d esignated cost 0 hold=20 timer 0.00 flags eth1 (2) port id 8002 state =20 forwardidne v diescigena teed trohot0 8 00l0.e00f11t22 33p44r50o pmatih=20 scocstu s d dmesoigdnaete brbidrge0 8:00 0.p00o11r22t33 44150( meestsahge0 a)ge =20 teimnert n ded esdiginastead bpolrte 8d00 2 s tfoarwtared lay timer 0.00 designated cost 0 hold=20 timer 0.00 flags + ifconfig br0 Link encap:Ethernet HWaddr 00:11:22:33:44:50 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24 errors:0 dropped:0 overruns:0 frame:0 *TX packets:0* errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1499 (1.4 KiB) TX bytes:0 (0.0 B) eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:50 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 *RX packets:85* errors:0 dropped:0 overruns:0 frame:0 TX packets:229 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7232 (7.0 KiB) TX bytes:26956 (26.3 KiB) Interrupt:103 Base address:0x9000 eth1 Link encap:Ethernet HWaddr 00:11:22:33:44:51 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:946 errors:0 dropped:0 overruns:0 frame:0 TX packets:93 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:167451 (163.5 KiB) TX bytes:62a3 (6.1 KiB) Interrupt:102 Base address:0x9800 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:268 (268.0 B) TX bytes:268 (268.0 B) + ifconfig br0 down + brctl delif br0 eth1 + brctl delif br0 eth0 + brctl delbr br0 + ifconfig eth1 0.0.0.0 down + ifconfig eth0 0.0.0.0 down *$ * --=20 ------------------------------------------------------------------------ J=FCrgen Pfeiffer =09 =09 * _mailto:j.pfeiffer@seskion.de_ SesKion Softwareentwicklung und System Konzeption GmbH =09 =09 ( : +49-711-9905814 Karlsruher Str. 11/1 =09 =09 Fax: +49-711-9905827 D-70771 Leinfelden-Echterdingen =09 =09 1 _http://www.seskion.de_ ------------------------------------------------------------------------ --------------010209080403040407050606 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Stephen Hemminger schrieb:

The bridge starts in the learning state doesn't forward until the
forwarding delay (30 seconds) in expired. You need to be either patient
or set the delay to a lower value.

  

Hi
Here is the trace of my test:
After the output of "now do pings!", i started to ping on computer 192.168.1.1 (MAC=00:50:fc:93:e0:9c), connected to eth1 of my bridge to computer 192.168.1.33 (MAC=00:14:22:f2:5d:70), connected to eth0 of my bridge.
=> No Responses! May it be a problem of my ethernet driver (drivers/net/fec.c for Freescale ColdFire 5485) ??


$ /mnt/mtd/startbridge
+ ifconfig eth0 0.0.0.0 down
+ ifconfig eth1 0.0.0.0 down
+ brctl addbr br0
+ brctl stp br0 on
+ brctl addif br0 eth0
device eth0 entered promiscuous mode
+ brctl addif br0 eth1
device eth1 entered promiscuous mode
+ ifconfig eth0 0.0.0.0 up
+ ifconfig eth1 0.0.0.0 up
+ ifconfig br0 0.0.0.0 up
br0: port 2(eth1) entering listening state
br0: port 1(eth0) entering listening state
+ sleep 35
br0: port 2(eth1) entering learning state
br0: port 1(eth0) entering learning state
br0: topology change detected, propagating
br0: port 2(eth1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
+ echo 'now do pings!'
now do pings!
+ sleep 10
+ brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.001122334450       yes             eth0
                                                        eth1
+ brctl showmacs br0
port no mac addr                is local?       ageing timer
  1     00:11:22:33:44:50       yes                0.00
  2     00:11:22:33:44:51       yes                0.00
  1     00:14:22:f2:5d:70       no                10.13
  2     00:40:05:41:12:8d       no                 4.52
  2     00:50:fc:93:e0:9c       no                 0.38
  2     00:c0:02:39:53:52       no                 7.88
+ brctl showstp br0
br0
 bridge id              8000.001122334450
 designated root        8000.001122334450
 root port                 0                    path cost                  0
 max age                  20.00                 bridge max age            20.00
 hello time                2.00                 bridge hello time          2.00
 forward delay            15.00 b               rbr0id:ge  fporowarrdt d el2ay(1
d a geeinng ttiemer             i 3n00g.0 0
 tihesllao btilmeer     d           s0.t61a             t       tecn
o imberr                0  : 0 .0p0
l rtotpo lo1gy( cehatnghe 0ti)me r      e  n19t.7e0     r               igcn tg8
_Cefldag s      s               tTOaPOtLOeGY
  HANGE TOPOLOGY_CHANGE_DETECTED


eth0 (1)
 port id                8001                    state                forwarding
pdesignated root        d80e00v.0i01c12e23 34e45t0      hpa1th  closet  f      0
34rdeosimgniatsedc buriodgue    s80 00m.0o01d12e23
h 45b0  rme0ss:ag e pagoe rtitme r      2  ( 0e.0t0
  1de)si gneatnedt peorrt       i80n01g                 fdoriwasrda dbellaye tde
 d
  esignated cost           0                    hold timer                 0.00
 flags

eth1 (2)
 port id                8002                    state                forwardidne
v diescigena teed trohot0       8 00l0.e00f11t22 33p44r50o      pmatih scocstu s
d dmesoigdnaete
  brbidrge0     8:00 0.p00o11r22t33 44150(      meestsahge0 a)ge  teimnert     n
ded esdiginastead bpolrte       8d00 2  s               tfoarwtared
  lay timer        0.00
 designated cost           0                    hold timer                 0.00
 flags

+ ifconfig
br0       Link encap:Ethernet  HWaddr 00:11:22:33:44:50
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1499 (1.4 KiB)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:50
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:85 errors:0 dropped:0 overruns:0 frame:0
          TX packets:229 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7232 (7.0 KiB)  TX bytes:26956 (26.3 KiB)
          Interrupt:103 Base address:0x9000

eth1      Link encap:Ethernet  HWaddr 00:11:22:33:44:51
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:946 errors:0 dropped:0 overruns:0 frame:0
          TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:167451 (163.5 KiB)  TX bytes:62a3 (6.1 KiB)
          Interrupt:102 Base address:0x9800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:268 (268.0 B)  TX bytes:268 (268.0 B)

+ ifconfig br0 down
+ brctl delif br0 eth1
+ brctl delif br0 eth0
+ brctl delbr br0
+ ifconfig eth1 0.0.0.0 down
+ ifconfig eth0 0.0.0.0 down
$


--

Jürgen Pfeiffer

* mailto:j.pfeiffer@seskion.de
SesKion Softwareentwicklung und System Konzeption GmbH

( : +49-711-9905814
Karlsruher Str. 11/1

Fax: +49-711-9905827
D-70771 Leinfelden-Echterdingen

1 http://www.seskion.de

--------------010209080403040407050606--