Hi everyone, I've been having trouble setting up VLAN configuration on WAN(eth1) port on a Access Point running OpenWrt 22.03.0, r19685-512e76967f. My goal is to setup VLAN 24 for my AP on WAN port.
please anyone share the VLAN configuration for WAN interface.
Hi, i tried this below VLAN configuration but I was not able to make it working, yet!!
Interface eth1.24 is created but ip on this interface is not found
What is the make / model and chipset? This looks like one of the Atheros 10/100 chips (AR92xx, AR93xx etc) which have eth1 a dedicated CPU port to the external wan port. On those the wan connection does not involve the switch.
Assuming that you have shared the complete default configuration of your device, it should be really simple. To setup VLAN 24 on the wan (this requires that the upstream connection is already using tagged VLAN 24), just use simple dotted notation like this:
config interface 'wan'
option device 'eth1.24'
option proto 'dhcp'
Then restart and your wan will listen on VLAN 24 (tagged) for the connection.
@sujeetkumar Reading your first post again, I noticed that you mention "AP". If this device is actually a dumb AP, then I'm wondeirng if the question isn't actually about setting up the WAN port so that it untags VLAN 24 and is bridged with the WiFi network. If I'm correct, then:
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
list ports 'eth1.24'
Upgrade to 23.05.3 first, which gives you a functional DSA environment, instead of the rather quirky (and outright broken) swconfig drivers present in older releases.
Below is my default /etc/config/network configuration and when we connect SSID with lan interface in /etc/config/wireless, it works fine and wifi connectivity is also successful.
/etc/config/network
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 'fd56:d0b2:9d02::/48'
config device 'device1'
option name 'br-lan'
list ports 'eth0'
option type 'bridge'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
And when we try to add some lines in the bottom of above /etc/config/network to create VLAN as mentioned below..
We are only able to connect my phone with SSID whose network is connected to the 'vlan2' interface.. But not connecting SSID whose network is connected to the 'lan' interface