2

The way I understand (two-port) transparent bridging is that the bridge simply forwards packets to another segment on the network. But since the MAC address of the ethernet interface is different to the wireless, how can they be transparently bridged? The router won't take packets with the ethernet interface's MAC address. It only knows about the wireless interface's MAC address. Doesn't the bridge need to change the packet's source MAC?

3 Answers 3

5

You seem to be confusing the different network layers. Routers route packets at layer-3, using the layer-3, e.g. IP, addresses, but bridging happens at layer-2, using layer-2, e.g. MAC, addresses. Bridging is done with a bridge, switch, or WAP, but not a router.

With an ethernet network, bridging is transparent. That means that the bridge doesn't modify the layer-2 frames when forwarding them. When you have two different LAN types, you need a translating bridge in order to translate the frames from one LAN type to another LAN type. This used to be common with ethernet/token ring bridges, and it is now common with ethernet/Wi-Fi bridges.

The question in your title, "How transparent bridging Wi-Fi with Ethernet works?" doesn't make sense. To bridge two different LAN types, you must use a translating bridge, not a transparent bridge. It so happens that Wi-Fi and ethernet actually use compatible 48-bit MAC addresses, so the MAC addresses can remain the same in the bridged frames.

2
  • How come a translating bridge is needed for bridging two different LAN types? Also, how come the (source) MAC address can remain the same when bridging between WiFi and LAN? Shouldn't the source address be changed accordingly?
    – Kar
    Jun 25, 2017 at 17:38
  • 1
    Different LAN types have different frames. Ethernet frames are very simple, but Wi-Fi frames are more complex, with more fields and different frame types. You cannot use frames from one LAN type on a different LAN type. Since the MAC addressing is the same on ethernet and Wi-Fi, you do not need to change MAC addressing.
    – Ron Maupin
    Jun 25, 2017 at 20:27
3

A "self-learning MAC bridge" tracks the MAC addresses from the frames it receives - this way it nows, which frames need to be forwarded to which port.

WiFi bridging works the same way. MAC addresses follow the same pattern for 802.11 and 802.3, so the bridge just has to learn which addresses are on which side.

2
  • Yes, but does the bridge change the MAC addresses on the frames when bridging between ethernet and wireless (on the same machine)?
    – Kar
    Jun 25, 2017 at 17:41
  • 1
    No. As Ron stated, 802.11 and 802.3 MACs are allocated from the same range, so they happily coexist - no reason for changing them in fllght.
    – Zac67
    Jun 25, 2017 at 17:47
-1

Very Old question but since I'm looking for the same answer I can add a bit of detail the other answers missed.

Wifi uses 3 address packets. Client MAC, AP MAC and destination MAC. An ethernet to Wi-Fi bridge has a problem because the ap will reject packets that don't have the client MAC address.

There's no easy solution that works with this design so wifi was extended with what's called "4 Address", or WDS by adding a field for source MAC address. This is not a stand alone solution because a normal AP will reject a frame with four addresses. This 4-Address technique is also known as WDS. If the access point supports WDS it will accept a four address packet and the Ethernet to wifi bridge will work as expected.

There are other approaches, the simplest being NAT. The Ethernet to WiFi device works like a NAT device. This drawback is accessing the Ethernet device remotely, basically requiring port forwarding.

Another approach is MAC address translation with ebtables, and another might be Proxy ARP?

I don't know which way is the best, and I don't know how dedicated hardware "Ethernet to wifi" devices work, which is how I came to find this page.

1
  • "The Ethernet to WiFi device works like a NAT device" No, not at all. WAPs do not do address translation. "Another approach is MAC address translation with ebtables, and another might be Proxy ARP?" Again, no, and things like ebtables are off-topic here as host/server configurations. NAT is Network Address Translation, not Data-Link Address Translation. A WAP is simply a translating bridge that uses the original source and destination MAC addresses from the frame to create a frame for the other protocol. You are posting nonsense.
    – Ron Maupin
    Jul 10, 2021 at 17:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.