WAN tagged and untagged traffic

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Mon Dec 15, 2014 12:49    Post subject: WAN tagged and untagged traffic Reply with quote
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.

Any idea's will be appreciated. Thanks.

I tried config:

vlan6ports=4t 1 2 3 5
vlan2ports=4t 5
vlan0ports=5
vlan1ports=0 5*

port5vlans=1 2 6 16
port3vlans=6
port1vlans=6
port4vlans=1
port2vlans=6
port0vlans=2

vlan6hwname=et0
vlan2hwname=et0
vlan1hwname=et0
vlan0hwname=et0
Sponsor
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Wed Dec 17, 2014 7:18    Post subject: Reply with quote
up
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Fri Dec 19, 2014 8:47    Post subject: Reply with quote
No one? up.
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Fri Dec 19, 2014 12:16    Post subject: Reply with quote
vlan2 is your wan iface?

what router model ?
you config looks strange.
how did you get your iptv ip address?

pppoe or dhcp ?

_________________
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 )
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Sat Dec 20, 2014 17:40    Post subject: Reply with quote
BasCom wrote:
vlan2 is your wan iface?

what router model ?
you config looks strange.
how did you get your iptv ip address?

pppoe or dhcp ?


Thanks for answer.

Yes, Vlan2 is WAN.

Model: Linksys E900, DD-WRT v24-sp2 (11/11/14) mega - build 25309

I know, because port numbering is totally messed in default config...

WAN port number in "nvram show | grep vlan.*port" is 4
and "nvram show | grep port.*vlan" - 0

And so on, you can see below

Default configuration of router after 30*30*30:

root@E900:~# nvram show | grep vlan.*port
vlan2ports=4 5
vlan0ports=1 2 3 4 5*
vlan1ports=0 1 2 3 5*
root@E900:~# nvram show | grep port.*vlan
port5vlans=0 1 16
port3vlans=0
port1vlans=0
port4vlans=0
port2vlans=0
port0vlans=1
root@E900:~# nvram show | grep vlan.*hwname
vlan2hwname=et0
vlan1hwname=et0
vlan0hwname=et0

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.

I have tried:
root@E900:~# nvram show | grep vlan.*port | sort
vlan6ports=4t 1 2 3 5
vlan2ports=4 5
vlan0ports=5
vlan1ports=0 5*
root@E900:~# nvram show | grep port.*vlan | sort
port5vlans=1 2 6 16
port3vlans=6
port1vlans=6
port4vlans=1
port2vlans=6
port0vlans=2
root@E900:~# nvram show | grep vlan.*hwname | sort
vlan6hwname=et0
vlan2hwname=et0
vlan1hwname=et0
vlan0hwname=et0
root@E900:~#

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.
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Sat Dec 20, 2014 19:20    Post subject: Reply with quote
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 )
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Sat Dec 20, 2014 20:38    Post subject: Reply with quote
BasCom wrote:
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? Smile
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Sat Dec 20, 2014 21:50    Post subject: Reply with quote
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

_________________
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 )
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Sat Dec 20, 2014 22:20    Post subject: Reply with quote
BasCom wrote:
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 Smile
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Sat Dec 20, 2014 22:40    Post subject: Reply with quote
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 )
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Sat Dec 20, 2014 23:00    Post subject: Reply with quote
BasCom wrote:
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.

I hope you understand me. Smile
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Sun Dec 21, 2014 0:40    Post subject: Reply with quote
maybe dd-wrt cant talk to the modem the right way.
sure your wan device is really vlan2 ?

for most 100 mbit broadcom ethernet router its vlan1 and vlan2 on gigabit devices. thats why i talked about strange configs.

_________________
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 )
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Sun Dec 21, 2014 18:13    Post subject: Reply with quote
BasCom wrote:
maybe dd-wrt cant talk to the modem the right way.
sure your wan device is really vlan2 ?




I don't have modem, i have ftth to lan converter.
How can I be sure? I see from config:

root@DD-WRT:~# nvram show | grep wan
wan_hwname=
wan_netmask=255.255.255.0
wan_ifname2=vlan2
block_wan=1
pppoe_wan_ifname=vlan2
wan_proto=dhcp
wanup=1
wan_hwaddr=68:7F:74:*:*:*
clone_wan_mac=0
wan_default=vlan2
wan_ifnames=vlan2
dr_wan_tx=0
wan_primary=1
wandevs=et0
dhcp_domain=wan
wan_iface=vlan2
wan_ipaddr=86.100.*.*
wan_wins=0.0.0.0
wan_mtu=1500
pptp_wan_gateway=0.0.0.0
sshd_wanport=22
wan_get_domain=
wan_ifname=vlan2
wan_hostname=
ddns_wan_ip=1
wan_dualaccess=0

BasCom wrote:

for most 100 mbit broadcom ethernet router its vlan1 and vlan2 on gigabit devices. thats why i talked about strange configs.


What can I say, you saw my default config. I agree that he is strange. And below is default wan settings.

I don't know what to do more, to get it working...

One more thing, if I put simple switch before router (I mean ISP->switch->DD-WRT) I can get router to work with this config:

vlan6ports=1 2 3t 5
vlan2ports=4 5
vlan0ports=5
vlan1ports=0 5*

port5vlans=1 2 6 16
port3vlans=6
port1vlans=6
port4vlans=1
port2vlans=6
port0vlans=2

vlan6hwname=et0
vlan2hwname=et0
vlan1hwname=et0
vlan0hwname=et0

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...
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Sun Dec 21, 2014 18:29    Post subject: Reply with quote
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 Razz

looks like dd-wrt cant talk with your special hardware, somehow. you could try another dd-wrt router.

_________________
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 )
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Sun Dec 21, 2014 19:07    Post subject: Reply with quote
BasCom wrote:
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 Razz

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"?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum