Modify

Opened 5 years ago

Last modified 4 years ago

#12207 new defect

VLAN do not work for alfa w502u

Reported by: lsoltero@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: VLAN RT305X alfa w502u Cc:

Description

As if AA version 33455 the VLANs for the alfa w5028 no longer work. They work fine for previous version. I currently have an AA build running kernel 3.2.5 that has two working ethernet ports configured in a VLAN configuration. However, with the latest checkout the VLANS no longer work.

the interfaces are created. They can manually be assigned IP addresses using ifconfig but will not play over the ethernet ports. You can ping the IP addresses of the interfaces from the router itself.

Doing an SVN diff it looks like many files have changed in the target/linux/ramips/files/arch/mips/ranlink/rt305x from the version of AA that has working ethernet ports. This probably explains why these no longer work. I have confirmed that the previous patch that addresses this issue is in place

/changeset/29969.html

my guess... ralink released new code which has been put into the trunk which breaks the ethernet ports.

i have tried reverting to previous versions of the rt305x files but can't get them to compile in the new environment.

interestingly connecting a PC to the ethernet port while the WAN is connected to a network with DHCP assigns the PC an IP address on the WAN network. So... the ethernet ports act like a switch passing traffic through between the devices connected to the ports.

This is exactly the same problem reported prior to change set 29969 as described here.

https://forum.openwrt.org/viewtopic.php?id=31264&p=1

any ideas would greatly be appreciated.

Here is an ifconfig showing that the vlans are created...note the lack of ip address for the WAN...

br-lan    Link encap:Ethernet  HWaddr 00:C0:CA:64:2C:F0  
          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:402 (402.0 B)

eth0      Link encap:Ethernet  HWaddr 00:C0:CA:64:2C:F0  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10169 errors:0 dropped:465 overruns:0 frame:0
          TX packets:1680 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1166949 (1.1 MiB)  TX bytes:697191 (680.8 KiB)
          Interrupt:5 

eth0.1    Link encap:Ethernet  HWaddr 00:C0:CA:64:2C:F0  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:402 (402.0 B)

eth0.2    Link encap:Ethernet  HWaddr 00:C0:CA:64:2C:F0  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1679 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:690069 (673.8 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2000 (1.9 KiB)  TX bytes:2000 (1.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:C0:CA:64:2C:F2  
          inet addr:192.168.20.1  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8432 errors:0 dropped:159 overruns:0 frame:0
          TX packets:7118 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:1207872 (1.1 MiB)  TX bytes:2047770 (1.9 MiB)

here is the /etc/config/network for the router

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.10.1'

config 'interface' 'wan'
	option 'ifname' 'eth0.2'
	option 'proto' 'dhcp'
	option 'hostname' 'wxa-102'

config 'interface' 'wifi'
	option '_orig_ifname' 'wlan0'
	option '_orig_bridge' 'false'
	option 'proto' 'static'
	option 'ipaddr' '192.168.20.1'
	option 'netmask' '255.255.255.0'
	option 'broadcast' '192.168.20.255'

the same config file works with earlier version of AA on this platform.

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by c.chalvantzis@…

This is a known issue with some ramips switches. See ticket /ticket/12125.html

comment:2 Changed 5 years ago by lsoltero@…

just did a an svn update to latest head

lsoltero@ubuntu810vm:~/openwrt.ralink$ svn update
At revision 33618.

and the ethernet interfaces are still not being created correctly. As stated previously this had been working with previous version of AA.

here is a build that works.

lsoltero@ubuntu810vm:~/openwrt/trunk$ svn info
Path: .
URL: svn://svn.openwrt.org/openwrt/trunk
Repository Root: svn://svn.openwrt.org/openwrt
Repository UUID: 3c298f89-4303-0410-b956-a3cf2f4a3e73
Revision: 30512
Node Kind: directory
Schedule: normal
Last Changed Author: juhosg
Last Changed Rev: 30508
Last Changed Date: 2012-02-13 12:11:58 -0500 (Mon, 13 Feb 2012)

juhosg posted a patch to address this issue... however that patch no longer works

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.