On Thu, Sep 19, 2013 at 2:43 PM, jonsm...@gmail.com <jonsm...@gmail.com> wrote: > On Thu, Sep 19, 2013 at 2:41 PM, jonsm...@gmail.com <jonsm...@gmail.com> > wrote: >> For example do a clean openwrt build with nothing in /files/etc. It >> will generate a network file with the VLAN support turned off. RT5350 >> is not functioning with VLAN turned off. If used to work that way >> about six months ago.
I don't care about VLAN support since I am using the devices as APs not routers. I would prefer to just turn it off. >> >> config switch >> option name 'rt305x' >> option reset '1' >> option enable_vlan '0' >> >> I updated a router from about 6 months ago to current git. When I did >> this Ethernet wouldn't work (default is vlan off). I then had to mess > > When the Ethernet doesn't work it can send packets without problem but > it can't receive them. Internally I don't know if it can't hear the > packets or it can't decode the packets (maybe there is an unexpected > VLAN tag in them which shouldn't be there since vlan=0?). > > >> around until I discovered the solution was to turn VLAN support on. >> >> On Thu, Sep 19, 2013 at 12:42 PM, Diego Lopez Recas <suelt...@gmail.com> >> wrote: >>> Hi Jon, >>> >>> I don't know what you mean with "default 'off' state", but I'm using an >>> RT3052F SoC and I have to explicitly specify the the pvid for the port in >>> vlan 2 to make it work properly. I think this is usual. From >>> http://wiki.openwrt.org/doc/uci/network/switch : >>> >>> "Tagged packets received on a port will be directed to the VLAN indicated by >>> the VID contained in the packet. Untagged packets received on a port will be >>> directed to the default port VLAN (usually called the PVID). A separate >>> config switch_port section is required to set the default port VLAN." >>> >>> >>> So you should add this to your config: >>> >>> config 'switch_port' >>> option 'port' '0' >>> option 'pvid' '2' >>> >>> I hope it helps. >>> >>> Regards, >>> Diego >>> >>> >>> On Thu, Sep 19, 2013 at 4:21 PM, jonsm...@gmail.com <jonsm...@gmail.com> >>> wrote: >>>> >>>> Has anyone tried using the Ethernet switch on Ralink lately? I don't >>>> believe it is working correctly in the default 'off' state. The >>>> failure is that the Ralink CPU can't receive any packets from Ethernet >>>> (or those packet are corrupted by the VLAN tag). >>>> >>>> If I enable the switch it works properly. I'm seeing this on the >>>> RT5350 but the code is generic to all Ralink >>>> >>>> diff --git a/files/etc/config/network b/files/etc/config/network >>>> new file mode 100644 >>>> index 0000000..c608d0e >>>> --- /dev/null >>>> +++ b/files/etc/config/network >>>> @@ -0,0 +1,39 @@ >>>> +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 'fd59:3f8d:cb3a::/48' >>>> + >>>> +config interface 'lan' >>>> + option ifname 'eth0.1' >>>> + option type 'bridge' >>>> + option proto 'static' >>>> + option ipaddr '192.168.1.85' >>>> + option netmask '255.255.255.0' >>>> + option ip6assign '60' >>>> + >>>> +config interface 'wan' >>>> + option ifname 'eth0.2' >>>> + option proto 'dhcp' >>>> + >>>> +config interface 'wan6' >>>> + option ifname '@wan' >>>> + option proto 'dhcpv6' >>>> + >>>> +config switch >>>> + option name 'rt305x' >>>> + option reset '1' >>>> + option enable_vlan '1' >>>> + >>>> +config switch_vlan >>>> + option device 'rt305x' >>>> + option vlan '1' >>>> + option ports '1 2 3 4 6t' >>>> + >>>> +config switch_vlan >>>> + option device 'rt305x' >>>> + option vlan '2' >>>> + option ports '0 6t' >>>> >>>> -- >>>> Jon Smirl >>>> jonsm...@gmail.com >>>> _______________________________________________ >>>> openwrt-devel mailing list >>>> openwrt-devel@lists.openwrt.org >>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel >>> >>> >>> >>> _______________________________________________ >>> openwrt-devel mailing list >>> openwrt-devel@lists.openwrt.org >>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel >>> >> >> >> >> -- >> Jon Smirl >> jonsm...@gmail.com > > > > -- > Jon Smirl > jonsm...@gmail.com -- Jon Smirl jonsm...@gmail.com _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel