On Tue, Jul 1, 2014 at 9:51 PM, Roman Yeryomin <leroi.li...@gmail.com> wrote: > On 1 July 2014 09:57, Xiongfei(Alex) GUO <xf...@credosemi.com> wrote: >> hi, Roman, >> >> simply try these commands in OpenWrt, then the ethernet will start to work. >> >> uci set network.@switch_vlan[0].vid=1 >> uci set network.@switch_vlan[1].vid=2 >> uci commit >> /etc/init.d/network restart > > That helped, indeed! > But how come changing the vid via swconfig directly doesn't have any effect? > For example: > > root@OpenWrt:/# swconfig dev switch0 vlan 1 show > VLAN 1: > vid: 1 > ports: 1 2 3 4 6t > root@OpenWrt:/# swconfig dev switch0 vlan 1 set vid 5 > root@OpenWrt:/# swconfig dev switch0 vlan 1 show > VLAN 1: > vid: 1 > ports: 1 2 3 4 6t > > Because this is what I saw - the vid was 0 and I tried to set it via > swconfig which didn't help. > To me it still looks that something is broken if I cannot change vid > (pvid or other vlan configuration) via swconfig. > one more step,
$ swconfig dev switch0 set apply 1 Xiongfei(Alex) Guo Credo Semi. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel