VLAN setup for subnetwork

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
DDE12
DD-WRT Novice


Joined: 09 May 2021
Posts: 9

PostPosted: Wed May 12, 2021 2:33    Post subject: VLAN setup for subnetwork Reply with quote
I would like to set up Port 1 as a VLAN that will be like a second WAN port so that I can connect a second router that will be a completely separate network. I have the following Switch Config and Networking. Are there any changes I need to make with these? Will
iptables -I FORWARD -s 192.168.10.0/24 -j ACCEPT
"disable" the firewall on that port? Are any other commands needed? Thank you for taking a look at this.

Switch Config
Networking



Switch Config.png
 Description:
 Filesize:  146.75 KB
 Viewed:  1803 Time(s)

Switch Config.png



Networking.png
 Description:
 Filesize:  363.68 KB
 Viewed:  1803 Time(s)

Networking.png


Sponsor
DDE12
DD-WRT Novice


Joined: 09 May 2021
Posts: 9

PostPosted: Sat May 15, 2021 19:38    Post subject: Reply with quote
I got the following setup to get what I wanted to accomplish. I think.

Setup > Switch Config
VLAN WAN 1 2 3 4 Assigned to Bridge
0 None
1 X X X LAN
2 X LAN
12 X None

Setup > Networking
Port Setup
WAN Port Assigment vlan2 (this was default)

Network Configuration VLAN12
All setting left at default except:
Bridge Assigment set to Unbridged
IP Address 192.168.10.1
Subnet Mask 255.255.255.0

DHCPD
DHCP0 VLAN12; ON; Start= 100; Max= 50; Lease time= 1440

Administration > Commands
#Allow VLANs to communicate w/ WAN on VLAN2
iptables -I FORWARD -i vlan+ -o vlan2 -j ACCEPT
iptables -I FORWARD -i vlan2 -o vlan+ -j ACCEPT

I could not get this to work without the additional DHCP server and that is confusing to me. I must be incorrectly thinking that if a second router with DHCP enabled was connected on VLAN12, it would get IP addresses from the ISP the same as the primary router and therefore not be a need for an additional DHCP on the first router with the VLAN. Will the additional DHCP on the VLAN router cause a problem for routers connected to it in Gateway mode with DHCP enabled? If so, is there a method to use to avoid the additional DHCP?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Sat May 15, 2021 19:45    Post subject: Reply with quote
We have no idea what router or build. If it is 46604 or newer, it will use swconfig, and not sure if the webUI settings will even do anything useful yet.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
DDE12
DD-WRT Novice


Joined: 09 May 2021
Posts: 9

PostPosted: Sat May 15, 2021 20:35    Post subject: Reply with quote
Sorry, in all the excitement, I forgot about that important information.
Buffalo WZR-600DHP2
DD-WRT v3.0-r44715 std (11/03/20)
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Sun May 16, 2021 3:53    Post subject: Reply with quote
Ok, so since you are not running 46604 or newer and your router is a Broadcom, you will still need to use the switched ports wiki, possibly to make this work as the webUI does and does not work, depending on the router:

https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum