Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

Unifi Xiaomi Router & Unifi - OpenWRT user come here too, Need help on VLAN tagging

views
     
TSLickGuy
post Sep 18 2014, 10:33 PM, updated 11y ago

Highly Flammable Material
******
Senior Member
1,520 posts

Joined: Jan 2003
From: Shuddup


Hi guys,
just got my mirouter (with hdd - bcm4709) about a week ago,
and then... *bam* not compatible with Unifi due to lack of VLAN tagging rclxub.gif
didn't check the spec before bough it ... since it was OpenWRT based I though I'll be safe... who know .... haih

After that I went to google abit and found out you could actually do vlan tagging in CLI,
enabled the SSH daemon then login .... totally no idea how to configure it
read up abit ... sounds like /etc/config/network should be the 1 to "manual adjust"
now the content read something like below
CODE

config switch 'eth0'
option enable '1'
       option enable_vlan '1' #added by me
       option reset '1' #added by me, no idea what's this

config switch_vlan 'eth0_1'
option device 'eth0'
option vlan '1'
option ports '0 2 5*'

config switch_vlan 'eth0_2'
option device 'eth0'
option vlan '2'
       option vid '500' #added by me
       option pvid '500' #added by me
option ports '4 5'

config interface 'loopback'
.....

config interface 'lan'
...

config interface 'wan'
option proto 'pppoe'
#option ifname 'eth0.2'
       option ifname 'eth0.500' # tried eth0.2 too
       .... (other pppoe parameter)


restart network by running /etc/init.d/network restart ... check the log... still timeout for PADO packet
tried diff configuration ... still the same... and apparently xiaomi remove alot of common command like 'swconfig', 'modprobe' ...etc... where most online tutorial will ask you to swconfig dev ethXXX and modprobe the 8021q ..
btw, checked the dmesg ... 802.1Q VLAN blah is there ... but when i lsmod cannot find anything like that...does it matter?

hope any OpenWRT sifu can give some advice on this.
and other OpenWRT user (especially broadcom chip) can you post your /etc/config/network here?

thanks in advance.

This post has been edited by LickGuy: Sep 18 2014, 11:48 PM
TSLickGuy
post Sep 18 2014, 10:50 PM

Highly Flammable Material
******
Senior Member
1,520 posts

Joined: Jan 2003
From: Shuddup


isn't unifi required your wan port to be vlan tagged @ 500 in order to connect ?
TSLickGuy
post Sep 19 2014, 01:15 PM

Highly Flammable Material
******
Senior Member
1,520 posts

Joined: Jan 2003
From: Shuddup


thanks zzsub, finally some useful comment smile.gif

for other OpenWRT user, can you share your /etc/config/network file? thanks
TSLickGuy
post Sep 21 2014, 01:04 PM

Highly Flammable Material
******
Senior Member
1,520 posts

Joined: Jan 2003
From: Shuddup


blacktubi:
they don't have the vlan option in the Web UI
therefore I need to SSH and manual edit the /etc/config/network file see if can work the magic ....
TSLickGuy
post Sep 21 2014, 01:54 PM

Highly Flammable Material
******
Senior Member
1,520 posts

Joined: Jan 2003
From: Shuddup


here's the /etc/config/network (from 0.7.68 dev. firmware)
check line with start with ## for my failed attempts

CODE

config switch 'eth0'
option enable '1'

config switch_vlan 'eth0_1'
option device 'eth0'
option vlan '1'
option ports '0 2 5*'

config switch_vlan 'eth0_2'
option device 'eth0'
option vlan '2' # tried to change 2 to 500 & also swtich_vlan to 'eth0_500' ... doesn't work
       ## option vid '500'
       ## option pvid '500'
option ports '4 5' # need some sorta tagging or something here??

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 type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.31.1'
option netmask '255.255.255.0'

config interface 'wan'
option proto 'pppoe'
option ifname 'eth0.2'  # tried to change to eth0.500 as well, doesn't work
       option username 'blah@unifi'
       option password 'yadayada'
       option defaultroute 1
       option peerdns 1


can't connect to unifi at this moment

This post has been edited by LickGuy: Sep 21 2014, 02:30 PM
TSLickGuy
post Sep 25 2014, 01:05 PM

Highly Flammable Material
******
Senior Member
1,520 posts

Joined: Jan 2003
From: Shuddup


amirsubhi:
tried that.... didn't work
I'm suspecting the problem more than edit the /etc/config/network...
perhaps need to play with the nvram settings, or broadcom default only support 0-15 VLAN id ... may need to recompile the code or something
haih

TSLickGuy
post May 10 2015, 04:43 PM

Highly Flammable Material
******
Senior Member
1,520 posts

Joined: Jan 2003
From: Shuddup


hahah I bricked my router when flashing third party firmware ....
their official forum (in chinese) doesn't really helpful, if you bash their product some of the nasty moderator will delete your thread and/or ban u.
so far no response on the official forum, I'm checking on other router modding forum.... they suggest I use the TTL/jtag cable to connect or even remove the flash rom and flash it ...
i'm not a hardware person so temporary put that on-hold until I found someone who could jtag for me

may found a solution tho, I'm now running tomato firmware on another router, able to vlan tag WAN port and no problem connect to Unifi
if my router ever come back to life, I know where to get a modded tomoto firmware for xiaomi r1d, and should be able to connect to unifi

Sorry wasn't follow this topic for awhile ....

mghong:
thanks for the commands, but xiaomi router doesn't come with vconfig command .... should be default to broadcom chipset but their "customization" restrain DIY fun... darn it

This post has been edited by LickGuy: May 10 2015, 04:47 PM

 

Change to:
| Lo-Fi Version
0.0196sec    0.75    6 queries    GZIP Disabled
Time is now: 16th December 2025 - 11:18 AM