OpenWrt Forum Archive

Topic: Vlan(only one eth*) in nanostation 2 loco - Its Possible?

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I installed version 10.03.1 on a  nanostation 2 loco.
It has only one etho interface and the wifi chipset is an atheros, which allows me to create more than one ap (virtual).
I have already configured and working as follows:
Interface wan2 (eth0): 192.168.99.19/24 and Wireless(Openwrt) 192.168.10.1 with active dhcp.
That, works perfectly.

However, I would like to integrate another network (eth0.10 - vlan) with a different network, eg: 10.2.2.x / 28 and with a bridge to a virtual ssid.
So I have only one ip between the interfaces, the same for eth0.10 and virtual ssid.
However, every time I create and configure an ip in the eth0.10 (vlan) interface I do not receive packets, only TX works.
Can anyone clarify me if it is possible to do this in nanostation 2 loco?

Network:

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 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option '_orig_ifname' 'eth0'
        option '_orig_bridge' 'false'
        option 'ipaddr' '192.168.10.1'

config 'interface' 'wan2'
        option 'proto' 'static'
        option 'ifname' 'eth0'
        option 'ipaddr' '192.168.99.19'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.99.1'
        option 'broadcast' '192.168.99.255'
        option 'dns' '192.168.99.1 8.8.8.8'

Wireless:

config 'wifi-device' 'wifi0'
        option 'type' 'atheros'
        option 'txpower' '15'
        option 'diversity' '0'
        option 'antenna' 'horizontal'
        option 'channel' '2'

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

config 'wifi-iface'
        option 'device' 'wifi0'
        option 'mode' 'ap'
        option 'ssid' 'UNIQ'
        option 'encryption' 'none'

(Last edited by binbash on 11 Sep 2017, 23:54)

You may need to tag both-- e.g. use eth0.1 for one VLAN and eth0.10 for the other.  Don't try to connect anything to plain eth0.  I seem to remember that if something is linked to the "mother" interface eth0, all received packets go there.

The discussion might have continued from here.