From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <20061125074439.45592.qmail@web54210.mail.yahoo.com> Date: Fri, 24 Nov 2006 23:44:39 -0800 (PST) From: kasra kangavari MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-405759832-1164440679=:45227" Subject: [Bridge] Passing vlan tagged packets through linux bridge 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... --0-405759832-1164440679=:45227 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Hi I have some problem with passing vlan tagged packets through linux bridge. In the linux box eth0 , eth1 are add to br0 and the bridge is up and working correctly. I 've connected eth0 to trunk port of switch A and eth1 to trunk port of switch B. port 1,2,3 of each switch are in vlan 1. I've 2 client in the same subnet , client A connected to port 1 of switch A and client B connected to port 1 of switch . the problem is when I ping client A from clinet B or viceversa ,I can't ping with more than 1470bytes packet size! ping will work fine by 1470byte packet size but ping with more than 1470bytes packet size will fail. any idea?? KasrA --------------------------------- Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. --0-405759832-1164440679=:45227 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Hi

I have some problem with passing vlan tagged packets through linux bridge.
In the linux box eth0 , eth1  are add to br0 and the bridge is up and working correctly.
I 've connected eth0 to trunk port of switch A and eth1 to trunk port of switch B.
port 1,2,3 of each switch are in vlan 1. I've 2 client in the same subnet , client A connected to port 1 of switch A and client B connected to port 1 of switch . the problem is when I ping client A from clinet B or viceversa ,I can't ping with more than 1470bytes packet size!
ping will work fine by 1470byte packet size but ping with more than 1470bytes packet size will fail.
any idea??

KasrA


Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. --0-405759832-1164440679=:45227-- From mboxrd@z Thu Jan 1 00:00:00 1970 Sender: fulvio@zeroshell.net From: "Fulvio Ricciardi" Date: Sat, 25 Nov 2006 16:22:41 +0100 Message-id: <45685fc1.97.fad.217423974@webh4.fe.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge Reply-To: fulvio.ricciardi@zeroshell.net List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@lists.osdl.org Hi, I noticed the same problem with the kernel 2.6.16.21 but I didn't try with newer kernel. > Hi > > I have some problem with passing vlan tagged packets > through linux bridge. > In the linux box eth0 , eth1 are add to br0 and the > bridge is up and working correctly. > I 've connected eth0 to trunk port of switch A and eth1 > to trunk port of switch B. > port 1,2,3 of each switch are in vlan 1. I've 2 client in > the same subnet , client A connected to port 1 of switch A > and client B connected to port 1 of switch . the problem > is when I ping client A from clinet B or viceversa ,I > can't ping with more than 1470bytes packet size! > ping will work fine by 1470byte packet size but ping with > more than 1470bytes packet size will fail. > any idea?? > > KasrA > > > --------------------------------- > Check out the all-new Yahoo! Mail beta - Fire up a more > powerful email and get things done faster. > > _______________________________________________ > Bridge mailing list > Bridge@lists.osdl.org > https://lists.osdl.org/mailman/listinfo/bridge > From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <45686B94.60308@purdue.edu> Date: Sat, 25 Nov 2006 11:13:08 -0500 From: Roman Chertov MIME-Version: 1.0 References: <45685fc1.97.fad.217423974@webh4.fe.aruba.it> In-Reply-To: <45685fc1.97.fad.217423974@webh4.fe.aruba.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fulvio.ricciardi@zeroshell.net Cc: bridge@lists.osdl.org Unless you have Gigabit with jumbo frames you cannot send a packet larger than 1500bytes because this is the Maximum Transmission Unit (MTU). Roman Fulvio Ricciardi wrote: > Hi, > I noticed the same problem with the kernel 2.6.16.21 but I > didn't try with newer kernel. > > >> Hi >> >> I have some problem with passing vlan tagged packets >> through linux bridge. >> In the linux box eth0 , eth1 are add to br0 and the >> bridge is up and working correctly. >> I 've connected eth0 to trunk port of switch A and eth1 >> to trunk port of switch B. >> port 1,2,3 of each switch are in vlan 1. I've 2 client in >> the same subnet , client A connected to port 1 of switch A >> and client B connected to port 1 of switch . the problem >> is when I ping client A from clinet B or viceversa ,I >> can't ping with more than 1470bytes packet size! >> ping will work fine by 1470byte packet size but ping with >> more than 1470bytes packet size will fail. >> any idea?? >> >> KasrA >> >> >> --------------------------------- >> Check out the all-new Yahoo! Mail beta - Fire up a more >> powerful email and get things done faster. >> >> _______________________________________________ >> Bridge mailing list >> Bridge@lists.osdl.org >> https://lists.osdl.org/mailman/listinfo/bridge >> > _______________________________________________ > Bridge mailing list > Bridge@lists.osdl.org > https://lists.osdl.org/mailman/listinfo/bridge > > From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <20061126060423.50525.qmail@web54212.mail.yahoo.com> Date: Sat, 25 Nov 2006 22:04:23 -0800 (PST) From: kasra kangavari MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-293929382-1164521063=:50289" Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge 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... --0-293929382-1164521063=:50289 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Dear Roman If I don't use trunk over linux bridges(packets without vlan tag) then I can ping more than 1500bytes(MTU).the problem is vlan tagged packets. r u sure about jumbo frames that solve this problem ? --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. --0-293929382-1164521063=:50289 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Dear Roman

