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
iPoGo Pokemon Go Reviews: Download, Install and Alternative Included
Millions of student loan borrowers still aren't paying their bills
Craigslist Vans
Toyota Campers For Sale Craigslist
Limp Home Mode Maximum Derate
Hk Jockey Club Result
Bank Of America Appointments Near Me
King Fields Mortuary
Lantana Blocc Compton Crips
[2024] How to watch Sound of Freedom on Hulu
Maxpreps Field Hockey
Playgirl Magazine Cover Template Free
Byte Delta Dental
065106619
Youravon Comcom
Jenn Pellegrino Photos
Star Wars: Héros de la Galaxie - le guide des meilleurs personnages en 2024 - Le Blog Allo Paradise
Paychex Pricing And Fees (2024 Guide)
All Obituaries | Buie's Funeral Home | Raeford NC funeral home and cremation
1773X To
Drago Funeral Home & Cremation Services Obituaries
Saritaprivate
Iu Spring Break 2024
Riherds Ky Scoreboard
Www.patientnotebook/Atic
Craigslist Battle Ground Washington
European city that's best to visit from the UK by train has amazing beer
Troy Gamefarm Prices
Feathers
Mcclendon's Near Me
Cinema | Düsseldorfer Filmkunstkinos
Obituaries, 2001 | El Paso County, TXGenWeb
The Creator Showtimes Near Baxter Avenue Theatres
APUSH Unit 6 Practice DBQ Prompt Answers & Feedback | AP US History Class Notes | Fiveable
Warn Notice Va
How to Watch the X Trilogy Starring Mia Goth in Chronological Order
Black Adam Showtimes Near Amc Deptford 8
Best Restaurants In Blacksburg
Avance Primary Care Morrisville
About :: Town Of Saugerties
Taylor University Baseball Roster
Complete List of Orange County Cities + Map (2024) — Orange County Insiders | Tips for locals & visitors
Appraisalport Com Dashboard Orders
Aita For Announcing My Pregnancy At My Sil Wedding
Cnp Tx Venmo
Conan Exiles Colored Crystal
St Anthony Hospital Crown Point Visiting Hours
Sky Dental Cartersville
Advance Auto.parts Near Me
Unit 4 + 2 - Concrete and Clay: The Complete Recordings 1964-1969 - Album Review
All Obituaries | Roberts Funeral Home | Logan OH funeral home and cremation
Island Vibes Cafe Exeter Nh
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.