DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (2024)

View previous topic :: View next topic

AuthorMessage
ddux
DD-WRT Novice

Joined: 25 Sep 2023
Posts: 25
Location: 'Straya


Posted: Mon Apr 22, 2024 1:06 Post subject: [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT
Can someone explain what the real tangible difference between a BRIDGE (e.g. "br0") and a VLAN (e.g. "vlan1") is in DD-WRT?

The only reason I ask is because the NVRAM settings for each are almost identical, and given bridges are created 'in software' the same as VLANs, I can't really see how they are functionally different.

Why do I think this an important question?
If for no other reason, for spanning tree.
I don't want to inadvertently create a 'spanning tree loop' internal to the device itself - in memory. I can foresee this being well within the realm of possibilities.

Also, why would we config an IP address on the BRIDGE instead of the VLAN?
When would the VLAN need an IP address configured?

Example NVRAM settings attached.

Last edited by ddux on Tue Apr 23, 2024 2:32; edited 1 time in total

Back to top
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (5)
Sponsor
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (6)
lexridge
DD-WRT Guru
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (7)

Joined: 07 Jun 2006
Posts: 1453
Location: WV, USA


Posted: Mon Apr 22, 2024 2:31 Post subject: Re: The difference between a BRIDGE and a VLAN in DD-WRT?
ddux wrote:
Can someone explain what the real tangible difference between a BRIDGE (e.g. "br0") and a VLAN (e.g. "vlan1") is in DD-WRT?

The only reason I ask is because the NVRAM settings for each are almost identical, and given bridges are created 'in software' the same as VLANs, I can't really see how they are functionally different.


They are not really that functionally different. Both are virtual interfaces in the end. The router sees them as real tangible interfaces however. The bridge is used to connect/combine multiple interfaces, real or virtual into a single interface which shares properties among all members of that bride, such as a secondary dhcp server. Everything associated with say br1 would receive an IP address on the same subnet which is different from the main subnet.
Quote:

Why do I think this an important question?
If for no other reason, for spanning tree.
I don't want to inadvertently create a 'spanning tree loop' internal to the device itself - in memory. I can foresee this being well within the realm of possibilities.

Also, why would we config an IP address on the BRIDGE instead of the VLAN?
When would the VLAN need an IP address configured?


I guess this would all depend on what you are wanting to do with it. Personally I use multiple APs for Guest, IoT and Media. Each has their own DHCP server and Guest and IoT are completely isolated, whereas Media is "allowed" to see the main network. You can set the IP on the Bridge or the VLAN, again depending on your use case. If you want to have VLAN12 as a Media network with both wired and wireless devices, you would want to use a bridge to connect them and supply them with IP address on the same subnet. If you only have wired devices on VLAN12, I suppose you could set the IP directly on the VLAN itself without having a bridge but not sure if you could assign a DHCP server to it. I have not tried this personally but have been experimenting a bit with it in OpenWRT.

_________________
- Linksys EA8500: I-Gateway, AP/VAP 5ghz only r57753: Features: WDS-AP, VLANs, Samba, WG, Entware
- Linksys EA8500: WDS Station x2 - r57753
- Netgear R6400v2: WAP/VAP 2.4ghz only w/VLANs over single trunk port. r57753
- Linksys MX4300 (WAP/VAP (7)) - r58244: Features in use: multiple VLANs over single trunk port
- Linksys MR7350: Testing r58244
- Linksys Velop WHW03v1 x2: OpenWRT w/GRETAP tunnel for VLANs on VAPs
- OSes: Fedora 39, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.

- Forum member #248

Back to top
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (12)
ddux
DD-WRT Novice

Joined: 25 Sep 2023
Posts: 25
Location: 'Straya


Posted: Mon Apr 22, 2024 4:31 Post subject: Re: The difference between a BRIDGE and a VLAN in DD-WRT?
lexridge wrote:
...They are not really that functionally different. Both are virtual interfaces in the end. The router sees them as real tangible interfaces however. The bridge is used to connect/combine multiple interfaces, real or virtual into a single interface which shares properties among all members of that bride, such as a secondary dhcp server. Everything associated with say br1 would receive an IP address on the same subnet which is different from the main subnet...

Right, so perhaps the best way to think of a bridge is like a virtual switch (in memory) that is used to group two or more interfaces together whereby ingress frames received on one interface are switched at layer 2 to another interface based on the switch mac address table and sent out as egress frames.

I think that it is very important when discussing bridges and VLANs and VLAN (802.1q) tags to always keep in mind the direction of a given layer 2 frame - whether it is INGRESS (Rx) or EGRESS (Tx).

I would like to see a more detailed tutorial on bridge and VLAN configuration which explains in detail the flow of traffic between internal ports which specifically mentions INGRESS (Rx) and EGRESS (Tx) such that the path of a given layer 2 ethernet frame is unambiguously described and can be (at least mentally) traced from interface to interface (including external and interface), all the way from the first frame received on INGRESS (Rx) on an external port from an external device, through to the forwarding of said frame out another (or the same) external interface as an ENGRESS (Tx) frame to an external device, including wireless interfaces.

One thing I am still not 100% clear on is whether the 'CPU Port' behaves like an 802.1q VLAN tagged interface connected to a 'router on a stick', to use a common networking term. I believe it does based on all the diagrams I have see from other more knowledgeable posters, but confirmation from a DD-WRT developer would be great.

In any case, thanks so much for your input.

Back to top
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (17)
ho1Aetoo
DD-WRT Guru

Joined: 19 Feb 2019
Posts: 3214
Location: Germany


Posted: Mon Apr 22, 2024 7:24 Post subject:
Please stop spamming this VLAN nonsense.
You obviously have no idea otherwise you wouldn't be asking questions like "what's the difference between a bridge and a VLAN interface"

A bridge is a bridge and is mainly used to bridge multiple interfaces.
And a VLAN interface is a VLAN interface.

If you don't have several interfaces to bridge, you can also do without the bridge and assign an address directly to the VLAN interface.

I generally use bridges in my example because bridges can be extended with other interfaces and because you can use the same firewall rules everywhere.


_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP

Back to top
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (22)
Per Yngve Berg
DD-WRT Guru

Joined: 13 Aug 2013
Posts: 6922
Location: Romerike, Norway


Posted: Mon Apr 22, 2024 7:28 Post subject: Re: The difference between a BRIDGE and a VLAN in DD-WRT?
ddux wrote:
One thing I am still not 100% clear on is whether the 'CPU Port' behaves like an 802.1q VLAN tagged interface

Yes it does. That is why you see the VLANx interfaces in the router

Back to top
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (27)
ddux
DD-WRT Novice

Joined: 25 Sep 2023
Posts: 25
Location: 'Straya


Posted: Tue Apr 23, 2024 2:31 Post subject:
ho1Aetoo wrote:
Please stop spamming this VLAN nonsense.
You obviously have no idea otherwise you wouldn't be asking questions like "what's the difference between a bridge and a VLAN interface"

A bridge is a bridge and is mainly used to bridge multiple interfaces.
And a VLAN interface is a VLAN interface.

If you don't have several interfaces to bridge, you can also do without the bridge and assign an address directly to the VLAN interface.

I generally use bridges in my example because bridges can be extended with other interfaces and because you can use the same firewall rules everywhere.

Thanks for your input, but I wanted to address this.
Clearly I upset you. Sorry, that was not my intent. You've been very helpful with the other stuff and I am grateful.

I obviously did not explain myself properly in my original question.
I am well aware of the difference between bridges and VLANs as I have been working in networking for over 2 decades. I can describe hubs, repeaters, bridges, transparent bridges, etc.

What I was not certain about was how the terms were being used in this context. Over my career I have come across many people and places who use these terms loosely and often incorrectly in a technical sense. My question was one of clarification in the DD-WRT context, and trying to understand how the concept of VLANs and bridges have been functionally implemented in the DD-WRT source.

Also, please do not misquote me - I specifically did not use the term 'VLAN interface' for a reason. A VLAN and a VLAN interface are not the same thing DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (30)

Finally, definitions logically cannot contain the thing being defined.

That said, thanks again for all your help and advice. It is appreciated.

Back to top
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (33)
DD-WRT :: View topic - [SOLVED]The difference between a BRIDGE and a VLAN in DD-WRT (2024)
Top Articles
5 Reasons Budgeting Is Good for Health
Eight Steps to Estate Planning
Scheelzien, volwassenen - Alrijne Ziekenhuis
Oldgamesshelf
Skylar Vox Bra Size
Www.fresno.courts.ca.gov
FFXIV Immortal Flames Hunting Log Guide
Kansas Craigslist Free Stuff
Chris wragge hi-res stock photography and images - Alamy
Alpha Kenny Buddy - Songs, Events and Music Stats | Viberate.com
Nieuwe en jong gebruikte campers
Celsius Energy Drink Wo Kaufen
Wordscape 5832
General Info for Parents
Local Collector Buying Old Motorcycles Z1 KZ900 KZ 900 KZ1000 Kawasaki - wanted - by dealer - sale - craigslist
Bx11
Carolina Aguilar Facebook
Nhl Tankathon Mock Draft
Ratchet & Clank Future: Tools of Destruction
Mccain Agportal
Yard Goats Score
Bible Gateway passage: Revelation 3 - New Living Translation
O'Reilly Auto Parts - Mathis, TX - Nextdoor
Cincinnati Adult Search
How Long After Dayquil Can I Take Benadryl
Mini Handy 2024: Die besten Mini Smartphones | Purdroid.de
2487872771
Sherburne Refuge Bulldogs
Kirk Franklin Mother Debra Jones Age
10-Day Weather Forecast for Santa Cruz, CA - The Weather Channel | weather.com
Parent Management Training (PMT) Worksheet | HappierTHERAPY
Ff14 Sage Stat Priority
2430 Research Parkway
Ellafeet.official
Att U Verse Outage Map
Daily Journal Obituary Kankakee
Orangetheory Northville Michigan
T&J Agnes Theaters
Scottsboro Daily Sentinel Obituaries
Thanksgiving Point Luminaria Promo Code
Saybyebugs At Walmart
Timberwolves Point Guard History
Lake Kingdom Moon 31
Tgirls Philly
Citibank Branch Locations In North Carolina
Elven Steel Ore Sun Haven
Rescare Training Online
Oefenpakket & Hoorcolleges Diagnostiek | WorldSupporter
Who uses the Fandom Wiki anymore?
116 Cubic Inches To Cc
Ewwwww Gif
Sunset On November 5 2023
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 5787

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.