802.1q vlan range on E3000 - VIDs beyond 15 possible?

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5 ... 9, 10, 11  Next
Author Message
cron2
DD-WRT Novice


Joined: 05 Dec 2010
Posts: 29

PostPosted: Wed Feb 09, 2011 18:09    Post subject: Reply with quote
fggs wrote:
Something is definitely not right, sizes are too different


It's zipped. Contained switch-robo.ko is:


Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
11935 Defl:N 5046 58% 02-09-2011 17:53 38eca56d switch-robo.ko
-------- ------- --- -------
Sponsor
tangsoft
DD-WRT User


Joined: 18 Sep 2010
Posts: 60

PostPosted: Thu Feb 10, 2011 8:24    Post subject: run time vlan config Reply with quote
cron2 wrote:
fggs wrote:
Something is definitely not right, sizes are too different


It's zipped. Contained switch-robo.ko is:


Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
11935 Defl:N 5046 58% 02-09-2011 17:53 38eca56d switch-robo.ko
-------- ------- --- -------


no luck with your modified module switch-robo.ko.
due to my little experiences in C and driver programming, really have no idea why in runtime vlan configuration only last inputted [echo "xt 5" >/proc/switch/vlan/<num>/ports] works in my case with BCM5325E switch chip(wrt160nv3).
so i still cannot get several vlans tagged simutaneously over 1 trunk port.
tangsoft
DD-WRT User


Joined: 18 Sep 2010
Posts: 60

PostPosted: Fri Feb 11, 2011 15:16    Post subject: give up 5325E, and get 802.1q successed on 53115 switch chip Reply with quote
got a new E3000, and now with modified module: switch_robo, and now I can get internet access(native,no 802.1q tag) and IPTV streaming(VOD on vlan 85, Multicast on vlan 51, both 802.1q tagged) together and simultaneously over single WAN port.
as gert said, it looks a little mess in the /proc/switch/eth0/vlan folder. But it does work!!!
Thanks every guru and gert.

Buy the way, in this case, ebtables does play an important role too.


Last edited by tangsoft on Tue Apr 02, 2013 8:02; edited 1 time in total
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Fri Feb 11, 2011 15:47    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
tangsoft wrote:
got a new E3000, and now with modified module: switch_robo, and now I can get internet access(native,no 802.1q tag) and IPTV streaming(VOD on vlan 85, Multicase on vlan 51, both 802.1q tagged) together and simultaneously over single WAN port.
as gert said, it looks a little mess in the /proc/switch/eth0/vlan folder. But it does work!!!
Thanks every guru and gert.

Buy the way, in this case, ebtables does play an important role too.

How did you configure it to get the native VLAN and tagging working on the same port?

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
cron2
DD-WRT Novice


Joined: 05 Dec 2010
Posts: 29

PostPosted: Fri Feb 11, 2011 16:41    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
Hi,

tangsoft wrote:
got a new E3000, and now with modified module: switch_robo, and now I can get internet access(native,no 802.1q tag) and IPTV streaming(VOD on vlan 85, Multicase on vlan 51, both 802.1q tagged) together and simultaneously over single WAN port.


Cool, glad to hear that it works for you.

So it seems my patch works for 53115 but not for 5325 - can't really play with it as I don't have WRT with this particular switch around (only WRT54GL and E3000 available right now).

gert
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Fri Feb 11, 2011 17:15    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
cron2 wrote:


So it seems my patch works for 53115 but not for 5325 - can't really play with it as I don't have WRT with this particular switch around (only WRT54GL and E3000 available right now).

gert


You can..
Your WRT54GL has a 5325 switch Very Happy

_________________
Kernel panic: Aiee, killing interrupt handler!
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Fri Feb 11, 2011 17:27    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
LOM wrote:
cron2 wrote:


So it seems my patch works for 53115 but not for 5325 - can't really play with it as I don't have WRT with this particular switch around (only WRT54GL and E3000 available right now).

gert


You can..
Your WRT54GL has a 5325 switch Very Happy

Isn't the switch integrated into BCM5352 its own unique switch or is it really a BCM5325?

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Fri Feb 11, 2011 17:35    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
phuzi0n wrote:

