Specific LAN Port and specific WiFi share same subnet?

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


Joined: 06 Aug 2014
Posts: 4

PostPosted: Tue Jan 18, 2022 12:02    Post subject: Specific LAN Port and specific WiFi share same subnet? Reply with quote
Hi,

i'm a little bit lost how I could achieve the following.

I have several SSIDs for 2.4 and 5GHz. All of them with a different subnet. Now I want to have one of the LAN Ports in the same subnet.

I've tried several things. E.g Build new bridge, but nothing worked. Also doing SNAT and DNAT did not work very well.

Any ideas how I could easily implement that?

regards,

UHF
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Tue Jan 18, 2022 12:46    Post subject: Reply with quote
If you want to assign one (or more) of the LAN ports to the same subnet as one of your APs/VAPs, then you need to create a new VLAN (e.g., vlan3), move the port(s) to the new VLAN from the existing default VLAN (usually vlan1), then assign both the AP/VAP and new VLAN to a new bridge (e.g., br1). Now you reference the new bridge for the purpose of creating a DHCP server, creating firewall rules, etc., rather than its individual components (i.e., the AP/VAP and/or VLAN assigned to the bridge).

All that said, VLANs are hardware dependent, and require you address their proper configuration using the appropriate forum for your specific router's chipset (Atheros, Broadcom, etc.). And there's no guarantee that VLANs will work w/ dd-wrt in every instance. It varies from router to router. And may require making changes using the CLI rather than the VLANs section of the GUI.

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
UHF
DD-WRT Novice


Joined: 06 Aug 2014
Posts: 4

PostPosted: Tue Jan 18, 2022 14:47    Post subject: Reply with quote
Hi.

Thanks for the super fast answer. I tried it already, but I cannot connect to the wifi. Tried it also without WPA2 encryption, but it seems the DHCP did not work.

What I've done

1. assign Port4 to vlan 4
2. change VAP xyz to bridged mode
3. create br1 and assign ip subnet
4. assign vlan 4 and VAP xyz to br1
5. add DHCP for br1

Result is I cannot connect. Even the WPA2 pass is accepted it seems, usually I expect to see something like "get ip addr" on my mobile, but it just won't let me in.

Do you have a recommendation for a good router which can do this? Actually I am running a Broadcom model (TP-Link Archer C9 v1)
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Tue Jan 18, 2022 14:55    Post subject: Reply with quote
This general forum is indeed not the recommended forum to post these question e.g. see the Second Announcement in that forum : STOP!-READ FIRST: This area is NOT for router help! READ!

No problem as I will transfer this thread for you Smile

We can only give optimal assistance if you do not only tells us the router model but also the build number you are using.

See the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

N.B this router should be able to do this if you are using the right build and the right setup (basically as @eibgrad posted)

_________________
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
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