I hope someone can help me as I am starting to go crazy. I have created a number of VLANs which I am exposing on the ports of the router(Linksys MR8300). The problem I have is that the IP I have assigned is not accessible from a device which is connected to the associated VLAN.
I have created a VLAN with ID 30 and it connects to an upstream pfsense server which provides DHCP. My PC gets an IP address in the correct range for the VLAN (192.168.30.66). I can access the pfsense server 192.168.30.1 but I can not access the statically assigned IP address on the router 192.168.30.2 and I can't work out how to fix it.
My network file is as follows:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd74:1d64:a7a4::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
option bridge_empty '1'
config interface 'lan'
option device 'br-lan'
option proto 'none'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '30'
option ports '0t 0t 1 4t'
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '41'
option ports '0t 0t 4t'
config switch_vlan
option device 'switch0'
option vlan '5'
option vid '60'
option ports '0t 0t 4t'
config switch_vlan
option device 'switch0'
option vlan '6'
option vid '42'
option ports '0t 0t 2 4t'
config switch_vlan
option device 'switch0'
option vlan '7'
option vid '43'
option ports '0t 0t 4t'
config switch_vlan
option device 'switch0'
option vlan '8'
option vid '20'
option ports '0t 0t 4t'
config switch_vlan
option device 'switch0'
option vlan '9'
option vid '50'
option ports '0t 0t 4t'
config switch_vlan
option device 'switch0'
option vlan '10'
option vid '10'
option ports '0t 0t 4t'
config device
option type 'bridge'
option name 'br-wan'
option bridge_empty '1'
list ports 'eth1.5'
config interface 'WAN'
option proto 'static'
option device 'br-wan'
option netmask '255.255.255.0'
option ipaddr '192.168.1.1'
config switch_vlan
option device 'switch0'
option vlan '11'
option ports '0t 0t 3 5'
option vid '5'
config device
option type 'bridge'
option name 'br30'
option bridge_empty '1'
list ports 'eth1.30'
config interface 'vlan30'
option proto 'static'
option device 'br30'
option ipaddr '192.168.30.2'
option netmask '255.255.255.0'
option gateway '192.168.30.1'
config device
option type 'bridge'
option name 'br42'
list ports 'eth1.42'
option bridge_empty '1'
config interface 'vlan42'
option proto 'none'
option device 'br42'
config device
option type 'bridge'
option name 'br10'
list ports 'eth1.10'
option bridge_empty '1'
config interface 'vlan10'
option proto 'none'
option device 'br10'
config device
option type 'bridge'
option name 'br41'
list ports 'eth1.41'
option bridge_empty '1'
config interface 'vlan41'
option proto 'none'
option device 'br41'
Please let me know if any other files are important.
I have the firewalls turned off as it will be a dumb access point.
I have configured the WAN port as a local admin port for emergency access but want to be able to check and make changes from my "LAN" segment in normal running.
Thanks
What physical port is used for the uplink to the pfsense router?
You have 0t listed twice in the ports -- it should only be once (this seems to be the case for all of your VLANs -- this should be fixed on all).
Logical port 1 is untagged for this VLAN, and logical port 4 is tagged.
There seems to be a bug in either LUCI or the software for this device and the CPU (0t) is listed twice. If I try to set them separately the second one always gets set to the same as the first. (It is mentioned on some other threads)
That is very odd. There may be somethign wrong with your config at a more fundamental level and it might be worth resetting if we can't get things working.... let's save that for a later step, though.
The zone does have input = accept. That is why we want it associated with the lan zone. Try it and report back.
The screengrab you have should be right -- save and apply.
How are you attempting to get DHCP -- wireless? wired? if wired, which port? (It shouldn't have any effect, but is useful for understanding the problem).
Ok... so you might as well take this opportunity to upgrade to 23.02.3 which was released recently. Do not keep settings when you run the upgrade -- this will get us to the default state. Then post your network config file... we'll build this one VLAN at a time.
Before you do anything that I'll recommend below, it makes sense to enable wifi on this device... you can use the basic setup -- just put in an SSID + encryption type + password + country code in the wifi config, and enable it. This will be how you can connect to the device even if we mess up the wired configuration.
Once that is working, you cand do the rest...
add this to the netwok config file
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '30'
option ports '4t 0t'
config device
option type 'bridge'
option name 'br-vlan30'
list ports 'eth0.30'
config interface 'vlan30'
option proto 'static'
option device 'br-vlan30'
option ipaddr '192.168.30.2'
option netmask '255.255.255.0'
option gateway '192.168.30.1'
And then edit br-lan to remove eth0
config device
option name 'br-lan'
option type 'bridge'
Now, in the firewall file, add network vlan30 to the lan zone.
Connect port 4, restart the router and see if you can access 192.168.30.2 from another device connected to the the 192.168.30.0/24 network.