Posted: Thu Feb 10, 2011 8:24 Post subject: run time vlan config
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.
Posted: Fri Feb 11, 2011 15:16 Post subject: give up 5325E, and get 802.1q successed on 53115 switch chip
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
Posted: Fri Feb 11, 2011 15:47 Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch
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)
Posted: Fri Feb 11, 2011 16:41 Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch
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).
Posted: Fri Feb 11, 2011 17:15 Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch
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 _________________ Kernel panic: Aiee, killing interrupt handler!
Posted: Fri Feb 11, 2011 17:27 Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch
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
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)
Posted: Fri Feb 11, 2011 17:49 Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch
LOM wrote:
You can..
Your WRT54GL has a 5325 switch
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...
Posted: Sat Feb 12, 2011 4:08 Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch
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.
Posted: Sat Feb 12, 2011 4:13 Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch
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.
Posted: Mon Feb 21, 2011 5:04 Post subject: Re: give up 5325E, and get 802.1q successed on 53115 switch
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:
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)
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.
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: