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
ricstc
post Sep 18 2014, 10:39 PM

Saya Pun Nak Cari Makan
*******
Senior Member
2,272 posts

Joined: Apr 2010
From: Selangor
whats your 0bjective to use vlan tagging in the first place?

http://www.firewall.cx/networking-topics/v...an-tagging.html
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 ?
gahkin
post Sep 19 2014, 12:04 AM

Enthusiast
*****
Senior Member
735 posts

Joined: Jan 2003
From: Selayang , Kepong


Why not used back tm unifi router do as bridge mode then at mirouter dial by pppoe ?
zzub
post Sep 19 2014, 12:14 PM

Jalan-Jalan
*******
Senior Member
2,044 posts

Joined: Apr 2006
From: Mana?

QUOTE(LickGuy @ Sep 18 2014, 10:33 PM)
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
» Click to show Spoiler - click again to hide... «


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.
*
I think you really need to configure the 802.1Q to the interface and tag it as vlan 500. Im not sure how to do it in the openWRT

QUOTE(ricstc @ Sep 18 2014, 10:39 PM)
whats your 0bjective to use vlan tagging in the first place?

http://www.firewall.cx/networking-topics/v...an-tagging.html
*
its for unifi HSI, VoIP and IPTV service
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
blacktubi
post Sep 21 2014, 10:59 AM

-
Group Icon
Elite
8,416 posts

Joined: Jul 2008

Have you tried this?
http://klseet.com/index.php/rt-n13u-b1/rt-...-b1-unifi-setup

Maybe you need to do this on another router then get the /etc/config/network or wait someone to help you wink.gif
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 ....
WaCKy-Angel
post Sep 21 2014, 01:09 PM

PeACe~~
*********
All Stars
21,963 posts

Joined: Dec 2004
From: KL



if u able to do it pls export out the configuration file.. i might wanna get one too smile.gif
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
amirsubhi
post Sep 23 2014, 01:31 PM

The Power Is IN Your Hand!
******
Senior Member
1,472 posts

Joined: Apr 2005
From: SumwHeRe In MaLaYsIa



option port 0(Wan port) must be in vlan 500, have you tried that?
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

amirsubhi
post Sep 25 2014, 05:44 PM

The Power Is IN Your Hand!
******
Senior Member
1,472 posts

Joined: Apr 2005
From: SumwHeRe In MaLaYsIa



QUOTE(LickGuy @ Sep 25 2014, 01:05 PM)
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
*
try run ls -l /proc/switch/eth0/vlan/ if possible?

some of broadcom chipset only support 4 bit vlan which is 0-15
mghong
post Nov 5 2014, 11:38 PM

Casual
***
Junior Member
450 posts

Joined: Nov 2005


below is my network config.

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

vconfig add wan 621
vconfig add wan 822
ifconfig wan.621 up
ifconfig wan.822 up
ifconfig lan1 up
brctl addbr br-voip
brctl addif br-voip wan.822
brctl addif br-voip lan1
ifconfig br-voip up
exit 0


ed0gawa
post Nov 9 2014, 12:33 AM

coconut
*******
Senior Member
4,398 posts

Joined: Jan 2003




QUOTE(mghong @ Nov 5 2014, 11:38 PM)
below is my network config.

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

vconfig add wan 621
vconfig add wan 822
ifconfig wan.621 up
ifconfig wan.822 up
ifconfig lan1 up
brctl addbr br-voip
brctl addif br-voip wan.822
brctl addif br-voip lan1
ifconfig br-voip up
exit 0
*
So your xiaomi router is working perfectly with unifi?

Thanks for sharing
zher4883
post Nov 25 2014, 10:23 PM

Look at all my stars!!
*******
Senior Member
4,490 posts

Joined: Oct 2014


QUOTE(LickGuy @ Sep 18 2014, 10:33 PM)
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.
*
Wait what you need extra setup to use unifi? I thought just dial up pppoe?
wcypierre
post Nov 26 2014, 08:03 PM

Newbie Programmer
Group Icon
Elite
4,619 posts

Joined: Jul 2011
QUOTE(zher4883 @ Nov 25 2014, 10:23 PM)
Wait what you need extra setup to use unifi? I thought just dial up pppoe?
*
you need to setup vlan tagging of vlan id 500 for internet, and vlan 600 for hypptv.
zher4883
post Nov 26 2014, 08:07 PM

Look at all my stars!!
*******
Senior Member
4,490 posts

Joined: Oct 2014


QUOTE(wcypierre @ Nov 26 2014, 08:03 PM)
you need to setup vlan tagging of vlan id 500 for internet, and vlan 600 for hypptv.
*
I just did some research. Actually you can barely find any openwrt firmware or dd-wrt firmware. Good luck on that drool.gif
wcypierre
post Nov 26 2014, 08:10 PM

Newbie Programmer
Group Icon
Elite
4,619 posts

Joined: Jul 2011
QUOTE(zher4883 @ Nov 26 2014, 08:07 PM)
I just did some research. Actually you can barely find any openwrt firmware or dd-wrt firmware. Good luck on that drool.gif
*
you can refer to here for some suggestions(although it is a bit dated by now): http://klseet.com/index.php/replacement-option-summary
zher4883
post Nov 26 2014, 08:19 PM

Look at all my stars!!
*******
Senior Member
4,490 posts

Joined: Oct 2014


QUOTE(wcypierre @ Nov 26 2014, 08:10 PM)
you can refer to here for some suggestions(although it is a bit dated by now): http://klseet.com/index.php/replacement-option-summary
*
Hehe i only want xiaomi router. Im getting xiaomi router mini and flash pandorabox openwrt
abcstop
post Feb 6 2015, 02:08 PM

Getting Started
**
Junior Member
216 posts

Joined: Mar 2006
any luck?
critters
post Feb 7 2015, 10:15 PM

New Member
*
Junior Member
41 posts

Joined: Sep 2005


try refer here... http://thejimmahknows.com/multiple-access-...g-openwrtpart1/
goolias
post Feb 8 2015, 04:32 PM

Casual
***
Junior Member
321 posts

Joined: Jan 2003
to critters, your link doesn't help becos this router doesn't have the GUI for switch according to thread starter.

I think the first thing to do is to find the port no.
port 0, 1,2,3,4,5. Need to verify which port is CPU port, some switch is port 5, some is port 0, without this info it is not possible to get the tagged and untagged correctly.
Is this switch controller used in other openwrt compatible router, if yes try to find the corresponding port no first. From there only we can start testing on tagged and untagged port.
sabbir9985
post May 10 2015, 10:14 AM

On my way
****
Senior Member
515 posts

Joined: Sep 2012
So was there any successful configs yet ?
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
DE.si.MON
post Sep 30 2015, 09:57 AM

Enthusiast
*****
Senior Member
771 posts

Joined: Nov 2004
From: Kuala Lumpur


Have you try the latest Chaos Calmer. Seem to support Xiaomi Mini and brcm47xx chipset.

This post has been edited by DE.si.MON: Sep 30 2015, 02:30 PM
kit_kit
post Dec 21 2015, 11:04 AM

Casual
***
Junior Member
457 posts

Joined: Jan 2003
From: Melaka


any updates on who's config works ?


 

Change to:
| Lo-Fi Version
0.0231sec    0.83    5 queries    GZIP Disabled
Time is now: 14th December 2025 - 03:45 PM