Router Access via IP Address After VLAN Configuration

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2
Author Message
D.F.Cruizer
DD-WRT User


Joined: 14 May 2023
Posts: 95

PostPosted: Wed Dec 27, 2023 0:13    Post subject: Reply with quote
swampgator352 wrote:
I was hoping that "dumb" switches could be used behind the router and the router itself would take care of the VLAN separation. Is that line of thinking incorrect?


Briefly, a dumb switch may pass data frames without issue; another may not pass the tags; yet another may choke entirely on tagged frames and cause major network issues. You do not want to loose your hair when trying to resolve chaos. Smile

Essentially, VLAN inserts a (VLAN) tag into a dataframe on a switch. As a result, a switch needs to understand 802.1q protocol that adds a VLAN tag, or removes it, when and if needed.

A router typically has an switch (i.e. multiple LAN ports) built-in that tends to blur its routing (IP addressing) function from the MAC addressing of a switch.

Lastly, each switch on each router model is 'wired' internally differently, as a result, it's unwise to treat specific VLAN settings the same for all router models.

Good luck. Smile
Sponsor
swampgator352
DD-WRT Novice


Joined: 28 Oct 2023
Posts: 17

PostPosted: Wed Dec 27, 2023 1:12    Post subject: Reply with quote
Thank you for the explanation, @D.F.Cruizer. You've convinced me it is worth upgrading the POE switch to a managed one. Luckily, I found a decent deal on a used one on eBay. Thanks again.
lexridge
DD-WRT Guru


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

PostPosted: Wed Dec 27, 2023 3:22    Post subject: Reply with quote
While some dumb switches may pass the VLAN header, provided you have the switch connected to a router LAN port with a VLAN assigned to it. The switch will only work with that one VLAN (some can even passthrough Trunked VLANS, but I have never seen one able to do this, only read about it). However, with that said, many dumb switches also strip out the VLAN headers leaving you with zero passthough (ie not working). The only way to know for sure is to connect a computer to that switch and see if it gets assigned an IP from the proper VLAN subnet.

EDIT: Opps, I didn't see page two of this thread and this was already answered. My bad!

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Dec 27, 2023 8:36    Post subject: Reply with quote
nonsense

there are no tagged VLANs configured so you don't need a managed switch that supports IEEE 802.1Q.

If you connect the switch exclusively to the VLAN1 port, there is nothing to separate because only vlan1 is available via the port (same with VLAN4)

Quote:
I intend to connect a switch directly to the VLAN1 port and eventually turn off the wireless radios on the dd-wrt router.

Quote:
I intend to connect an access point and a POE Switch to the two ports assigned to VLAN4 and plan to utilize both the wireless and ethernet connections for devices.


so the way the switch is configured and the way swampgator352 has described his plans, a managed switch is definitely not needed

with a manged switch, however, there may be other configuration options

simply learn and understand the difference between port-based and tag-based (IEEE 802.1Q) VLANs

@swampgator352

now that you have worked with bridges, you will also find the appropriate iptable rules in the "quick start quide"

_________________
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
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Dec 27, 2023 9:45    Post subject: Reply with quote
D.F.Cruizer wrote:
Lastly, each switch on each router model is 'wired' internally differently, as a result, it's unwise to treat specific VLAN settings the same for all router models.


These differences are already taken into account by dd-wrt under the hood in the sysinit.

The GUI settings are all the same for routers with 1 or 2 CPU ports.

There are only two special cases:

Routers whose WAN port is not connected to the switch (logically, the WAN port cannot be configured via the switch)
And your R9000 where nobody wants to fix the GUI because the R9000 has several switches.(a lot of programming work for a single router)

_________________
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
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Dec 27, 2023 14:28    Post subject: Reply with quote
@swampgator352

very good.
If you now want a different IP address range for VLAN1, you must configure this under "basic Setup".

So if you still want to use "192.168.10.0" you have to enter the following.

Router IP
Local IP address 192.168.10.1/24

DHCP Server
Start IP Address 192.168.10.64


Then you have the following as originally desired.
VLAN1 = 192.168.10.1/24
VLAN3 = 192.168.20.1/24
VLAN4 = 192.168.30.1/24

_________________
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
swampgator352
DD-WRT Novice


Joined: 28 Oct 2023
Posts: 17

PostPosted: Wed Dec 27, 2023 20:57    Post subject: Reply with quote
Thanks to all for your help in getting started.

Before setting up my custom iptables rules, I did some testing of the "Net Isolation" GUI setting and it appears that devices on br1 and br2 are able to ping devices on br0 (VLAN1). I did not expect this behavior based on the explanation in the Quick Start Guide

Is there something I can test to determine why this is happening? Or should I just proceed with the iptables rules listed in the guide?
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Dec 27, 2023 21:21    Post subject: Reply with quote
This is because your WAN is not connected.
The "Net Isolation" option is only loaded when the WAN is started.

However, the manual firewall rules are also loaded if the WAN is not started / connected.

_________________
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
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum