Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
340 stars 52 forks source link

Bridge mode without VLAN does not work #1068

Open meyergru opened 3 years ago

meyergru commented 3 years ago

Device Model/Firmware: DGA4132 Cobal 18.3.k GUI Version: 9.6.69

Debug file: DebugHelper2021-01-24-1452.tar.gz

Description of problem:

When I disable the VLAN on the broadband card and use the gateway in bridge mode, the configuration of the lan interface stays like:

config interface 'lan'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '64'
        option force_link '0'
        option rpfilter '1'
        option ipv6 '0'
        option ipaddr '192.168.7.1'
        option gateway '192.168.7.2'
        list pppoerelay ''
        list pppoerelay ''
        list dns '192.168.7.2'
        list ifname 'eth0'
        list ifname 'eth1'
        list ifname 'eth2'
        list ifname 'eth3'
        list ifname 'eth4'
        list ifname 'eth5'
        list ifname 'wanptm0'

whereas the config for wanptm0 is:

config device 'wanptm0'
        option type '8021q'
        option name 'wanptm0'
        option macaddr 'A4:91:B1:31:2E:D4'
        option ipv6 '0'
        option vid '7'

The only thing that is changed is the wan interface config, where 'ptm0' is used instead of 'wanptm0' when you disable the VLAN setting in the GUI.

With this configuration, the formerly active VLAN is still in use for the bridge and does not work when it is already configured in the router. This is mainly for PPPoE connections over VLANs, because every provider uses their own VLAN and with bridged mode, this is better handled in the router, not in the modem.

The last interface in the bridge definition of the lan interface above should also be changed to 'ptm0'. Once you do this manually and reboot, all is fine.