I have an ESPRESSObin board with Marvel 88E6341 switch and OpenWRT running on it.
My goal is to configure the two LAN ports on it as access ports belonging to two different VLANs.
Here is the the /etc/config/network file that I tried using -
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'wan'
option proto 'dhcp'
option ifname 'wan'
config 'switch' 'eth0'
option 'enable' '1'
option 'enable_vlan' '1'
option 'reset' '1'
config 'switch_vlan'
option 'vlan' '2'
option 'device' 'eth0'
option 'ports' '2 5t'
config 'switch_vlan'
option 'vlan' '3'
option 'device' 'eth0'
option 'ports' '1 5t'
config 'switch_port'
option 'port' '1'
option 'pvid' '3'
config 'interface' 'lan0'
option 'ifname' 'eth0.2'
option 'proto' 'static'
option 'ipaddr' '192.168.22.1'
option 'netmask' '255.255.255.0'
config 'interface' 'lan1'
option 'ifname' 'eth0.3'
option 'proto' 'static'
option 'ipaddr' '192.168.24.1'
option 'netmask' '255.255.255.0'
I am unable to ping the LAN ports with this configuration.
What could I be missing here? Also how can I verify if the packets are getting internally tagged?
(Last edited by sjose on 21 Jun 2017, 22:10)