The VLAN configuration I needed for the fibre connection uses the same setting as this guide shows.
http://www.klseet.com/index.php/singtel ... 18-openwrt
Openwrt's LUCI web interface allows one to configure the VLAN but Gargoyle does not.
In the end, I was able to configure VLAN on Gargoyle by modifying /etc/network
However, the problem is if I attempt to change any settings related to network, e.g. change WIFI access point name or password, Gargoyle will reset my VLAN settings back to default, effectively breaking my internet connection.
Ideally, I would like to see Gargoyle have VLAN configuration UI or at least stop Gargoyle from modifying my custom VLAN settings when one make changes on the web interface. Without such web UI, average users who want to use Gargoyle on internet connections that requires tagging probably will never figure out how to make it work...
My /etc/config/network for TP-1043nd v1 on Gargoyle v1.6.2
Code: Select all
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.1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.1'
option dns '8.8.8.8 8.8.4.4'
config interface 'wan'
option proto 'dhcp'
option peerdns '0'
option dns '8.8.8.8 8.8.4.4'
option ifname 'eth0.10'
config switch
option name 'rtl8366rb'
option reset '1'
option enable_vlan '1'
option enable_vlan4k '1'
config switch_vlan
option device 'rtl8366rb'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'rtl8366rb'
option vlan '10'
option ports '0t 5t'
Code: Select all
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 'eth1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.1'
option dns '8.8.8.8 8.8.4.4'
config interface 'wan'
option ifname 'eth0.10'
option proto 'dhcp'
option dns '8.8.8.8 8.8.4.4'
option peerdns '0'
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 4'
config switch_vlan
option device 'switch0'
option vlan '10'
option ports '5t 6t'