I have an ADSL modem (gateway) I received from my ISP which can be configured for VLAN trunking. Each port on that device can be configured for data, voice, tv or trunk. When port is configured as trunk, IPTV network is tagged with vlan id 2900, all other data (from public internet) is not tagged. I have TP-LINK 1043ND and i would like to connect it to trunk port on that modem, so IPTV and internet data could be transferred over the same cable.
I already tried that using a computer with Debian and it worked :
iface vlan2900 inet static address xxx.xxx.xxx.xxx netmask 255.255.255.0 vlan_raw_device eth1
How can i achieve the same with OpenWRT backfire 10.03? The following doesn't work:
config 'interface' 'wan' option 'ifname' 'eth0.2' option 'proto' 'static' option 'ipaddr' 'yyy.yyy.yyy.yyy' option 'netmask' '255.255.255.0' config 'interface' 'tvtrunk' option 'ifname' 'eth0.2900' option 'proto' 'static' option 'ipaddr' 'xxx.xxx.xxx.xxx' option 'netmask' '255.255.255.0' #public internet config 'switch_vlan' option 'device' 'rtl8366rb' option 'vlan' '2' option 'ports' '0 5t' #IPTV network config 'switch_vlan' option 'device' 'rtl8366rb' option 'vlan' '2900' option 'ports' '0t 5t'
eth0.2900 is created. Because IPTV network is on that VLAN, i should receive some IGMP messages on that interface, but nothing can be seen with tcpdump. Internet over eth0.2 works normally.
I have read on this forum that this might be because OpenWrt supports only 4 bits for VLAN id, is that true?