AP not reachable on eth0, only on VLAN

Hi everybody,

first of all, thanks for this great tool and your help in advance.
I am using openWRT on a Wifi AP Netgear EX-6150 which is now supported (thanks for that also!).
Originally I wanted to remove the IP addresses from the VLAN bridges and have OpenWRT reachable only on, which is the address configured on eth0.

However, I cannot ping the gateway from OpenWRT but is working and both wifi networks as well.

Why is the IP not working?

Thanks again!

Network config:

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr ''
        option netmask ''

config globals 'globals'
        option ula_prefix '*:*:*::/48' #removed

config interface 'eth0'
        option type 'bridge'
        option ifname 'eth0'
        option proto 'static'
        option ipaddr ''
        option netmask ''
        option gateway ''
        list dns ''

config interface 'guest'
        option type 'bridge'
        option ifname 'eth0.30'
        option proto 'none'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0.10'
        option proto 'static'
        option ipaddr ''
        option gateway ''
        option netmask ''
        list dns ''

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         UG    0      0        0 br-lan     *        U     0      0        0 br-eth0    *        U     0      0        0 br-lan

What is switch configuration?

1 Like

The switch has 802.1Q VLAN configured (TP-Link TL-SG1016DE):

VLAN ID VLAN Name  Member Ports          Tagged Ports  Untagged Ports
1       default           1-16           -             1-16
20      DMZ               15-16          15-16         -
30      GUEST             2,4,6,12,16    2, 16         4, 6, 12
10      INT               2,8,10,15-16   2,15-16       8, 10

Port 2 is the openwrt Access Point, PVID 1
Port 16 is the OPNsense Firewall, PVID 1

I thought that eth0 interface is "untagged" and therefore would be associated with VLAN1

Thanks for your help...

[update: reformatted table]

OK, my question is about switch configuration of AP. Do you see sections with 'switch' word in /etc/config/network?

There are no switch sections in the network file as I am using it as an Access Point, I copied the full file in the OP.


Sorry, you are using eth0.10, eth0.30 VLAN's 10, and 30 should be configured.

That's right. I have VLAN10 for INT WLAN and VLAN30 for GUEST WLAN. Both are working.
However I thought that VLAN1 should be working on interface 'eth0' as well as I have static IP configured there.
Is that not correct?


Please, give output of
swconfig list
VLAN and IP are independent! I don't understand your message about dependence of VLAN, and static IP.

Is the OpenSense configured to tag vlan1 on the interface that is connected on port 16 of the switch?
The diagram of the VLAN allocation of the switch is not so clear, better use preformatted text when you paste output of devices ( the </> button).
But I presume that you have VLAN1 untagged and native on every port.
I was running into the same issue more or less and I could solve it by adding a new VLAN for what used to be VLAN1 and tag it.

If its VLAN 1 then should be eth0.1.

Also it's a good pactice to define the interface at the VLAN level not at the physical interface level (i.e. eth0.1 not eth0); it makes it a lot more flexible.

Additionally, there is probably little point of defining eth0 as a bridge.

1 Like

Thanks for your suggestions.

I now also tried to configure an eth0.1 which also did not work.
I am coming to the conclusion that the hardware I am using does not support mixed tagged/untagged traffic. I will now configure a VLAN50 and call it a day. Thanks for all your help.

This post seems to have a similar constraint:

[update: fixed typo on interface name]

There is a big difference between eth1 and eth0.1.