Also ... as i said before, my ISP ( Brazil - VIVO ... FTTH ) request PPPoE over VLAN 10 to connect to internet.
I got some help from @JohnFlower at post:
https://forum.openwrt.org/viewtopic.php?pid=357118#p357118
But it didn't worked, with the instructions like this, i loose my connection and dhcp goes down. So i fixed
My Unit is WRT1900AC v1
After playing around with the settings, now it's working proper.
If anyone needs this ( Using Brazil VIVO or GVT - FFTH connection ) that needs PPPoE and VLAN 10 for internet, here it goes the config that worked for me:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.10.1'
option dns '8.8.8.8 8.8.4.4'
config interface 'wan'
option _orig_ifname 'eth1'
option _orig_bridge 'false'
option proto 'pppoe'
option username 'cliente@cliente'
option password 'cliente'
option ifname 'eth0.10'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 5'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '10'
option ports '4t 5t 6t'
The user and password for VIVO/GVT in Brazil is default and free so no problem to share.
Just need to replace in /etc/config/network - This works fine for WRT1900AC v1
As you can see with trunk on port 4t 5t 6t - i got both CPU and WAN port to proper work.
Take a look on screen if anyone wants to do it over LuCI screen:
Even IPv6 ( dhcpv6-pd ) is working proper with this setup
(Last edited by ygor.almeida on 28 Apr 2017, 04:57)