* [Bridge] bridge is not forwarding the packet <Urgent, Please reply ASAP>
@ 2008-09-22 10:54 rahul bhardwaj
2008-09-22 15:33 ` Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: rahul bhardwaj @ 2008-09-22 10:54 UTC (permalink / raw)
To: bridge
[-- Attachment #1: Type: text/plain, Size: 2006 bytes --]
Hello to all,
I am stating my problem below in detail so that you all can understand it properly.
I am having setup of Linux box. In that box I am having one Ethernet interface eth0 and one wireless interface ath0. I have also configured one vlan port as eth0.100 with the help of vconfig (vconfig add eth 100). Now I have created two bridges br1 and br100. I have added eth0 into br1 so br1 is having only one interface. I have added ath0 and eth0.100 into br100. Physically eth0 is connected to a switch which is configured to handle vlan 100. DHCP server is also running into that switch to provide IP address to wireless stations. This is all about my setup.
After this I am associating one wireless station with the ath0. After successful association station issues a dhclient to get ip address, which reaches to ath0 interface of my Linux box. ath0 bridges that request to eth0.100. Now eth0.100 adds it's vlan tags and forward that request to the switch. Because switch is configured to support vlan 100, so it process the dhcp request and send back the dhcp response with vlan tag 100.
Now I don't know but this response is not reaching to ath0. I have putted wireshark and figured out that those dhcp responses are reaching on eth0 and as eth0 is part of br1 so this packet is reaching to br1 which is just discarding them all. So the wireless station is not getting the ip address. According to me eth0 should give these packets to eth0.100 port instead of br1. Or what I mean to say first vlan handling should be done priror then bridge handling. Do I need to change something into Linux kernel for that or there is some other problem with my setup?
Can anybody help me in this? If anybody want more detail I will provide. I am using Linux 2.6.15 kernel. Any kind of help will be much appreciated.
With Regards
Rahul Bhardwaj
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
[-- Attachment #2: Type: text/html, Size: 2324 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] bridge is not forwarding the packet <Urgent, Please reply ASAP>
2008-09-22 10:54 [Bridge] bridge is not forwarding the packet <Urgent, Please reply ASAP> rahul bhardwaj
@ 2008-09-22 15:33 ` Stephen Hemminger
2008-09-23 13:31 ` [Bridge] bridge is not forwarding the packet rahul bhardwaj
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2008-09-22 15:33 UTC (permalink / raw)
To: rahul bhardwaj; +Cc: bridge
On Mon, 22 Sep 2008 16:24:00 +0530 (IST)
rahul bhardwaj <rahul_bhardwaj36in@yahoo.co.in> wrote:
> Hello to all,
>
> I am stating my problem below in detail so that you all can understand it properly.
>
> I am having setup of Linux box. In that box I am having one Ethernet interface eth0 and one wireless interface ath0. I have also configured one vlan port as eth0.100 with the help of vconfig (vconfig add eth 100). Now I have created two bridges br1 and br100. I have added eth0 into br1 so br1 is having only one interface. I have added ath0 and eth0.100 into br100. Physically eth0 is connected to a switch which is configured to handle vlan 100. DHCP server is also running into that switch to provide IP address to wireless stations. This is all about my setup.
>
> After this I am associating one wireless station with the ath0. After successful association station issues a dhclient to get ip address, which reaches to ath0 interface of my Linux box. ath0 bridges that request to eth0.100. Now eth0.100 adds it's vlan tags and forward that request to the switch. Because switch is configured to support vlan 100, so it process the dhcp request and send back the dhcp response with vlan tag 100.
>
> Now I don't know but this response is not reaching to ath0. I have putted wireshark and figured out that those dhcp responses are reaching on eth0 and as eth0 is part of br1 so this packet is reaching to br1 which is just discarding them all. So the wireless station is not getting the ip address. According to me eth0 should give these packets to eth0.100 port instead of br1. Or what I mean to say first vlan handling should be done priror then bridge handling. Do I need to change something into Linux kernel for that or there is some other problem with my setup?
>
> Can anybody help me in this? If anybody want more detail I will provide. I am using Linux 2.6.15 kernel. Any kind of help will be much appreciated.
>
>
> With Regards
>
> Rahul Bhardwaj
Full bridging to wireless requires WDS which Linux wireless does not support (yet).
http://www.linuxfoundation.org/en/Net:Bridge#It_doesn.27t_work_with_my_Wireless_card.21
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] bridge is not forwarding the packet
2008-09-22 15:33 ` Stephen Hemminger
@ 2008-09-23 13:31 ` rahul bhardwaj
2008-09-23 20:06 ` Nicolas de Pesloüan
0 siblings, 1 reply; 6+ messages in thread
From: rahul bhardwaj @ 2008-09-23 13:31 UTC (permalink / raw)
To: bridge; +Cc: Stephen Hemminger
[-- Attachment #1: Type: text/plain, Size: 3820 bytes --]
Hi Stephen,
Thanks for your very prompt response!
Actually my
problem is not related to MAC address restrictions from wireless
interface/driver. The problem lies mainly in multiple bridges for different vlans.
Since bridging happens first, the packet ends up on wrong bridge and gets
discarded form that bridge. If Vlan
handling is done prior to bridge handling, my setup will work fine.
There is
also another thing which I did not understand. When we add an interface to
vlan, the newly created interface’s hard_header is set to vlan_dev_hard_header
function. This vlan_dev_hard_header adds the vlan tag for outing packet.
Interestingly
this happens after bridging code hand over the packet to interface. Conversely when
the packet is received, interface should remove the vlan tag and hand over the
packet to bridge. But we are seeing that bridge code is executing prior to vlan
handling.
Regards,
Rahul Bhardwaj
--- On Mon, 22/9/08, Stephen Hemminger <shemminger@vyatta.com> wrote:
From: Stephen Hemminger <shemminger@vyatta.com>
Subject: Re: [Bridge] bridge is not forwarding the packet <Urgent, Please reply ASAP>
To: "rahul bhardwaj" <rahul_bhardwaj36in@yahoo.co.in>
Cc: bridge@lists.linux-foundation.org
Date: Monday, 22 September, 2008, 8:33 AM
On Mon, 22 Sep 2008 16:24:00 +0530 (IST)
rahul bhardwaj <rahul_bhardwaj36in@yahoo.co.in> wrote:
> Hello to all,
>
> I am stating my problem below in detail so that you all can understand it
properly.
>
> I am having setup of Linux box. In that box I am having one Ethernet
interface eth0 and one wireless interface ath0. I have also configured one vlan
port as eth0.100 with the help of vconfig (vconfig add eth 100). Now I have
created two bridges br1 and br100. I have added eth0 into br1 so br1 is having
only one interface. I have added ath0 and eth0.100 into br100. Physically eth0
is connected to a switch which is configured to handle vlan 100. DHCP server is
also running into that switch to provide IP address to wireless stations. This
is all about my setup.
>
> After this I am associating one wireless station with the ath0. After
successful association station issues a dhclient to get ip address, which
reaches to ath0 interface of my Linux box. ath0 bridges that request to
eth0.100. Now eth0.100 adds it's vlan tags and forward that request to the
switch. Because switch is configured to support vlan 100, so it process the dhcp
request and send back the dhcp response with vlan tag 100.
>
> Now I don't know but this response is not reaching to ath0. I have
putted wireshark and figured out that those dhcp responses are reaching on eth0
and as eth0 is part of br1 so this packet is reaching to br1 which is just
discarding them all. So the wireless station is not getting the ip address.
According to me eth0 should give these packets to eth0.100 port instead of br1.
Or what I mean to say first vlan handling should be done priror then bridge
handling. Do I need to change something into Linux kernel for that or there is
some other problem with my setup?
>
> Can anybody help me in this? If anybody want more detail I will provide. I
am using Linux 2.6.15 kernel. Any kind of help will be much appreciated.
>
>
> With Regards
>
> Rahul Bhardwaj
Full bridging to wireless requires WDS which Linux wireless does not support
(yet).
http://www.linuxfoundation.org/en/Net:Bridge#It_doesn.27t_work_with_my_Wireless_card.21
_______________________________________________
Bridge mailing list
Bridge@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/bridge
Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/
[-- Attachment #2: Type: text/html, Size: 7902 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] bridge is not forwarding the packet
2008-09-23 13:31 ` [Bridge] bridge is not forwarding the packet rahul bhardwaj
@ 2008-09-23 20:06 ` Nicolas de Pesloüan
0 siblings, 0 replies; 6+ messages in thread
From: Nicolas de Pesloüan @ 2008-09-23 20:06 UTC (permalink / raw)
To: rahul bhardwaj; +Cc: bridge
rahul bhardwaj a écrit :
> Actually my problem is not related to MAC address restrictions from
> wireless interface/driver. The problem lies mainly in multiple bridges
> for different vlans. Since bridging happens first, the packet ends up on
> wrong bridge and gets discarded form that bridge. If Vlan handling is
> done prior to bridge handling, my setup will work fine.
Hi Rahul,
Did you try to use ebtables, to arrange for the first bridge to ignore
the packet tagged as VLAN 100, to give a chance for the second bridge to
see it ?
I remember seeing this a few month ago in the list, but failed to find
the exact post. 'hope you will find it by yourself.
Nicolas.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] bridge is not forwarding the packet
@ 2008-09-24 23:23 Leigh Sharpe
2008-09-29 7:06 ` rahul bhardwaj
0 siblings, 1 reply; 6+ messages in thread
From: Leigh Sharpe @ 2008-09-24 23:23 UTC (permalink / raw)
To: rahul bhardwaj, bridge; +Cc: Stephen Hemminger
[-- Attachment #1: Type: text/plain, Size: 5594 bytes --]
Hi Rahul,
If you're certain that your problem isn't as Stephen suggested, you
might want to have a look at this:
---
(From http://ebtables.sourceforge.net/brnf-faq.html
<http://ebtables.sourceforge.net/brnf-faq.html> )
How do I let vlan-tagged traffic go through a vlan bridge port and the
other traffic through a non-vlan bridge port?
Suppose eth0 and eth0.15 are ports of br0. Without countermeasures all
traffic, including traffic vlan-tagged with tag 15, entering the
physical device eth0 will go through the bridge port eth0. To make the
15-tagged traffic go through the eth0.15 bridge port, use the following
ebtables rule:
ebtables -t broute -A BROUTING -i eth0 --vlan-id 15 -j DROP
With the above rule, 15-tagged traffic will enter the bridge on the
physical device eth0, will then be brouted and enter the bridge port
eth0.15, the vlan header will be stripped, after which the packet is
bridged. The packet thus enters the BROUTING chain twice, the first time
with input device eth0 and the second time with input device eth0.15.
The other chains are only traversed once. All other traffic will be
bridged with input device eth0.
----
This describes how to make sure your VLAN tagged traffic ends up on the
bridge you want.
________________________________
From: bridge-bounces@lists.linux-foundation.org
[mailto:bridge-bounces@lists.linux-foundation.org] On Behalf Of rahul
bhardwaj
Sent: Tuesday, 23 September 2008 11:32 PM
To: bridge@lists.linux-foundation.org
Cc: Stephen Hemminger
Subject: Re: [Bridge] bridge is not forwarding the packet
Hi Stephen,
Thanks for your very prompt response!
Actually my problem is not related to MAC address restrictions from
wireless interface/driver. The problem lies mainly in multiple bridges
for different vlans. Since bridging happens first, the packet ends up on
wrong bridge and gets discarded form that bridge. If Vlan handling is
done prior to bridge handling, my setup will work fine.
There is also another thing which I did not understand. When we add an
interface to vlan, the newly created interface's hard_header is set to
vlan_dev_hard_header function. This vlan_dev_hard_header adds the vlan
tag for outing packet.
Interestingly this happens after bridging code hand over the packet to
interface. Conversely when the packet is received, interface should
remove the vlan tag and hand over the packet to bridge. But we are
seeing that bridge code is executing prior to vlan handling.
Regards,
Rahul Bhardwaj
--- On Mon, 22/9/08, Stephen Hemminger <shemminger@vyatta.com> wrote:
From: Stephen Hemminger <shemminger@vyatta.com>
Subject: Re: [Bridge] bridge is not forwarding the packet
<Urgent, Please reply ASAP>
To: "rahul bhardwaj" <rahul_bhardwaj36in@yahoo.co.in>
Cc: bridge@lists.linux-foundation.org
Date: Monday, 22 September, 2008, 8:33 AM
On Mon, 22 Sep 2008 16:24:00 +0530 (IST)
rahul bhardwaj <rahul_bhardwaj36in@yahoo.co.in> wrote:
> Hello to all,
>
> I am stating my problem below in detail so that you all can
understand it
properly.
>
> I am having setup of Linux box. In that box I am having one
Ethernet
interface eth0 and one wireless interface ath0. I have also
configured one vlan
port as eth0.100 with the
help of vconfig (vconfig add eth 100). Now I have
created two bridges br1 and br100. I have added eth0 into br1 so
br1 is having
only one interface. I have added ath0 and eth0.100 into br100.
Physically eth0
is connected to a switch which is configured to handle vlan 100.
DHCP server is
also running into that switch to provide IP address to wireless
stations. This
is all about my setup.
>
> After this I am associating one wireless station with the
ath0. After
successful association station issues a dhclient to get ip
address, which
reaches to ath0 interface of my Linux box. ath0 bridges that
request to
eth0.100. Now eth0.100 adds it's vlan tags and forward that
request to the
switch. Because switch is configured to support vlan 100, so it
process the dhcp
request and send back the dhcp response with vlan tag 100.
>
> Now I don't know but this response is not reaching to ath0. I
have
putted wireshark and figured out that those dhcp responses are
reaching on eth0
and as eth0 is part of br1 so this packet is reaching to br1
which is just
discarding them all. So the wireless station is not getting the
ip address.
According to me eth0 should give these packets to eth0.100 port
instead of br1.
Or what I mean to say first vlan handling should be done priror
then bridge
handling. Do I need to change something into Linux kernel for
that or there is
some other problem with my setup?
>
> Can anybody help me in this? If anybody want more detail I
will provide. I
am using Linux 2.6.15 kernel. Any kind of help will be much
appreciated.
>
>
> With Regards
>
> Rahul Bhardwaj
Full bridging to wireless requires WDS which Linux wireless does
not
support
(yet).
http://www.linuxfoundation.org/en/Net:Bridge#It_doesn.27t_work_with_my_W
ireless_card.21
_______________________________________________
Bridge mailing list
Bridge@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/bridge
________________________________
Share files, take polls, and make new friends - all under one roof.
Click here.
<http://in.rd.yahoo.com/tagline_groups_8/*http://in.promos.yahoo.com/gro
ups/>
[-- Attachment #2: Type: text/html, Size: 11861 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] bridge is not forwarding the packet
2008-09-24 23:23 Leigh Sharpe
@ 2008-09-29 7:06 ` rahul bhardwaj
0 siblings, 0 replies; 6+ messages in thread
From: rahul bhardwaj @ 2008-09-29 7:06 UTC (permalink / raw)
To: bridge, Leigh Sharpe; +Cc: Stephen Hemminger
[-- Attachment #1: Type: text/plain, Size: 6915 bytes --]
Hi Leigh,
Thanks a lot for your reply,
Leigh, your suggestion solves the current problem. But it might not
be exactly we what we want.I just want know like, is it possible to get the same behavior when
eth0 and eth0.15 are on different bridges?
With Regards
Rahul Bhardwaj
--- On Wed, 24/9/08, Leigh Sharpe <lsharpe@pacificwireless.com.au> wrote:
From: Leigh Sharpe <lsharpe@pacificwireless.com.au>
Subject: RE: [Bridge] bridge is not forwarding the packet
To: "rahul bhardwaj" <rahul_bhardwaj36in@yahoo.co.in>, bridge@lists.linux-foundation.org
Cc: "Stephen Hemminger" <shemminger@vyatta.com>
Date: Wednesday, 24 September, 2008, 4:23 PM
Hi Rahul,
If you're certain that your problem isn't as Stephen suggested, you
might want to have a look at this:
---
(From http://ebtables.sourceforge.net/brnf-faq.html )
How do I let vlan-tagged traffic go through a vlan
bridge port and the other traffic through
a non-vlan bridge port?
Suppose eth0 and eth0.15 are ports of br0. Without
countermeasures all traffic, including
traffic vlan-tagged with tag 15, entering the
physical device eth0 will go through the bridge port
eth0. To make the 15-tagged traffic go
through the eth0.15 bridge port, use the following
ebtables rule:
ebtables -t broute -A BROUTING -i eth0 --vlan-id 15
-j DROP
With the above rule, 15-tagged traffic will enter the
bridge on the physical device eth0, will
then be brouted and enter the bridge port
eth0.15, the vlan header will be stripped, after which the packet is bridged. The packet thus enters the BROUTING
chain twice, the first time with input
device eth0 and the second time with input device eth0.15.
The other chains are only traversed once. All other
traffic will be bridged with input device
eth0.
----
This describes how to make sure your VLAN tagged traffic ends up on the bridge you want.
From: bridge-bounces@lists.linux-foundation.org
[mailto:bridge-bounces@lists.linux-foundation.org] On Behalf Of rahul
bhardwaj
Sent: Tuesday, 23 September 2008 11:32 PM
To:
bridge@lists.linux-foundation.org
Cc: Stephen
Hemminger
Subject: Re: [Bridge] bridge is not forwarding the
packet
Hi Stephen,
Thanks for your very prompt
response!
_filtered #yiv972948746 {margin:1.0in 1.25in 1.0in 1.25in;}
#yiv972948746 P.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
#yiv972948746 LI.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
#yiv972948746 DIV.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
#yiv972948746 SPAN.EmailStyle15 {
COLOR:windowtext;FONT-FAMILY:Arial;}
#yiv972948746 DIV.Section1 {
}
Actually my problem is not
related to MAC address restrictions from wireless interface/driver. The
problem lies mainly in multiple bridges for different vlans. Since
bridging happens first, the packet ends up on wrong bridge and gets
discarded form that bridge. If Vlan handling is
done prior to bridge handling, my setup will work fine.
There
is also another thing which I did not understand. When we add an interface
to vlan, the newly created interface’s hard_header is set to
vlan_dev_hard_header function. This vlan_dev_hard_header adds the vlan tag
for outing packet.
Interestingly this happens
after bridging code hand over the packet to interface. Conversely when the
packet is received, interface should remove the vlan tag and hand over the
packet to bridge. But we are seeing that bridge code is executing prior to
vlan handling.
Regards,
Rahul
Bhardwaj
--- On Mon, 22/9/08, Stephen
Hemminger <shemminger@vyatta.com> wrote:
From:
Stephen Hemminger <shemminger@vyatta.com>
Subject: Re: [Bridge]
bridge is not forwarding the packet <Urgent, Please reply
ASAP>
To: "rahul bhardwaj"
<rahul_bhardwaj36in@yahoo.co.in>
Cc:
bridge@lists.linux-foundation.org
Date: Monday, 22 September, 2008,
8:33 AM
On Mon, 22 Sep 2008 16:24:00 +0530 (IST)
rahul bhardwaj <rahul_bhardwaj36in@yahoo.co.in> wrote:
> Hello to all,
>
> I am stating my problem below in detail so that you all can understand it
properly.
>
> I am having setup of Linux box. In that box I am having one Ethernet
interface eth0 and one wireless interface ath0. I have also configured one vlan
port as eth0.100 with the
help of vconfig (vconfig add eth 100). Now I have
created two bridges br1 and br100. I have added eth0 into br1 so br1 is having
only one interface. I have added ath0 and eth0.100 into br100. Physically eth0
is connected to a switch which is configured to handle vlan 100. DHCP server is
also running into that switch to provide IP address to wireless stations. This
is all about my setup.
>
> After this I am associating one wireless station with the ath0. After
successful association station issues a dhclient to get ip address, which
reaches to ath0 interface of my Linux box. ath0 bridges that request to
eth0.100. Now eth0.100 adds it's vlan tags and forward that request to the
switch. Because switch is configured to support vlan 100, so it process the dhcp
request and send back the dhcp response with vlan tag 100.
>
> Now I don't know but this response is not reaching to ath0. I
have
putted wireshark and figured out that those dhcp responses are reaching on eth0
and as eth0 is part of br1 so this packet is reaching to br1 which is just
discarding them all. So the wireless station is not getting the ip address.
According to me eth0 should give these packets to eth0.100 port instead of br1.
Or what I mean to say first vlan handling should be done priror then bridge
handling. Do I need to change something into Linux kernel for that or there is
some other problem with my setup?
>
> Can anybody help me in this? If anybody want more detail I will provide. I
am using Linux 2.6.15 kernel. Any kind of help will be much appreciated.
>
>
> With Regards
>
> Rahul Bhardwaj
Full bridging to wireless requires WDS which Linux wireless does not
support
(yet).
http://www.linuxfoundation.org/en/Net:Bridge#It_doesn.27t_work_with_my_Wireless_card.21
_______________________________________________
Bridge mailing list
Bridge@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/bridge
Share files, take polls, and make new friends - all under one roof. Click
here.
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
[-- Attachment #2: Type: text/html, Size: 10822 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-09-29 7:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 10:54 [Bridge] bridge is not forwarding the packet <Urgent, Please reply ASAP> rahul bhardwaj
2008-09-22 15:33 ` Stephen Hemminger
2008-09-23 13:31 ` [Bridge] bridge is not forwarding the packet rahul bhardwaj
2008-09-23 20:06 ` Nicolas de Pesloüan
-- strict thread matches above, loose matches on Subject: below --
2008-09-24 23:23 Leigh Sharpe
2008-09-29 7:06 ` rahul bhardwaj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox