Topic: Problem: configuration VLAN on the NANOSTATION2 - NS2

Hi!

I'm new member of this forum and I have a problem with my Openwrt firmware.
I'm trying to implement multiple SSID with the use of VLANs on  the Ubiquiti Nanostation2.
My problem is VLAN: it DOESN'T WORK with the a last release of trunk (OpenWrt Firmware Attitude Adjustment (r29330)/LuCI Trunk (trunk+svn8037)) but VLAN WORK with an old version of Openwrt Backfire (10.03, r20728)
I compared the etc/config/network and etc/config/wireless files between the two version and they seem to be identical.
I'm sure that the problem is on my new firmware because we tried more times but only the old firware VLAN work.

Can sameone help me??
thanks

I add entirely the configuration files:


NETWORK (OLD FW)

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

config 'interface' 'data'
    option 'ifname' 'eth0.3301'
    option 'type' 'bridge'
    option 'proto' 'static'
    option 'ipaddr' '192.168.4.100'
    option 'netmask' '255.255.255.0'
    option 'gateway' '192.168.4.1'
    option 'dns' '217.18.208.130'

config 'interface' 'mngt'
    option 'ifname' 'eth0.3300'
    option 'type' 'bridge'
    option 'proto' 'static'
    option 'ipaddr' '78.24.82.100'
    option 'netmask' '255.255.255.0'
    option 'gateway' '78.24.82.254'

config 'interface' 'wan'
    option 'ifname' ' '
    option 'proto' 'none'



WIRELESS (OLD FW)

config wifi-device      wifi0
    option type     atheros
    option hwmode    11bg
    option channel  1
    option antenna    auto
    option disabled 0

config wifi-iface
    option device    wifi0
    option network    data
    option mode    ap
    option ssid    Guglielmo
    option encryption none



NETWORK (NEW FW)

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'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'vlan'
        option 'proto' 'static'
        option 'ifname' 'eth0.100'
        option 'ipaddr' '192.198.1.21'
        option 'netmask' '255.255.255.0'
        option 'gateway' '191.168.1.25'
        option 'type' 'bridge'


WIRELESS (NEW FW)

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'channel' '11'
        option 'macaddr' '00:15:6d:f0:2e:7b'
        option 'hwmode' '11g'
        option 'disabled' '1'
        option 'txpower' '1'
        option 'country' 'IT'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'network' 'lan'
        option 'mode' 'ap'
        option 'ssid' 'OpenWrt'
        option 'encryption' 'none'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'mode' 'ap'
        option 'encryption' 'none'
        option 'ssid' 'vlan100'
        option 'network' 'vlan'

Re: Problem: configuration VLAN on the NANOSTATION2 - NS2

might be a problem using eth0 in a bridge after vlan interface declaration.
At least i have met those difficulties often.

Solution is to build a virtual interface(veth0) with eth0 first (using veth package / vethd), the bridgin veth0 as substitude of eth0.

Runs fine for me in Kamikae / Backfire / trunk.

btw : veth0 carries all vlan packages as a trunk

regards
3zl

"use  *search* or give me your  I*  so i can show you"

        mesh applications with batman-adv

3 (edited by fyi 2012-01-13 19:13:50)

Re: Problem: configuration VLAN on the NANOSTATION2 - NS2

Correct the typo first.

julius wrote:

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'vlan'
        option 'proto' 'static'
        option 'ifname' 'eth0.100'
        option 'ipaddr' '192.198.1.21'
        option 'netmask' '255.255.255.0'
        option 'gateway' '191.168.1.25'
        option 'type' 'bridge'


WIRELESS (NEW FW)

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'channel' '11'
        option 'macaddr' '00:15:6d:f0:2e:7b'
        option 'hwmode' '11g'
        option 'disabled' '1'
        option 'txpower' '1'
        option 'country' 'IT'

[s]Switch Documentation - OpenWrt Wiki[/s]

Re: Problem: configuration VLAN on the NANOSTATION2 - NS2

Hi!

I'm starting to explore and use Openwrt and I'facing the same problem, when using backfire 10.03.1.
@julius was you able to solve this? can you give some tips.

@fyi what you want to say with "correct the typo first", is to remove "option type bridge" from eth0 and from eth0.100 on the example?

Thanks in advanced,
Jenifer

Re: Problem: configuration VLAN on the NANOSTATION2 - NS2

If the parent interface (eth0) is part of a bridge, it will "swallow" vlan frames so the sub-interfaces (eth0.x) will receive no traffic.
Either unbridge the iface or define the vlans on top of the bridge:

config interface lan
  option type bridge
  option ifname eth0
  ...

config interface vlan
  option ifname br-lan.100
  ...

Re: Problem: configuration VLAN on the NANOSTATION2 - NS2

jow wrote:
config interface lan
  option type bridge
  option ifname eth0
  ...

config interface vlan
  option ifname br-lan.100
  ...

How does kernel initialize the interfaces? Which factors control that "lan" should always be initialized before "vlan" and "wan"? By alphabet order of the names of the interface configurations or by type and ifname?

Re: Problem: configuration VLAN on the NANOSTATION2 - NS2

Its hotplug driven. Root ifaces like eth0 are brought up on boot.

Re: Problem: configuration VLAN on the NANOSTATION2 - NS2

Thanks at all.
Without the bridge on eth0 it work fine.
Even though I need one ssid associated with an parent interface not vlan (not eth0.x), i will try the solution of @3zl and I will let you know.

Last thing: how many multiple ssid can I create on a nanostation 2? Is there a limit of number??

Re: Problem: configuration VLAN on the NANOSTATION2 - NS2

Default to 4.

OpenWrt / Creating a bridge interface breaks VLAN functionality