Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

Unifi Recruiting: Unifi betatesters for OpenWrt, Recruit closed

views
     
tch9
post Jan 29 2011, 10:16 PM

New Member
*
Junior Member
17 posts

Joined: Dec 2005
DIR-825 revision b1 confirm working with unifi & iptv. I'm using OpenWRT bleeding edge 25223.

my /etc/config/network as follows:-

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

config 'interface' 'wan'
option 'ifname' 'eth1.500'
option 'proto' 'pppoe'
option 'username' 'xxx'
option 'password' 'xxx'

config 'switch'
option 'name' 'rtl8366s'
option 'reset' '1'
option 'enable_vlan' '1'
option 'enable_vlan4k' '1'

config 'switch_vlan'
option 'device' 'rtl8366s'
option 'vlan' '500'
option 'ports' '1 2 3 5t'

config 'switch_vlan'
option 'ports' '0 5t'
option 'vlan' '600'

config 'interface' 'iptv'
option 'proto' 'none'
option 'type' 'bridge'
option 'defaultroute' '0'
option 'peerdns' '0'
option 'ifname' 'eth0.600 eth1.600'

Screenshot of the switch page from Luci web interface.
user posted image

This post has been edited by tch9: Jan 30 2011, 04:48 PM
wiraone
post May 9 2011, 02:39 PM

Who cares about all the stars?
*******
Senior Member
3,892 posts

Joined: Jan 2003
From: Back on earth!
Great stuff .. was looking a way to remove a switch in between my wzr-hp-g300nh .. it seems to be working for me, at least for internet .. don't care about IPTV for the moment..

BTW, may I know where to look for this latest openwrt with updated luci? I tried trunk before and luci wasn't installed by default..

This post has been edited by wiraone: May 9 2011, 02:40 PM
warlove3
post Nov 14 2011, 01:21 AM

On my way
****
Senior Member
537 posts

Joined: Nov 2006


hmm i cant seem to tag well in TP-Link WR741ND v1.8 with the latest Backfire 10.03.1-rc6
The problem i encounter is that whenever i enable the vlan tag, LAN Port became WAN port and WAN Port became LAN Port, =.=" which 4 Lan port are the one is connecting the BTU instead of the WAN Port...

any sifu can post a guide to help me? I'm on UniFi Biz and only needed VLAN 500

TSblindbox
post Nov 14 2011, 08:48 AM

Meh
******
Senior Member
1,705 posts

Joined: Nov 2004


wiraone, try 10.03.1-rc6.

To above poster, show me what's in /etc/config/network.

This post has been edited by blindbox: Nov 14 2011, 08:49 AM
warlove3
post Nov 14 2011, 12:22 PM

On my way
****
Senior Member
537 posts

Joined: Nov 2006


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 wan
option ifname eth1
option proto dhcp

config switch eth0
option enable_vlan 1

config switch_vlan
option device eth0
option vlan 1
option ports "0 1 2 3 4"

So any thing i need to change? i tried changing the switch option to eth 1 but they only gave me VLAN option from 1 - 15 which i unable to set VLAN 500...

This post has been edited by warlove3: Nov 14 2011, 12:23 PM
WhitE LighteR
post May 21 2014, 01:08 PM

WhitE LighteR Is Black~
********
All Stars
10,340 posts

Joined: Jan 2003


Just to share. I just flash OpenWRT on my DIR 825 to work with unifi. I know tch9 posted his setting but when I tried his setting it didnt work for me. So here is the setting I am using currently. Everything works except I can't get IPTV to work via wifi. I believe it requires other config. But the IPTV does work via LAN port. Here i set to lan port 4.

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 proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option _orig_ifname 'eth0.1 radio0.network1 radio1.network1'
option _orig_bridge 'true'
option ifname 'eth0.500'

config interface 'wan'
option _orig_ifname 'eth1'
option _orig_bridge 'false'
option proto 'pppoe'
option username 'xxx'
option peerdns '0'
option dns '8.8.8.8 8.8.4.4'
option ifname 'eth1.500'
option password 'xxx'

config switch
option name 'rtl8366s'
option reset '1'
option enable_vlan '1'
option enable_vlan4k '1'

config switch_vlan
option device 'rtl8366s'
option vlan '500'
option ports '1 2 3 4t 5t'

config switch_vlan
option device 'rtl8366s'
option vlan '600'
option ports '0 4t 5t'

config interface 'iptv'
option proto 'none'
option type 'bridge'
option defaultroute '0'
option peerdns '0'
option ifname 'eth0.600 eth1.600'

This post has been edited by WhitE LighteR: May 28 2014, 06:12 PM

 

Change to:
| Lo-Fi Version
0.0162sec    0.45    5 queries    GZIP Disabled
Time is now: 8th December 2025 - 06:41 PM