I using ASUS RT-AC58U, version 19.07.4 r11208-ce6496d796.
Actually this device got WAN port but not display on Switch config.
So I ignore that and use one of LAN port as WAN port. and PPPoE connection is success with below config. However, the others LAN port can't go internet but can get local network IP.
I search many articles but none of it can solve my situation here.
Hopefully someone can point out my blind spot?
If I had to guess, you haven't assigned the interface "UniFi" to a firewall zone.... you want this to be assigned to the wan firewall zone.
but...
Why are you ignoring the WAN port? is there something wrong with it? It should be totally usable even if it is not showing up in the switch configuration. If it is simply because you need to be able to setup the WAN with a VLAN ID, you can simply change the WAN to eth1.500 or eth2.500 (I see 2 different etc interfaces associated with wan for some reason).
ipq4018 chip, so eth0 and eth1 both go through an invisible internal switch as VLANs 1 and 2 before reaching the real switch. This means don't delete the pre-defined VLAN1 and VLAN2 and don't use those numbers for external purposes.
I think this was sorted better in later versions. In any case you should upgrade to the last 19.07 instead of .4. or consider running 21.02.
It might be good to see the default state of this file. It seems that you have modified the VLANs quite a bit here, and @mk24 had warned about not messing with VLANs 1 and 2.
My expectation (which could be wrong) is that the WAN interface should work with the nomenclature eth1.500, but I see that you have also created VLAN500 on eth0, so that could be part of the issue.
The 1st thing after upgrade and reset was config eth1.500. all those vLAN created later after eth1.500 didn't work. And I noticed "VLAN" only 1 created in default config. Never mind, I can try again with reset config later.
None, still not work. But I'm happy new version 21.02 can fix my LAN port not work issue. I just need one port as LAN. I don't mind give one port for WAN.
Does your isp associate you’re connection credentials with a MAC address? If so, that may explain the connection failed. You can swap the Mac addresses to test that theory.
ISPs sometimes specifically tie the account to the MAC address of the device at the customer location. Sometimes this is a 'soft' binding that can be reset by the customer such as the way it is done with most Cable ISPs in the US -- often you won't get a connection on a new device until reboot your modem one or more times and it will re-bind to the new device's MAC address. In the case of Cable ISPs, the IP address they provide is also typically tied to the MAC of your router. Other providers may do a 'hard' binding where you have to coordinate with the ISP to change MAC addresses.
OpenWrt allows you to change the MAC address that is presented to the ISP on the WAN port.
No issue here, as long as they allow you to use a router that they didn't provide.