Posted: Mon Dec 15, 2014 12:49 Post subject: WAN tagged and untagged traffic
Hi,
my Internet traffic consist from two traffic's:
one is untagged (default vlan) - internet;
second is tagged for vid 6 - IPTV.
Is it possible to configure dd-wrt, that he recognize untagged and tagged traffic? If it is possible, how to configure?
If I configure dd-wrt WAN as trunk port, IPTV is working but no internet, because wan is not getting IP address.
As you can see in my first post, port's 1,2,3 (on the back of router 4 port is logical 3, 3 - 2, 2 - 1) is on vlan6 and WAN port is tagged... So when I put my computer cable to 4 physical port, I get IP address of IPTV by DHCP from range 10.237.* and I can see TV program's but then there is no internet, because WAN port of router doesn't get IP address by DHCP.
I have tested config with programable switch (on the switch both vlan's (vlan2 and vlan6) where tagged). Everything worked, WAN port get IP address, computer connected to logical port 3(physical 4) get IP address.
So I guess, that traffic from ISP is separated to default untagged vlan and to tagged vlan6.
As I can understand for vlan6, in this config, WAN port is tagged (vlan6ports=4t 1 2 3 5) and for vlan2 is not tagged. So I think that default untagged traffic must go to vlan2 and tagged vlan6 to logical 1,2,3 port's.
But is not working as I suppose. And i cannot understand why.
so, you get internet through dhcp ?
looks like on dhcp client cant handle this on one interface ( vlan2 )
you may create a virtual interface like eth0.006 and use it for your iptv. then you can start a dhcp client on eth0.0006 and another deamon on vlan2.
you can create a
virtual interface with vconfig
normally, vlan6 needs only to be on wan port.
( in my case it runs this way ) _________________ RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
so, you get internet through dhcp ?
looks like on dhcp client cant handle this on one interface ( vlan2 )
you may create a virtual interface like eth0.006 and use it for your iptv. then you can start a dhcp client on eth0.0006 and another deamon on vlan2.
you can create a
virtual interface with vconfig
normally, vlan6 needs only to be on wan port.
( in my case it runs this way )
Yes, WAN gets IP address (internet) by DHCP. Computer, connected to IPTV port gets IP of IPTV network to by DHCP.
Now about virtual interface eth0.006. For me is not clear what for I need him? Because I don't need, that router interface must get IP address form IPTV network. I need, that physical ports 1,2,3 and WAN port must act like a switch for vlan6. WAN port is for separating incoming vlan6 tagged traffic and forwarding it to physical ports 1, 2, 3. When I connect i.e. computer to one of them (I mean physical ports 1,2,3), computer gets IP address of IPTV network and I can see TV channels.
For example I connected internet cable straight to computer I get IP address of Internet. Settings on my computer network card for vlan is 0. If I change network card for vlan settings to 6, I get IP address from IPTV network. Maybe now it's clearer what I want to achieve?
i thought, dd-wrt makes the connection for you and you use NAT for internet connectivity like most users ? this should count for iptv , too. would not be very efficiency to give all three computers an extra ip-address. what provider do you use?
if you want it this way, in above config you should set
i thought, dd-wrt makes the connection for you and you use NAT for internet connectivity like most users ? this should count for iptv , too. would not be very efficiency to give all three computers an extra ip-address. what provider do you use?
if you want it this way, in above config you should set
vlan0ports to 012345
For internet - yes, i need NAT. But for IPTV no. In my previous post I have explained how device, that was given by my ISP, is working. I use Lithuanian TEO. "...would not be very efficiency to give all three computers an extra ip-address..." IP address from IPTV network is from private IP address range 10.237.*.* 255.255.0.0, so I don't think that is not efficient....
Hmmm... I will try your suggestion, only don't understand point of this, for now
ok, forget my last advice, i thought you want to dialup from your computers because of this
"For example I connected internet cable straight to computer I get IP address of Internet."
lets short the story:
router should get WAN ip adress by dhcp.
and on 3 router ports connected computers should get an iptv-address through dhcp with vlan id 6
and if yopu remove vlan 6 tag from wan interface you can get an internet address ? _________________ RT-N66U @ Build 25697M K3.10.63
TL-WR842ND v1 @ BS-build 23919 WDS AP
TL-WR841ND @ BS-build 23919 WDS Client
TL-WR841ND @ BS-build 23919 Client Bridge ( Routed )
ok, forget my last advice, i thought you want to dialup from your computers because of this
"For example I connected internet cable straight to computer I get IP address of Internet."
lets short the story:
BasCom wrote:
router should get WAN ip adress by dhcp.
and on 3 router ports connected computers should get an iptv-address through dhcp with vlan id 6
Yes.
BasCom wrote:
and if yopu remove vlan 6 tag from wan interface you can get an internet address ?
No.
does not matter what I change in my configuration (I'm talking about config, that is in my first post), i can't get an internet address on WAN interface. I'm only getting IPTV address or internet address on computers connected to 3 router ports.
Then from simple switch I connect one cable to WAN, second to logical port3. Then computers connected to logical port's 1 and 2 can get IP address of IPTV network and WAN can get internet IP... But this is workaround... I want to do it correct, with one device...
however, with this special peace of hardware i guess i am not able to help you. i saw your problem elsewhere in your first post
looks like dd-wrt cant talk with your special hardware, somehow. you could try another dd-wrt router.
I have 610nv2 router with dd-wrt - same thing. I think, this is dd-wrt software problem, because it cannot work with untagged and tagged traffic on the same port...
And what you mean saying "special hardware"? What is "special hardware"?