Isn't the switch integrated into BCM5352 its own unique switch or is it really a BCM5325?


It's a 5325

_________________
Kernel panic: Aiee, killing interrupt handler!
cron2
DD-WRT Novice


Joined: 05 Dec 2010
Posts: 29

PostPosted: Fri Feb 11, 2011 17:49    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
LOM wrote:

You can..
Your WRT54GL has a 5325 switch Very Happy


Oh, fun coincidence - the last 54GL I had at home has been loaned to a customer just yesterday (as VPN router until they get their "real firewall that looks like one!" into place). But I have a few more sitting at some other customer that I can play with next week...

gert
tangsoft
DD-WRT User


Joined: 18 Sep 2010
Posts: 60

PostPosted: Sat Feb 12, 2011 4:08    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
phuzi0n wrote:
tangsoft wrote:
got a new E3000, and now with modified module: switch_robo, and now I can get internet access(native,no 802.1q tag) and IPTV streaming(VOD on vlan 85, Multicase on vlan 51, both 802.1q tagged) together and simultaneously over single WAN port.
as gert said, it looks a little mess in the /proc/switch/eth0/vlan folder. But it does work!!!
Thanks every guru and gert.

Buy the way, in this case, ebtables does play an important role too.

How did you configure it to get the native VLAN and tagging working on the same port?



well, actually I have not figure out how it works in details, mostly i just follow what gert and your guru said.

1. remove the original switch_robo module, insmod the modified one: mine(vlan id 128 max) or gert's(vlan id 1200 max,not tested,should works)
2.then the echo tricks,here is mine:(i put it in a rc_start file on jffs, )
/sbin/rmmod switch-robo
/sbin/insmod /jffs/myiptv/switch-robo.ko
sleep 5
/bin/echo "0t 3 8" >/proc/switch/eth0/vlan/85/ports
/bin/echo "0t 8" >/proc/switch/eth0/vlan/51/ports
/bin/echo "0* 8" >/proc/switch/eth0/vlan/2/ports
/sbin/vconfig add eth0 85
/sbin/ifconfig vlan85 up
/sbin/vconfig add eth0 51
/sbin/ifconfig vlan51 up

3.I do configure nvram parameter to comply with this, but look like not that much matters

4.when it boots up, the pppoe get it internet ip without problem(i am pretty sure it is no 802.1q),and i can also see vlan85/51 packets by using: tcpdump -vvv -XX -n -e -i eth0 vlan85 or vlan51.

5. then i use brctl to put vlan 85/51 into br0, and use ebtables to isolate some igmp and other traffic, it does work!

6. but not stable though, i would like to figure it out and polish it with all the guru's help here.

thanks again!
tangsoft
DD-WRT User


Joined: 18 Sep 2010
Posts: 60

PostPosted: Sat Feb 12, 2011 4:13    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
cron2 wrote:
Hi,

tangsoft wrote:
got a new E3000, and now with modified module: switch_robo, and now I can get internet access(native,no 802.1q tag) and IPTV streaming(VOD on vlan 85, Multicase on vlan 51, both 802.1q tagged) together and simultaneously over single WAN port.


Cool, glad to hear that it works for you.

So it seems my patch works for 53115 but not for 5325 - can't really play with it as I don't have WRT with this particular switch around (only WRT54GL and E3000 available right now).

gert


thanks,gert.
i just found i can NOT get 5G radio working in my brand new E3000 with the latest firmare(dd-wrt.v24-15962_NEWD-2_K2.6_big-e2k-e3k.bin). wl1 TX also with errors and no OKs, and i can NOT see 5G ssid in my HTPC with N wifi adapter(mini pci,i believe it is Atheros AR928K).
Which version of fm do you put on yours?

notes: pls ignore it, this wifi chip may not work on 5Ghz radio.
Sleipnir
DD-WRT Novice


Joined: 20 Feb 2011
Posts: 8

