Modify

Opened 7 years ago

Closed 7 years ago

#8719 closed defect (worksforme)

multiple vlan config broken on WRT160NL r25061

Reported by: WTGPhoben Owned by: developers
Priority: highest Milestone: Backfire 10.03.1
Component: packages Version: Backfire 10.03.1 RC4
Keywords: Cc:

Description

I previously had a working config for two vlans in r22454. See last update to /ticket/7692.html. With r25061 it is broken again usign the same config. Vlan1 is functional, but vlan0 does not get packets to the CPU (tcpdump -i eth0.0 shows nothing when I try to communicate over ethernet). ifconfig shows both eth0.0 and eth0.1 as up. SWconfig output is different in this rev than in the working one:

config:

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

config 'switch_vlan'
	option 'device' 'eth0'
	option 'vlan' '0'
	option 'ports' '0 4*'

config 'switch_vlan'
	option 'device' 'eth0'
	option 'vlan' '1'
	option 'ports' '1 2 3 4t'

swconfig in broken rev:

$:/# swconfig dev eth0 show
Global attributes:
        reset: ???
        enable_vlan: ???
        trunk: 0
        trunk_sel: 0
Port 0:
        pvid: 0
        link: 1
        speed: 1
        nway: 1
Port 1:
        pvid: 1
        link: 0
        speed: 0
        nway: 1
Port 2:
        pvid: 1
        link: 0
        speed: 0
        nway: 1
Port 3:
        pvid: 1
        link: 0
        speed: 0
        nway: 1
Port 4:
        pvid: 4
        link: 1
        speed: 1
        nway: 1
Port 5:
        pvid: 5
        link: 0
        speed: 1
        nway: 0
VLAN 0:
        vid: 0
        ports: 0 5 
VLAN 1:
        vid: 1
        ports: 1 2 3 4 
VLAN 2:
        vid: 2
        ports: 2 5 
VLAN 3:
        vid: 3
        ports: 3 5 
VLAN 4:
        vid: 4
        ports: 4 5 
VLAN 5:
        vid: 5
        ports: 0 1 2 3 4 


swconfig in r22454:

root@fabfi200:~# swconfig dev eth0 show
Global attributes:
	reset: ???
	enable_vlan: ???
	trunk: 0
	trunk_sel: 0
Port 0:
	pvid: 0
	link: 0
	speed: 0
	nway: 1
Port 1:
	pvid: 1
	link: 1
	speed: 1
	nway: 1
Port 2:
	pvid: 1
	link: 0
	speed: 0
	nway: 1
Port 3:
	pvid: 1
	link: 1
	speed: 1
	nway: 1
Port 4:
	pvid: 0
	link: 1
	speed: 1
	nway: 1
Port 5:
	pvid: 5
	link: 0
	speed: 1
	nway: 0
VLAN 0:
	vid: 0
	ports: 0 4 
VLAN 1:
	vid: 1
	ports: 1 2 3 4 
VLAN 2:
	vid: 2
	ports: 2 5 
VLAN 3:
	vid: 3
	ports: 3 5 
VLAN 4:
	vid: 4
	ports: 4 5 
VLAN 5:
	vid: 5
	ports: 0 1 2 3 4 

NOTE: the two screenscrapes above have different cables plugged in, the part that's important (I think) is the VLAN 0 output.

in all cases ifconfig seems to register the vlans with the right numbers to the right ip configuration, but in no case have I been able to get both vlans to work.

Some possibly related bugs:
/ticket/8458.html
/ticket/8501.html <-- this workaround failed for me

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by anonymous

edit, here's the complete config, by request:

lan and wifimesh are wireless interfaces. My public IP has been removed.

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

config 'switch_vlan'
        option 'device' 'eth0'
        option 'vlan' '0'
        option 'ports' '0 4*'

config 'switch_vlan'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '1 2 3 4t'

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

config 'interface' 'wan'
        option 'proto' 'static'
        option 'ifname' 'eth1'
        option 'netmask' '255.255.255.248'
        option 'peerdns' '0'
        option 'ipaddr' '<my ip>'
        option 'gateway' '<my gateway>'
        option 'dns' '8.8.8.8'

config 'interface' 'mesh'
        option 'proto' 'static'
        option 'ifname' 'eth0.1'
        option 'netmask' '255.255.252.0'
        option 'peerdns' '0'
        option 'ipaddr' '10.100.0.1'

config 'alias'
        option 'interface' 'mesh'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.10'
        option 'netmask' '255.255.255.0'

config 'interface' 'wifimesh'
        option 'proto' 'static'
        option 'netmask' '255.255.252.0'
        option 'peerdns' '0'
        option 'ipaddr' '10.104.0.1'

config 'interface' 'alan'
        option 'proto' 'static'
        option 'ifname' 'eth0.0'
        option 'netmask' '255.255.255.0'
        option 'peerdns' '0'
        option 'ipaddr' '10.108.1.1'

config 'interface' 'chilli'
        option 'proto' 'none'
        option 'ifname' 'tun0'
        option 'peerdns' '0'

config 'interface' 'lan'
        option 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option 'peerdns' '0'
        option 'ipaddr' '10.112.1.1'

comment:2 Changed 7 years ago by WTGPhoben

Thanks to jow on the fix here:

It seems vlan 0 is special on this device, so you have to use vlan1 and 2 and also tag both port 4s like this:

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

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

config 'switch_vlan'
        option 'device' 'eth0'
        option 'vlan' '2'
        option 'ports' '1 2 3 4t'

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

config 'interface' 'wan'
        option 'proto' 'static'
        option 'ifname' 'eth1'
        option 'netmask' '255.255.255.248'
        option 'peerdns' '0'
        option 'ipaddr' '<my ip>'
        option 'gateway' '<my gateway>'
        option 'dns' '8.8.8.8'

config 'interface' 'mesh'
        option 'proto' 'static'
        option 'ifname' 'eth0.2'
        option 'netmask' '255.255.252.0'
        option 'peerdns' '0'
        option 'ipaddr' '10.100.0.1'

config 'alias'
        option 'interface' 'mesh'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.10'
        option 'netmask' '255.255.255.0'

config 'interface' 'wifimesh'
        option 'proto' 'static'
        option 'netmask' '255.255.252.0'
        option 'peerdns' '0'
        option 'ipaddr' '10.104.0.1'

config 'interface' 'alan'
        option 'proto' 'static'
        option 'ifname' 'eth0.1'
        option 'netmask' '255.255.255.0'
        option 'peerdns' '0'
        option 'ipaddr' '10.108.1.1'

config 'interface' 'chilli'
        option 'proto' 'none'
        option 'ifname' 'tun0'
        option 'peerdns' '0'

config 'interface' 'lan'
        option 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option 'peerdns' '0'
        option 'ipaddr' '10.112.1.1'

comment:3 Changed 7 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

Invalid config.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.