Hello, I need to create 3 VLAN, LAN3 must be isolated from LAN4, both can access to LAN5 to the network printer, this is the network diagram:
I'm unable to reach the printer and the VLAN 4 and 5 can't connect to internet.
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Thank you for the answers. In the clients I've set the gateway as "192.168.30.1" for LAN3, "192.168.40.1" for LAN4 and "192.168.50.1" for LAN5.
I've attached the configs requested below:
_orig_ifname and _orig_bridge are obsolete, you can remove them.
Remove eth0.2 since it is already used by interface wan.
This refers to the wrong network. Instead of correcting it, I suggest to remove it and rely on the default.
Remove gateway and dns. Update: Since the ISP modem is also using an IP address from the 192.168.1.0/24 network ...
... I suggest to change one of them to use a different subnet. There is a guide in the wiki how to access the modem with the new configuration.
ipaddr and netmask are missing.
Remove dns and gateway, perhaps also broadcast. Again, you could also remove _orig_ifname and _orig_bridge.
If you want LAN3 devices to use a custom DNS server, set up DHCP accordingly.
Again, remove dns and gateway.
Some OpenWrt devices do not support mixing tagged and untagged VLANs on the same port.
I suggest to remove 4 from ports, or set it to 4t if you want VLAN 1 to be part of the trunk.
LAN VLANs should not be extended to the ISP modem; I suggest to remove 0t.
Again, remove 0t from both VLANs.
In addition, I suggest to swap the VLAN ID such that it matches the VLAN index.
However, this is just a cosmetic change to avoid confusion.
Since the mapping of port numbers to physical ports is device-specific, I made some assumptions:
6 = CPU
0 = WAN
1..4 = LAN1 .. LAN4 (not necessarily in this order)
external managed switch connected to internal switch port number 4 (whatever LANx that may correspond to)
For each of lan3, lan4 and lan5, set:
option forward 'REJECT'
Instead, add specific forwarding rules:
config forwarding
option src 'lan3'
option dest 'lan5'
config forwarding
option src 'lan4'
option dest 'lan5'
Since the printer is located on a separate VLAN, it is unlikely to be discovered automatically by the clients.
However, addressing the printer directly should work.