Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

Tech Support Unifi with Mi Router 4a Gigabit with OpenWRT

views
     
TSarchonixm
post Aug 25 2021, 09:23 PM, updated 5y ago

Enthusiast
*****
Senior Member
774 posts

Joined: Jan 2003
From: Prontera's Inn


Hi,

I have managed to configured the router to work with Unifi for VLAN ID 500.

What I could not get it to work is for VLAN ID 600. Below is the config
CODE

root@OpenWrt:~# cat /etc/config/network

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

config globals 'globals'
       option packet_steering '1'
       option ula_prefix 'xxxxxxxxxxxx::/48'

config device
       option name 'br-lan'
       option type 'bridge'
       list ports 'lan1'

config interface 'lan'
       option device 'br-lan'
       option proto 'static'
       option ipaddr '192.168.1.1'
       option netmask '255.255.255.0'
       option ip6assign '60'

config interface 'wan'
       option proto 'pppoe'
       option username 'xxxxxxxx@unifi'
       option password 'xxxxxxxx'
       option ipv6 'auto'
       option device 'wanq.500'

config interface 'wan6'
       option device 'wan'
       option proto 'dhcpv6'

config device
       option type '8021ad'
       option ifname 'wan'
       option vid '500'
       option name 'wan.500'

config device
       option type '8021q'
       option ifname 'wan'
       option vid '500'
       option name 'wanq.500'

config device
       option type '8021q'
       option ifname 'lan2'
       option vid '600'
       option name 'lan2.600'


I tried to ifconfig and only lan1 show, i didnt see lan2 as an interface. Anybody knows how to set it up?

 

Change to:
| Lo-Fi Version
0.0136sec    0.61    5 queries    GZIP Disabled
Time is now: 24th December 2025 - 04:53 PM