What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Not possible to set static IPs in VLAN (network with different subnet)?

vmachiel

Occasional Visitor
Hi,

So: when I setup a GNP, and have it on a different VLAN (52), can I not set static IPs for certain clients? When I go to the LAN setings and DHCP, I see my device in the client list. When I select it, I see its IP (192.168.52.101). But when I try to set it as static, it says it’s not valid…

Is it not possible? Or do I need a plugin or something?
 
See YazDHCP which now supports Guest Network Pro manual IP addresses when one has set Guest Network Pro's Use same subnet as main network to off:

If not using YazDHCP, one could use the Guest Network Pro Profile's Advanced Setting section Manually assign IP address around the DHCP list option to set manual reservations.

Otherwise, use the forum search feature to find the various past discussions on using the dnsmasq-INDEX.conf.add or dnsmasq-sdn.postconf to set a Guest Network Pro's manual IP reservation. For example, one such past post on using dnsmasq-INDEX.conf.add to set Guest Network Pro reservations:
https://www.snbforums.com/threads/a...-4-is-now-available.94651/page-26#post-958305

It is expected behavior that when Guest Network Pro's Use same subnet as main network is disabled (set to off) one cannot normally (without using YazDHCP) set Guest Network Pro client reservations through the LAN > DHCP Server section.
 
Last edited:
Hi,

So: when I setup a GNP, and have it on a different VLAN (52), can I not set static IPs for certain clients? When I go to the LAN setings and DHCP, I see my device in the client list. When I select it, I see its IP (192.168.52.101). But when I try to set it as static, it says it’s not valid…

Is it not possible? Or do I need a plugin or something?
If you are running a router with Guest Network Pro you can assign static IPs within a subnet under advanced settings directly using the GUI.
 
You do not set client static IP's at the router. You set reserved IP's. Static IP addresses are set at the client and the client disregards DHCP.
There is a difference!
 
You do not set client static IP's at the router. You set reserved IP's. Static IP addresses are set at the client and the client disregards DHCP.
There is a difference!
You are correct however to answer the OPs question succinctly it was simpler to answer their question as written and not provide an explanation and also correct their technical semantics.
 
See YazDHCP…

… Guest Network Pro Profile's Advanced Setting section Manually assign IP address around the DHCP list

… using the dnsmasq-INDEX.conf.add or dnsmasq-sdn.postconf to set a Guest Network Pro's manual IP reservation. …

It is expected behavior that when Guest Network Pro's Use same subnet as main network is disabled (set to off) one cannot normally (without using YazDHCP) set Guest Network Pro client reservations through the LAN > DHCP Server section.
As usual @bennor has nailed all the options for manual assignments (as they are called in the Router’s DHCP menu), although I’d suggest the order (in terms of simplicity) would be:
  1. GNP native Manual Assignments (input via GNP, Advanced Settings), noting these are limited to 32 and 32 is not guaranteed)
  2. YazDHCP
  3. WinSCP (or SSH) into your router and create the files mentioned in the format referred to by @bennor.
Whilst I was using method (3) for a while after coming up short with (1), my personal preference is now (2) YazDHCP due to numbers but also the ability to export, amend and import the manual assignments. Very neat.

On @bennor’s last point I am not sure this is absolutely correct [EDIT; @bennor is indeed correct, see below] as on one of my two independent systems I have reservations for the Main (Primary) Wi-Fi and a GNP Wi-Fi profile (same subnet as Primary) in the native LAN, DHCP, Manually Assigned IP list and I believe that the assignments work across both profiles. In my other network I use YazDHCP but there, the GNP Wi-Fi is on a different subnet.

Whilst I do use static DHCPs on my Shelly IoT devices (apologies to use up all the terminologies in one post…) and noting my IoT network is on the same subnet as the Main (Primary), in the extract below the Samsung Dryer (which does not have a static IP and thus a good example) has a manually assigned IP in the “Primary” manual assignments list under LAN, DHCP and seems to happily show up in the client list as using 192.168.47.110., as assigned.

At the risk of veering away from the OPs query, I’d be curious to understand under what conditions this does not work.

IMG_2530.jpeg
IMG_2531.jpeg
IMG_2532.jpeg
 
Last edited:
At the risk of veering away from the OPs query, I’d be curious to understand under what conditions this does not work.
In my testing with a RT-AX86U Pro running the 3006.102.x firmware, it all boiled down to the Guest Network Pro Profile option Use same subnet as main network and how it is configured when one creates the Guest Network Pro Profile.
  • If Use same subnet as main network is enabled (set to on) then a client can have their IP address reserved under the LAN > DHCP Server > Manually Assigned IP addresses in the DHCP scope.
  • If Use same subnet as main network is disabled (set to off) then the Guest Network Pro Profile creates a VLAN/SDN and defaults to starting with BR52, ex: subnet 192.168.52.1. When using VLAN the Guest Network Pro client doesn't (at least in my experience) pull the manual IP reservation configured in the LAN > DHCP Server section. Which is logical when you think about it since the client is now using an IP address from the 192.158.52.x pool and not the IP address from the main LAN IP address pool.
Setting aside the new v1.2.0 YazDHCP for the moment. The Guest Network Pro Profile client will, depending on the Use same subnet as main network setting, pull it's reserved IP address from either the main LAN reservation list (DHCP Server page) OR from either the Guest Network Pro Profile Advanced Settings > Manually assign IP address around the DHCP list option (if assigned there), or it will pull it from the dnsmasq-INDEX.conf.add or dnsmasq-sdn.postconf, which ever one is being used and is configured with reservations. One can disconnect the client from the Guest Network Pro Profile and connect it to the main LAN and it should change it's reserved IP to the reserved IP address from the LAN > DHCP Server page. And it should switch back when the client is moved back to the Guest Network Pro Profile. At least in my quick and dirty testing that is what was happening.

Now for YazDHCP v1.2.0 (and later versions). Now that YazDHCP supports Guest Network Pro Profile client reservations (YazDHCP Allow Guest Network Client Assignments enabled, set to Yes), it simplifies making reservations and combines the reservations (main LAN and Guest Network Pro Profile SDN's) to one location, the LAN > DHCP Server > Manually Assigned IP addresses in the DHCP scope section. One can then export and save those reservations and re-import them quickly if one ever resets the router. One can have two reservations configured, one for main LAN the other for Guest Network Pro Profile VLAN and the client will pull either reservation depending on where it's connected.
 
If Use same subnet as main network is enabled (set to on) then a client can have their IP address reserved under the LAN > DHCP Server > Manually Assigned IP addresses in the DHCP scope.
It is expected behavior that when Guest Network Pro's Use same subnet as main network is disabled (set to off) one cannot normally (without using YazDHCP) set Guest Network Pro client reservations through the LAN > DHCP Server section.
Ah, I see where I misread your original post (the second extract above), my apologies.

Thank you for clarifying, both posts effectively say the same thing.
 
both posts effectively say the same thing.
Essentially yes, both posts are saying the same thing. It all depends on the Guest Network Pro's Use same subnet as main network setting. At least with the latest version of YazDHCP it simplifies things a bit since you can do all the manual reservation programming for the main LAN clients and the Guest Network Pro Profile clients right on the LAN > DHCP Server > Manually Assigned IP addresses in the DHCP scope section.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top