dd-wrt change management VLAN

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
Thomas_VDB
DD-WRT Novice


Joined: 08 Mar 2015
Posts: 17

PostPosted: Mon Apr 08, 2024 7:22    Post subject: dd-wrt change management VLAN Reply with quote
Hi,
I have setup 5x R7000 with ddwrt as AP's for our company (router/firewall = pfsense).
We are using VLAN's, and the dd-wrt are correctly usingthe VLAN's and are broadcasting several SSID's for the different VLAN's.

The final thing that I want to do is add a management VLAN :
The computers and laptops on the network are working in VLAN 1, and can in theory access the AP's configuration pages as the AP's management IP is also in VLAN 1.
However I want to change the management VLAN from the AP's to VLAN 15.
I have added VLAN 15 to the switch configuration. But how do I tell ddwrt thatt the management VLAN is VLAN15.
I do'nt suppose I could just change the IP-address of the LAN-IP to be in the tange of VLAN 15. That won't be enough, will it?
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2963
Location: Germany

PostPosted: Mon Apr 08, 2024 8:20    Post subject: Reply with quote
You have to bridge br0 with VLAN15 and give the router an IP address in the VLAN15 range

You have to bridge VLAN1 + eth1 + eth2 with another bridge e.g. br1

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


Joined: 08 Mar 2015
Posts: 17

PostPosted: Mon Apr 08, 2024 9:28    Post subject: Reply with quote
Perfect! I'll try that!
Thomas_VDB
DD-WRT Novice


Joined: 08 Mar 2015
Posts: 17

PostPosted: Mon Apr 08, 2024 10:56    Post subject: Reply with quote
Still need some help.

This is my current situation :
1. Switch config :
WAN port : tagged to VLAN1 (default network), VLAN15 (mgmt), VLAN98 (IoT) and VLAN99 (Guest)
LAN ports : access tot VLAN1

2. Networking :
-Created br1 : bridge between wl0.1 (Virtual1 2.4GHz), wl1.1 (Virtual1 5GHz) and VLAN98 (IoT)
=> br1 gets static IP in VLAN98-range
-Created br2 : bridge between wl0.2 (Virtual2 2.4Ghz), wl2.1 (Virtual2 5Ghz) and VLAN99 (Guest)
=> br2 gets static IP in VLAN99 range.

3. This result in current bridging table :
br0 no eth1 eth2 vlan1
br1 no vlan99 wl0.1 wl1.1
br2 no vlan98 wl0.2 wl1.2

Do I now bridge br0 to VLAN 15? But this results in current bridging table eth1 eth2 VLAN1 VLAN15.
I don't want to bridge VLAN 1 with VLAN15.

If I make a newe bridge (br3, I can bridge br0.0 with VLAN15). But then I need to give br3 an IP, and I can reach the web interface via thal VLAN15 IP. But what do I do with the basic setup>LAN IP addres? also put it in VLAN15? Then I have 2 IP's in VLAN15?

AM a little lost...
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2963
Location: Germany

PostPosted: Mon Apr 08, 2024 12:18    Post subject: Reply with quote
just read what I wrote above

Quote:
You have to bridge br0 with VLAN15 and give the router an IP address in the VLAN15 range

You have to bridge VLAN1 + eth1 + eth2 with another bridge e.g. br1


bridge table then looks like this

br0 no vlan15
br1 no vlan99 wl0.1 wl1.1
br2 no vlan98 wl0.2 wl1.2
br3 no vlan1 eth1 eth2

Quote:
But what do I do with the basic setup>LAN IP addres? also put it in VLAN15? Then I have 2 IP's in VLAN15?


I have already explained that to you

Quote:
You have to bridge br0 with VLAN15 and give the router an IP address in the VLAN15 range


the addresses for br0 are configured in "basic setup"

I don't know where you got the idea that you then have two VLAN15 addresses.

Nowhere else is an IP address configured for VLAN15.
You create a VLAN15 in the Switch Config tab, VLAN15 is automatically bridged with br0 - done

This is a bit tricky and the steps must be done in a certain order - you may lose access to the router before the configuration is complete.

1. create VLAN15
2. make sure VLAN15 is bridged to br0
3. change the IP address of the router to the VLAN15 range.
4... further steps should not cause any problems.

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


Joined: 08 Mar 2015
Posts: 17

PostPosted: Wed Apr 10, 2024 6:34    Post subject: Reply with quote
I was able to bridge my management VLAN with br0.
It works.
However I have br1 and br2, that are the bridges between my VAP's and my other VLANs.
These bridges br1 and br2 also have IP adresses and the config webpage is also reachable from these IP's
.
I only want the config webpage to be reachable via the management VLAN.

Is this possible (via settings in the GUI, preferable not via commands/IPtables)?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Wed Apr 10, 2024 7:59    Post subject: Reply with quote
You do not need to give the bridges on the AP's an IP address that is only for management purposes
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2963
Location: Germany

PostPosted: Wed Apr 10, 2024 8:27    Post subject: Reply with quote
The problem is that once an IP address has been assigned, it can no longer be removed via the GUI

nvram set br1_ipaddr=0.0.0.0
nvram set br2_ipaddr=0.0.0.0
nvram commit
reboot

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


Joined: 08 Mar 2015
Posts: 17

PostPosted: Wed Apr 10, 2024 8:42    Post subject: Reply with quote
Thanks!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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