So far, I’m not able to understand how to set-up my VLANs on this router. The internet search I made pointed to good detailed procedures that are marked as obsolete by other posts (eg managing switch interface), or more recent posts that are either too high level (VLAN - Turris Documentation) or not corresponding to my set-up (like the guest wifi exiting through WAN).
Right now, I need Omnia to replace a cisco Wifi AP and it need to be connected to an EdgeRouter doing all the router/firewall/gateway work. I need to configure the Omnia with same configuration as the current AP, as I don’t want to change rules in the EdgeRouter for the moment.
I made trial and errors, but I’m not where I want to be
To start this journey, I’m first trying to do an initial set-up:
Omnia needs to support 2 Vlans:
Vlan2 is for managing network devices, the Omnia in this case
Vlan5 is for devices connected via Wifi
VLAN2 and VLAN5 are both connected to the EdgeRouter on Lan4
on the Edgerouter side, the PVID is Vlan2 and the VID is Vlan4
static IPv4 for Omnia interfaces
Vlan5 needs of course to be set-up with Wifi
devices connected to Wifi shall obtain IP via DHCP managed by Edgerouter
Vlan2 and Vlan5 shouldn’t talk to each other
Omnia management interfaces (SSH, http, etc) need to be accessible only from Vlan2
How do I clean start to make this work?
So far, I managed cisco and Edgerouter via their GUI, but if CLI is required for Omnia, I can do SSH.
There is something wrong I do, but can’t figure what
If I set-up a standard interface on lan4 with static IP in same subnetwork of the Edgerouter pvid, communication is OK:
I can ping from omnia to edgerouter
I con ping from edgerouter to omnia
When I try to set-up a VLAN using this config generated via GUI
config interface ‘50_Normal’
option proto ‘static’
option type ‘bridge’
option ipaddr ‘10.0.50.4’
option netmask ‘255.255.255.0’
list dns ‘10.0.50.1’
option gateway ‘10.0.50.1’
option ifname ‘eth0.5 lan4.5’
then networking is not established:
from omnia I can ping its interface 10.0.50.4 but not 10.0.50.1 on edgerouter nor other IP on this subnetwork “Destination Port Unreachable” with omnia firewall started and “Destination Host Unreachable” with omnia firewall stopped
from the edgerouter, I can ping 10.0.50.1 and other devices, but not the omnia 10.0.50.4 “Destination Host Unreachable” (with omnia firewall started or stopped)
Any advice to make this work?
Also, I can see in youtube videos that an easy VLAN set-up on OpenWRT could be achieved via “device” tab under “network” section, but I haven’t got such tab on my Turris OS Luci…
It only shows 2 tabs under “network”:
“interfaces”
“global network options”
is there any reason why this “device” tab is not available on Omnia?
Dont know if you configured but you should additionally:
In Luci From Interfaces
at Firewall Settings tab add new zone(each subnet requires new zone)
at DHCP Server tab configure General-Setup and at Advaned Settings add DCHP-Options.
Then
From Firewall configure your new zone, add DHCP and DNS firewall rules, you can inspire from existing lan, and add necessary forwardings from/to your new zone
@hagrid , does it mean that we can’t set-up VLANs before OS6, or that it is much more difficult to do it at the moment?
@iron-maiden , I’ll try modifying the firewall.
Ping response was different yet negative with firewall started or stopped, although I would have thought that doing ping on same subnetwork would not require any particular firewall settings. Is there something particular to know within OpenWRT?
For some reasons, after reboot omnia reverted to factory default set-up (except management password). I need to redo experiments to set-up the VLAN and try to achieve at least basic connectivity…
Indeed, it is not easy.
With the reboot and fresh reentry of parameters, it seems I’m able to ping the VLAN interface!
I’ll do some more tests to ensure it is properly working.
Probably that trials and errors broke something that made the good configuration not working yesterday. As we all know, if it doesn’t work, just reboot it
Well, yes, you can create VLAN, by creating the sub-interfaces with the correct VLAN tag. I personally do not like this approach and prefer to do the VLAN filtering on the bridge, like this (available on TOS6)