From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <44C7979B.7040906@seskion.de> Date: Wed, 26 Jul 2006 18:26:03 +0200 From: Juergen Pfeiffer MIME-Version: 1.0 References: <44C77FD2.2030208@seskion.de> <20060726083455.08989fc6@localhost.localdomain> In-Reply-To: <20060726083455.08989fc6@localhost.localdomain> Content-Type: multipart/alternative; boundary="------------040508000704080206010300" 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... --------------040508000704080206010300 Content-Type: text/plain; charset="iso-8859-1"; format="flowed" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Stephen Hemminger schrieb: > > Did the bridge get set up right? Did the interfaces come up (look at 'brc= tl showstp br0') > =20 $ 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 $ brctl addif br0 eth1 $ ifconfig eth0 0.0.0.0 up $ ifconfig eth1 0.0.0.0 up $ ifconfig br0 0.0.0.0 up $ 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 2 00:11:95:34:af:01 no 2.91 2 00:c0:02:39:53:52 no 2.76 $ 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 bridge forward=20 delay 15.00 ageing time 300.00 hello timer 1.45 tcn=20 timer 0.00 topology change timer 0.00 gc timer =20 273.04 flags eth0 (1) port id 8001 state =20 learning designated root 8000.001122334450 path cost 100 designated bridge 8000.001122334450 message age=20 timer 0.00 designated port 8001 forward delay=20 timer 3.48 designated cost 0 hold=20 timer 0.44 flags eth1 (2) port id 8002 state =20 learning designated root 8000.001122334450 path cost 100 designated bridge 8000.001122334450 message age=20 timer 0.00 designated port 8002 forward delay=20 timer 3.45 designated cost 0 hold=20 timer 0.43 flags > The bridge is sensitive to the network devices reporting carrier properly, > so a bad network driver or card will make it not work. > > =20 --=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_ ------------------------------------------------------------------------ --------------040508000704080206010300 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Stephen Hemminger schrieb:

Did the bridge get set up right? Did the interfaces come up (look at 'brctl showstp br0')
  
$ 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
$ brctl addif br0 eth1
$ ifconfig eth0 0.0.0.0 up
$ ifconfig eth1 0.0.0.0 up
$ ifconfig br0 0.0.0.0 up

$ 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
  2     00:11:95:34:af:01       no                 2.91
  2     00:c0:02:39:53:52       no                 2.76
$ 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                 bridge forward delay      15.00
 ageing time             300.00
 hello timer               1.45                 tcn timer                  0.00
 topology change timer     0.00                 gc timer                 273.04
 flags


eth0 (1)
 port id                8001                    state                  learning
 designated root        8000.001122334450       path cost                100
 designated bridge      8000.001122334450       message age timer          0.00
 designated port        8001                    forward delay timer        3.48
 designated cost           0                    hold timer                 0.44
 flags

eth1 (2)
 port id                8002                    state                  learning
 designated root        8000.001122334450       path cost                100
 designated bridge      8000.001122334450       message age timer          0.00
 designated port        8002                    forward delay timer        3.45
 designated cost           0                    hold timer                 0.43
 flags



The bridge is sensitive to the network devices reporting carrier properly,
so a bad network driver or card will make it not work.

  



--

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

--------------040508000704080206010300--