If I don't use trunk over linux bridges(packets without vlan tag) then I can ping more than 1500bytes(MTU).the problem is vlan tagged packets. r u sure about jumbo frames that solve this problem ?


Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. --0-293929382-1164521063=:50289-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 27 Nov 2006 13:31:03 +0100 From: Lutz Jaenicke Message-ID: <20061127123102.GA15052@innominate.com> References: <20061126060423.50525.qmail@web54212.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20061126060423.50525.qmail@web54212.mail.yahoo.com> Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@lists.osdl.org On Sat, Nov 25, 2006 at 10:04:23PM -0800, kasra kangavari wrote: > Dear Roman > =20 > If I don't use trunk over linux bridges(packets without vlan tag) then I= can ping more than 1500bytes(MTU).the problem is vlan tagged packets. r u = sure about jumbo frames that solve this problem ? Did you have a look at the MTUs of the interfaces? If you need to support VLAN tagged frames, at least the physical interfaces need to accept frames with additional 4 bytes on the wire. If this is not handled in the driver the 1500+ETH+VLAN-frames will already be dropped (not even be received) at the physical interfaces. You may have to allow an MTU of 1504 for this reason. Regards, Lutz --=20 Dr.-Ing. Lutz J=E4nicke CTO Innominate Security Technologies AG /protecting industrial networks/ tel: +49.30.6392-3308 fax: +49.30.6392-3307 Albert-Einstein-Str. 14 D-12489 Berlin, Germany www.innominate.com --------------------------------------------------------------- Visit us at the SPS/IPC/Drives in Nuernberg 28 - 30 November 2006, Hall 9, Stand 9-125 --------------------------------------------------------------- From mboxrd@z Thu Jan 1 00:00:00 1970 Sender: fulvio@zeroshell.net From: "Fulvio Ricciardi" Date: Sat, 25 Nov 2006 13:12:35 +0100 Message-id: <45683333.a0.5874.118976163@webh5.fe.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge Reply-To: fulvio@zeroshell.net List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kasra kangavari , bridge@lists.osdl.org Hi, I noticed the same problem with the kernel 2.6.16.21 but I didn't try with newer kernel. Regards Fulvio Ricciardi > Hi > > I have some problem with passing vlan tagged packets > through linux bridge. > In the linux box eth0 , eth1 are add to br0 and the > bridge is up and working correctly. > I 've connected eth0 to trunk port of switch A and eth1 > to trunk port of switch B. > port 1,2,3 of each switch are in vlan 1. I've 2 client in > the same subnet , client A connected to port 1 of switch A > and client B connected to port 1 of switch . the problem > is when I ping client A from clinet B or viceversa ,I > can't ping with more than 1470bytes packet size! > ping will work fine by 1470byte packet size but ping with > more than 1470bytes packet size will fail. > any idea?? > > KasrA > > > --------------------------------- > Check out the all-new Yahoo! Mail beta - Fire up a more > powerful email and get things done faster. > > _______________________________________________ > Bridge mailing list > Bridge@lists.osdl.org > https://lists.osdl.org/mailman/listinfo/bridge > From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <456B277B.5030103@candelatech.com> Date: Mon, 27 Nov 2006 09:59:23 -0800 From: Ben Greear MIME-Version: 1.0 References: <45683333.a0.5874.118976163@webh5.fe.aruba.it> In-Reply-To: <45683333.a0.5874.118976163@webh5.fe.aruba.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fulvio@zeroshell.net Cc: kasra kangavari , bridge@lists.osdl.org Fulvio Ricciardi wrote: > Hi, > I noticed the same problem with the kernel 2.6.16.21 but I > didn't try with newer kernel. > Use an Intel pro/100 or pro/1000 driver..they are known to work with VLANs. I guess it's also possible that it's a problem in the bridging code, so try the latest kernel as well... Ben > Regards > Fulvio Ricciardi > > >> Hi >> >> I have some problem with passing vlan tagged packets >> through linux bridge. >> In the linux box eth0 , eth1 are add to br0 and the >> bridge is up and working correctly. >> I 've connected eth0 to trunk port of switch A and eth1 >> to trunk port of switch B. >> port 1,2,3 of each switch are in vlan 1. I've 2 client in >> the same subnet , client A connected to port 1 of switch A >> and client B connected to port 1 of switch . the problem >> is when I ping client A from clinet B or viceversa ,I >> can't ping with more than 1470bytes packet size! >> ping will work fine by 1470byte packet size but ping with >> more than 1470bytes packet size will fail. >> any idea?? >> >> KasrA >> >> >> --------------------------------- >> Check out the all-new Yahoo! Mail beta - Fire up a more >> powerful email and get things done faster. >> >> _______________________________________________ >> Bridge mailing list >> Bridge@lists.osdl.org >> https://lists.osdl.org/mailman/listinfo/bridge >> >> > _______________________________________________ > Bridge mailing list > Bridge@lists.osdl.org > https://lists.osdl.org/mailman/listinfo/bridge > -- Ben Greear Candela Technologies Inc http://www.candelatech.com From mboxrd@z Thu Jan 1 00:00:00 1970 Sender: fulvio@zeroshell.net From: "Fulvio Ricciardi" Date: Mon, 27 Nov 2006 20:12:03 +0100 Message-id: <456b3883.35b.3d57.69000436@webmailh3.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge Reply-To: fulvio.ricciardi@zeroshell.net List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ben Greear , fulvio@zeroshell.net Cc: kasra kangavari , bridge@lists.osdl.org > Fulvio Ricciardi wrote: > > Hi, > > I noticed the same problem with the kernel 2.6.16.21 but > > I didn't try with newer kernel. > > > > Use an Intel pro/100 or pro/1000 driver..they are known to > work with VLANs. > > I guess it's also possible that it's a problem in the > bridging code, so try the latest kernel > as well... I used Intel pro/100 in my test and I verified that the interfaces work fine with vlan tagged and large packets, but when I connect in bridge two interfaces and add a vlan to br0 interface, this works only with small packets (< 1470 bytes). I have not tried with latest kernel yet. Regards Fulvio Ricciardi > > > >> Hi > >> > >> I have some problem with passing vlan tagged packets > >> through linux bridge. > >> In the linux box eth0 , eth1 are add to br0 and the > >> bridge is up and working correctly. > >> I 've connected eth0 to trunk port of switch A and > eth1 >> to trunk port of switch B. > >> port 1,2,3 of each switch are in vlan 1. I've 2 client > in >> the same subnet , client A connected to port 1 of > switch A >> and client B connected to port 1 of switch . > the problem >> is when I ping client A from clinet B or > viceversa ,I >> can't ping with more than 1470bytes packet > size! >> ping will work fine by 1470byte packet size but > ping with >> more than 1470bytes packet size will fail. > >> any idea?? > >> > >> KasrA > >> > >> > >> --------------------------------- > >> Check out the all-new Yahoo! Mail beta - Fire up a more > >> powerful email and get things done faster. > >> > >> _______________________________________________ > >> Bridge mailing list > >> Bridge@lists.osdl.org > >> https://lists.osdl.org/mailman/listinfo/bridge > >> > >> > > _______________________________________________ > > Bridge mailing list > > Bridge@lists.osdl.org > > https://lists.osdl.org/mailman/listinfo/bridge > > > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com > > > _______________________________________________ > Bridge mailing list > Bridge@lists.osdl.org > https://lists.osdl.org/mailman/listinfo/bridge From mboxrd@z Thu Jan 1 00:00:00 1970 Sender: fulvio@zeroshell.net From: "Fulvio Ricciardi" Date: Fri, 01 Dec 2006 18:09:14 +0100 Message-id: <457061ba.3a6.7c77.1170958095@webmailh3.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: [Bridge] Passing vlan tagged packets through linux bridge Reply-To: fulvio.ricciardi@zeroshell.net List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@lists.osdl.org > Use an Intel pro/100 or pro/1000 driver..they are known to > work with VLANs. > > I guess it's also possible that it's a problem in the > bridging code, so try the latest kernel > as well... I compiled the latest 2.6.19 kernel and tested it with two 3COM 3c905c fast ethernet interfaces which work fine with vlan 802.1q tagging, but when I have added the eth0 and eth1 to br0 the bridge doesn't forward tagged packets larger than 1472 bytes. I remember that with older kernels (<2.6.15) large tagged packets was forwarded. What is the problem? Any chance to have a patch? Thanks in advance for your answers. Best Regards Fulvio Ricciardi -------------------------------------------------------------------- Fulvio Ricciardi web: http://www.zeroshell.net/eng/ skype: zeroshellnet Phone: +3908321835630 From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 1 Dec 2006 10:29:24 -0800 From: Stephen Hemminger Message-ID: <20061201102924.7e1045d2@freekitty> In-Reply-To: <457061ba.3a6.7c77.1170958095@webmailh3.aruba.it> References: <457061ba.3a6.7c77.1170958095@webmailh3.aruba.it> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fulvio.ricciardi@zeroshell.net Cc: bridge@lists.osdl.org On Fri, 01 Dec 2006 18:09:14 +0100 "Fulvio Ricciardi" wrote: > > Use an Intel pro/100 or pro/1000 driver..they are known to > > work with VLANs. > > > > I guess it's also possible that it's a problem in the > > bridging code, so try the latest kernel > > as well... > > I compiled the latest 2.6.19 kernel and tested it with two > 3COM 3c905c fast ethernet interfaces which work fine with > vlan 802.1q tagging, but when I have added the eth0 and eth1 > to br0 the bridge doesn't forward tagged packets larger than > 1472 bytes. I remember that with older kernels (<2.6.15) > large tagged packets was forwarded. > What is the problem? Any chance to have a patch? > Thanks in advance for your answers. > Best Regards > Fulvio Ricciardi > This code might be dropping it, but don't see why because it is already checking for VLAN net/bridge/br_forward.c static inline unsigned packet_length(const struct sk_buff *skb) { return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0); } int br_dev_queue_push_xmit(struct sk_buff *skb) { /* drop mtu oversized packets except gso */ if (packet_length(skb) > skb->dev->mtu && !skb_is_gso(skb)) kfree_skb(skb); -- Stephen Hemminger From mboxrd@z Thu Jan 1 00:00:00 1970 Sender: fulvio@zeroshell.net From: "Fulvio Ricciardi" Date: Fri, 01 Dec 2006 22:19:17 +0100 Message-id: <45709c55.376.25d.475472111@webmailh4.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [Bridge] Passing vlan tagged packets through linux bridge Reply-To: fulvio.ricciardi@zeroshell.net List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@osdl.org > > I compiled the latest 2.6.19 kernel and tested it with > > two 3COM 3c905c fast ethernet interfaces which work fine > > with vlan 802.1q tagging, but when I have added the eth0 > > and eth1 to br0 the bridge doesn't forward tagged > > packets larger than 1472 bytes. I remember that with > > older kernels (<2.6.15) large tagged packets was > > forwarded. What is the problem? Any chance to have a > > patch? Thanks in advance for your answers. > > Best Regards > > Fulvio Ricciardi > > > > > This code might be dropping it, but don't see why because > it is already checking for VLAN > > net/bridge/br_forward.c > > static inline unsigned packet_length(const struct sk_buff > *skb) { > return skb->len - (skb->protocol == htons(ETH_P_8021Q) > ? VLAN_HLEN : 0); } > > int br_dev_queue_push_xmit(struct sk_buff *skb) > { > /* drop mtu oversized packets except gso */ > if (packet_length(skb) > skb->dev->mtu && > !skb_is_gso(skb)) > kfree_skb(skb); > > -- > Stephen Hemminger I don't think the function br_dev_queue_push_xmit(struct sk_buff *skb) drops the large tagged packets because the size limit I found with the tests is 1472 bytes and not 1496 (MTU-4). -------------------------------------------------------------------- Fulvio Ricciardi web: http://www.zeroshell.net/eng/ skype: zeroshellnet Phone: +3908321835630 -------------------------------------- This Email Was brought to you by WebMail A Netwin Web Based EMail Client http://netwinsite.com/webmail/tag.htm