WAN tagged and untagged traffic

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


Joined: 07 Dec 2014
Posts: 17

PostPosted: Mon Dec 22, 2014 10:48    Post subject: Reply with quote
Who has ideas?
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6872
Location: Romerike, Norway

PostPosted: Mon Dec 22, 2014 19:50    Post subject: Reply with quote
Have you tried to create tag on the Setup->Networking->VLAN Tagging instead of using the "t" option on the vlan6port?

vlan_tags=vlan6>6>0
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Tue Dec 23, 2014 12:58    Post subject: Reply with quote
you tell you put a switch between and it works. so you still have the tagged / untagged thing. or do you let do the switch the tagging thing?

i have vlan7 tag and vlan8 tag same time on wan port.
you can use both dd-wrt routers. so one will do the iptv thing and the second does the internet traffic. i am doing this like the same 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: Tue Dec 23, 2014 18:32    Post subject: Reply with quote
Per Yngve Berg wrote:
Have you tried to create tag on the Setup->Networking->VLAN Tagging instead of using the "t" option on the vlan6port?

vlan_tags=vlan6>6>0


Thanks for answer.

Yes, I have. But with GUI for me overall nothing's work's. I'm attaching default config ss of vlans tab and networking tab.
Dratass
DD-WRT Novice


Joined: 07 Dec 2014
Posts: 17

PostPosted: Tue Dec 23, 2014 18:45    Post subject: Reply with quote
BasCom wrote:
you tell you put a switch between and it works. so you still have the tagged / untagged thing. or do you let do the switch the tagging thing?


Yes, it works, because ISP cable goes to the switch, from the switch one cable goes to WAN and second to tagged vlan 6 port 3. Port 3 act like a tagged dd-wrt switch port. Then i can connect to port 1 or port 2 IPTV box for TV or computer and watch channels...

Putting switch between ISP and DD-WRT is only workaround... I want to do right.

I hope, you understand me Smile

BasCom wrote:

i have vlan7 tag and vlan8 tag same time on wan port.
you can use both dd-wrt routers. so one will do the iptv thing and the second does the internet traffic. i am doing this like the same way.


As I said, I want to do it right...

From that, what I have tried, if I make WAN port tagged - WAN port cannot get internet IP address... As I understand dd-wrt cannot work as tagged port with untagged traffic...
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Tue Dec 23, 2014 21:38    Post subject: Reply with quote
so, if you have a solution, and dd-wrt cant handle what you want, what will be left? : live with the solution.

you can check your vlan config with

cat /proc/switch/eth0/vlan/2/ports

in telnet
you may also add * to the 5 in vlan2. that means: default vlan for untagged packets. but that means no untagged traffic will go through your default (main) vlan. making your network beeing alive you need to use tags for all clients.

_________________
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: Wed Dec 24, 2014 14:46    Post subject: Reply with quote
BasCom wrote:
so, if you have a solution, and dd-wrt cant handle what you want, what will be left? : live with the solution.


maybe... Smile

BasCom wrote:

you can check your vlan config with

cat /proc/switch/eth0/vlan/2/ports

in telnet


In E900 router there is no such directory /proc/switch ...
Code:

root@DD-WRT:~# cat /proc/s
self/     slabinfo  stat      swaps     sys/      sysvipc/


BasCom wrote:

you may also add * to the 5 in vlan2. that means: default vlan for untagged packets. but that means no untagged traffic will go through your default (main) vlan. making your network beeing alive you need to use tags for all clients.


I will try your suggestion
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Wed Dec 24, 2014 15:05    Post subject: Reply with quote
crap. latest dd-wrt release ?

try with your second dd-wrt router.
maybe your managed switch can do port mirroring? so you can connect a pc to that mirrored port and do some sniffing with wireshark. you can watch the vlanid´s in ethernet frames. then you´re not longer guessing

_________________
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: Thu Dec 25, 2014 21:48    Post subject: Reply with quote
BasCom wrote:
crap. latest dd-wrt release ?

try with your second dd-wrt router.
maybe your managed switch can do port mirroring? so you can connect a pc to that mirrored port and do some sniffing with wireshark. you can watch the vlanid´s in ethernet frames. then you´re not longer guessing


yes, lastest...

I will try both your suggestions...

I'm think, I'm not guessing, because if I tag traffic on my managed switch for vlan2 and vlan6, router WAN port get's IP address of tagged vlan2 traffic and computers on ports 1, 2 and 3 get's IP adresses from vlan6 tagged traffic. So as I said - dd-wrt cannot work with untagged traffic... Or I missing something... I don't know...

And on my second router (610nv2) there is cat /proc/switch/eth0/vlan/2/ports, but empty. Somewhere I have read, that on gigabit routers, these files are empty or showing as empty...
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Thu Dec 25, 2014 23:26    Post subject: Reply with quote
Quote:

because if I tag traffic on my managed switch for vlan2 and vlan6, router WAN port get's IP address of tagged vlan2 traffic


so, your internet traffic is tagged , too ? you told, it is not

confused.

/proc/switch/eth0/vlan/2/ports in wrt610 should contain the wan port and cpu (guess 0 and 8 )

and there you can recheck for nvram vlan config normally

your case vlan6 dir should contain 4t 1t 2t 3t 5 like it is set in nvram

_________________
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: Fri Dec 26, 2014 8:18    Post subject: Reply with quote
BasCom wrote:
Quote:

because if I tag traffic on my managed switch for vlan2 and vlan6, router WAN port get's IP address of tagged vlan2 traffic


so, your internet traffic is tagged , too ? you told, it is not

confused.


No, my internet traffic is not tagged. I have managed switch for testing purposes. And I test router functionality with that switch. I can't leave my family without internet and IPTV in time when I'm testing Smile

And as I said, when testing with managed switch if I tag vlan2 traffic, then WAN port get's IP address, if I leave it untagged, then WAN doesn't get IP....

BasCom wrote:

/proc/switch/eth0/vlan/2/ports in wrt610 should contain the wan port and cpu (guess 0 and 8 )
and there you can recheck for nvram vlan config normally

your case vlan6 dir should contain 4t 1t 2t 3t 5 like it is set in nvram


As I said in my last post, I have read somewhere, that on gigabit routers(as my 610nv2), these files(i.e. /proc/switch/eth0/vlan/2/ports) are empty or showing as empty...
BasCom
DD-WRT Guru


Joined: 29 Jul 2009
Posts: 1378
Location: Germany

PostPosted: Wed Dec 31, 2014 17:09    Post subject: Reply with quote
Quote:
And as I said, when testing with managed switch if I tag vlan2 traffic, then WAN port get's IP address, if I leave it untagged, then WAN doesn't get IP....


i do not understand at all.

obviously you need vlan2 to be tagged for ISP internet WAN address, but you wrote it need to be untagged ?

_________________
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 )
Goto page Previous  1, 2 Display posts from previous:    Page 2 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