Modify

Opened 8 years ago

Closed 7 years ago

#7692 closed defect (worksforme)

multiple vlan config broken on WRT160NL r22454

Reported by: WTGPhoben Owned by: developers
Priority: high Milestone:
Component: packages Version: Backfire 10.03
Keywords: Cc:

Description

I am unable to configure multiple vlans on the wrt160nl running the latest backfire branch. the default config of a single vlan works but all eth0.x ports fail when multiple vlans are configured.

tried all possibilities of vlan config (with / without t, *; with and without port 4 in every vlan. with and without port 5 in every vlan)

When I try to get a dhcp address on one of the vlans, logread says:

daemon.warn dnsmasq-dhcp[1488]: DHCP packet received on eth0 which has no address

eth1 works properly.

Attachments (1)

wrt160nl bug (2.5 KB) - added by WTGPhoben 8 years ago.
network config and swconfig output for multiple vlan bug

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by WTGPhoben

network config and swconfig output for multiple vlan bug

comment:1 Changed 7 years ago by Johannes Schlatow <johannes.schlatow@…>

I have a similar problem on my wrt160nl (r22530). By default, eth0 is connected to the bridge br-lan, vlan 1 has ports 0-5. As soon as I add vlan 1 (eth0.1) to the bridge and delete eth0, the network connection will be broken.

Steps to reproduce:

$ vconfig add eth0 1
$ ifconfig up eth0.1
$ brctl addif br-lan eth0.1
$ brctl delif br-lan eth0

Strangely enough, 'swconfig dev eth0 get enable_vlan' returns "failed".

comment:2 Changed 7 years ago by redfuse

same issue on r22553.

comment:3 follow-up: Changed 7 years ago by Johannes Schlatow <johannes.schlatow@…>

Solved in my case! CPU is port 4. So you need something like this:

config switch_vlan
    option device   eth0
    option vlan     2
    option ports    "2 3 4*"

config switch_vlan
    option device  eth0
    option vlan    1
    option ports   "0 1 4*"

comment:4 in reply to: ↑ 3 Changed 7 years ago by anonymous

Replying to Johannes Schlatow <johannes.schlatow@…>:

Solved in my case! CPU is port 4. So you need something like this:

config switch_vlan
    option device   eth0
    option vlan     2
    option ports    "2 3 4*"

config switch_vlan
    option device  eth0
    option vlan    1
    option ports   "0 1 4*"

I also got it to work with a similar config. It seems * or t is needed on each vlan to get it to work. my 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'

comment:5 Changed 7 years ago by nbd

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

I think you just need to avoid using vlan0 and make port 4 tagged in all vlans

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.