Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Separate VLAN for IoT devices
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Separate VLAN for IoT devices (Read 11615 times)
rama3124
Newbie
Posts: 37
Karma: 0
Re: Separate VLAN for IoT devices
«
Reply #15 on:
February 13, 2023, 09:33:04 am »
Screenshots of configs attached
Logged
rama3124
Newbie
Posts: 37
Karma: 0
Re: Separate VLAN for IoT devices
«
Reply #16 on:
February 13, 2023, 09:33:55 am »
More screenshots, please let me know if anything else is helpful
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Separate VLAN for IoT devices
«
Reply #17 on:
February 13, 2023, 12:19:15 pm »
Assuming the first pic is the AP, you have the vlan section "disabled".
I don't know what model AP that is but I would take a look at the manual for it.
Can't believe the vlans should be disabled if you're trying to use vlans with it.
Logged
rama3124
Newbie
Posts: 37
Karma: 0
Re: Separate VLAN for IoT devices
«
Reply #18 on:
February 14, 2023, 09:08:07 am »
I had vlans disabled for the SSIDs that were already running, but the test SSID had VLAN enabled as per the screenshot. Yet when i connect to this test SSID, i get no network access and don't get assigned an IP
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Separate VLAN for IoT devices
«
Reply #19 on:
February 14, 2023, 12:43:31 pm »
DHCP server is active?
So I'm assuming switchport 1 is going to the router, 2 to the AP?
If so, set port 2 to vlan10 untagged, go to the pvid page and set port 2 to 10.
Plug a pc into port 2, does it get an address?
This will tell you if the problem is towards the router or towards the AP.
Logged
rama3124
Newbie
Posts: 37
Karma: 0
Re: Separate VLAN for IoT devices
«
Reply #20 on:
February 15, 2023, 11:34:58 am »
DHCP server is enabled on the VLAN interface and yes switch port 1 goes to router and 2 to AP.
I left port 1 & 2 tagged, but added port 3 as an untagged member port of the VLAN 10 and adjusted the PVID to 10 for port 3. When i connected my laptop, it didn't receive an IP
Any idea why opnsense isn't giving network access if the DHCP server is enabled?
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Separate VLAN for IoT devices
«
Reply #21 on:
February 15, 2023, 12:18:15 pm »
So either the DHCP server isn't working or the vlan isn't configured correctly.
Looks like the switch is correct.
On the vlan interface, you didn't show what IP was set.
Try and set a static IP in the same subnet and plug into port 3.
Does that work?
Do you have a nic that a vlan can be set on?
If so, set it to vlan 10 and plug directly into the router.
Does that work?
Logged
rama3124
Newbie
Posts: 37
Karma: 0
Re: Separate VLAN for IoT devices
«
Reply #22 on:
February 16, 2023, 08:42:27 am »
I have already set a static IP on the VLAN of 192.168.10.1 and have a range of 192.168.10.50-192.168.10.100 on the dhcp server.
I've tried changing the vlan interface parent from the LAN port to another unused NIC port and plugging directly into the router but my laptop still didn't receive an address. I'm thinking of trying a full factory reset to see if it helps or perhaps plugging the AP directly into the router without my switch
Logged
Print
Pages:
1
[
2
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Separate VLAN for IoT devices