PostPosted: Mon Feb 21, 2011 5:04    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
Please help me!
And forgive me for my English. It's not my native language.
I have a Netgear 3500L (BCM 53115). Firmware dd-wrt.v24-14929_NEWD-2_K2.6_big.bin (http://www.dd-wrt.com/wiki/index.php/Netgear_WNR3500L)
ISP provides internet access in vlan1, iptv - vlan19.
When I apply commands, I getting this:
Code:
root @ DD-WRT: / # echo "3 2 1 0 8 * "> / proc/switch/eth0/vlan/1/ports
-sh: can't create / proc/switch/eth0/vlan/1/ports: nonexistent directory

In the "/proc" missing directory "/switch/......"
mkdir-p dosn't work ...
Code:
root @ DD-WRT: / proc # mkdir-p switch
root @ DD-WRT: / proc # cd switch
-sh: cd: can't cd to switch


I'm not Linux user ((((
What should I do? Why I can not execute commands [echo]?
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Mon Feb 21, 2011 5:25    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
Sleipnir wrote:
Code:
root @ DD-WRT: / # echo "3 2 1 0 8 * "> / proc/switch/eth0/vlan/1/ports
-sh: can't create / proc/switch/eth0/vlan/1/ports: nonexistent directory

You have a space between / and proc that you need to remove.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Sleipnir
DD-WRT Novice


Joined: 20 Feb 2011
Posts: 8

PostPosted: Mon Feb 21, 2011 11:19    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
phuzi0n wrote:
Sleipnir wrote:
Code:
root @ DD-WRT: / # echo "3 2 1 0 8 * "> / proc/switch/eth0/vlan/1/ports
-sh: can't create / proc/switch/eth0/vlan/1/ports: nonexistent directory

You have a space between / and proc that you need to remove.


I have no spaces in code. It's all http://translate.google.com. He added spaces between / and proc. And I do not chek my post after that. Sorry.
I rechecked my source code ... It's all right.
But I can not create in "/proc" directory "switch".
As seen in my example, the mkdir command is applied without errors. But the directory is not created.
Write permissions in /proc available.
P.S. My firmware has no such diretorii initially.
Sleipnir
DD-WRT Novice


Joined: 20 Feb 2011
Posts: 8

PostPosted: Mon Feb 21, 2011 18:57    Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch Reply with quote
phuzi0n wrote:
Sleipnir wrote:
Code:
root @ DD-WRT: / # echo "3 2 1 0 8 * "> / proc/switch/eth0/vlan/1/ports
-sh: can't create / proc/switch/eth0/vlan/1/ports: nonexistent directory

You have a space between / and proc that you need to remove.


Should be in my file system directory /proc/switch...? Or it appears after certain procedures? As I understood, after insmod switch-robo.ko, right? Because now I have no such directory.
Router: Netgear 3500L,
FW: dd-wrt.v24-14929_NEWD-2_K2.6_big.bin

Аfter insmod /tmp/switch-robo.ko in lsmod I see only this:
Code:
root@DD-WRT:~# lsmod
Module                  Size  Used by
etherip                 8192  0
nf_nat_pptp             4096  0
nf_conntrack_pptp       4096  1 nf_nat_pptp
nf_nat_proto_gre        4096  1 nf_nat_pptp
nf_conntrack_proto_gre     4096  1 nf_conntrack_pptp
bcm57xx               110592  0
msdos                   8192  0
vfat                   12288  1
fat                    45056  2 msdos,vfat
nls_utf8                4096  0
nls_iso8859_2           4096  0
nls_iso8859_1           4096  1
nls_cp437               8192  1
nls_base                8192  6 vfat,fat,nls_utf8,nls_iso8859_2,nls_iso8859_1,nls_cp437
usb_storage            32768  1
sd_mod                 20480  2
scsi_wait_scan           416  0
scsi_mod               73728  3 usb_storage,sd_mod,scsi_wait_scan
ohci_hcd               16384  0
uhci_hcd               20480  0
ehci_hcd               32768  0
usbcore               106496  5 usb_storage,ohci_hcd,uhci_hcd,ehci_hcd

Is it all right?
Sorry... As I said, I'm not good in Linux Sad
Goto page Previous  1, 2, 3, 4, 5 ... 9, 10, 11  Next Display posts from previous:    Page 4 of 11
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware 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 can attach files in this forum
You can download files in this forum