[LEDE-DEV] wrong switch configuration

e9hack e9hack at gmail.com
Mon Jul 18 21:12:45 PDT 2016


Hi,

I'm using a modified TP-Link wdr3600 router. Flash is replaced by by a 16MB type. I update
the build system for the larger flash. I'm using this configuration since 2014 without any
problems (previously with OpenWrt, now with Lede). Currently I've problems with the
generated images. If I'm flashing the sysupgrade image, the old configuration is available
after the 1th reboot without power off, but partly reverted after the next power off/on
cycle.

Independently of this, if I'm using the -n option to get a fresh installation, the file
'/etc/config/network' looks like this:

root at lede:~# cat /etc/config/network

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

config globals 'globals'
        option ula_prefix 'fd1c:c86e:610e::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0.1 eth0.3'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option type 'bridge'
        option ifname 'eth0.2 eth0.4'
        option proto 'dhcp'

config interface 'wan6'
        option ifname 'br-wan'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '2 3 4 5 0t 3 4 5 0t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '1 0t 0t'

config switch_vlan
        option device 'switch0'
        option vlan '3'
        option ports '2 0t'

config switch_vlan
        option device 'switch0'
        option vlan '4'
        option ports '1 0t'

Something with the switch setup seems to be wrong.

Regards,
Hartmut



More information about the Lede-dev mailing list