Posted: Wed May 25, 2011 11:14 Post subject: wrt320n vlan for fiber ( pppoe).( unsolved)
well lets start with what i want:
yesterday i received my fiber optic connection and i heard it was possible to use the linksys wrt320n to deal with the connection by using vlans.
however, i cannot get it working.
situation as it should be configured:
VLAN Ports
0 3 4
4 W 1
6 W
7 W 2
Tagged W 2
result:
Genaxis "Fiber to Ethernet" ---> Linksys WRT WAN port
STB ---> Linksys WRT port 1
Thomson router ---> Linksys WRT port 2 ( for telephone)
Computers or switches/hubs ---> Linksys WRT port 3 / 4
and in this case under networking i should set the wlan port to vlan6.
if i configure this nothing seems to work.
what i understand is that vlan usage via the webinterface doesn't always go correct. So therefor i would like to configure this through nvram commando.
Can someone help me out with the exact commands? as i have a to less understanding of the nvram usage, and with the help of google i still can't find out how i should configure this.
edit:
the problem i seem to face is that wan will only travel over vlan2 , it must go over vlan 6.
Last edited by pjottrr on Mon May 30, 2011 13:34; edited 2 times in total
Use build 15508 or higher and the GUI should work. You'll probably need to move the WAN port to VLAN 6 and then check the tagged box for the WAN 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)
nvram set vlan0ports="3 4 8*"
nvram set vlan4ports="0 1 8"
nvram set vlan6ports="0 8"
nvram set vlan7ports="0 2 8"
nvram set port5vlans="0 4 6 7 16"
nvram set vlan0hwname=et0
nvram set vlan4hwname=et0
nvram set vlan6hwname=et0
nvram set vlan7hwname=et0
nvram set wan_hwaddr=08:76:FF:06:30:78
nvram commit
but no result as well
Last edited by pjottrr on Mon May 30, 2011 13:39; edited 3 times in total
Just to clarify some details about the connection, I have the same fiber connection pjottrr has and am routing all the stuff successfully using an Ubuntu box.
We have one incomming line which is translated from Fiber to Ethernet, one single Ethernet cable. On this single incomming line we have three 802.1q VLAN's active we have to use:
- Vlan 4: IPTV
- Vlan 6: Internet
- Vlan 7: VoIP
The IPTV (Vlan 4) needs to be bridged directly to a physical ethernet port which connects directly to the digital TV receiver.
The Internet (Vlan 6) requires PPPoE configuration to work and the regular routing can then be applied to the PPPoE generated "interface" ppp0 (At least using Ubuntu ppp0 is generated, I do not know how DD-WRT does this).
The VoIP (Vlan 7) also needs to be bridged to a physical port which is connected to an ISP supplied VoIP-ATA device (This can be avoided by using Asterisk on the router to connect to the VoIP provider over Vlan6).
I've been searching a lot on this topic as well to help pjottrr out but I can't seem to find any confirmation if DD-WRT is even willing to work with multiple 802.1q VLAN's on a single WAN interface. All configuration samples and hits I can find all asume only 1 VLAN is active.
[edit]
For people searching on this subject: It is concerning a triple-play TweakFiber connection provided using the KPN Fiber network in the Netherlands.
You can have the router tag all of the VLAN's on the WAN port. After you enable tagging on it then check every VLAN you want to be carried over the trunk. For VLAN 4 and 6 you will need to move LAN ports into those VLAN's so that you IPTV and VoIP devices are switched directly to the ISP. eg. Tag VLAN 4, 6, and 7 on the WAN, move LAN port 1 to VLAN 4 for IPTV, and move LAN port 2 to VLAN 7 for VoIP. _________________ 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)
regarding the pppoe only running on vlan2... I've been searching through all the nvram options (nvram show | less) on pjottrr's DD-WRT device and found the following variables and values stored in the NVRAM:
"pppoe_wan_ifname=vlan2"
"pppoe_ifname=vlan2"
I did nvram set pppoe_wan_ifname=vlan6, nvram set pppoe_ifname=vlan6 and then nvram commit. Then I proceded to reboot the device... Unfortunately this setting also is NOT persistent over a reboot. In order to get his router to do this fiber connection he'll have to add the set command to his startup script.
At least now we found where it determines which vlan it uses for PPPoE!
nvram set vlan1ports="4 3 8*"
nvram set vlan4ports="0 1 8"
nvram set vlan6ports="4 8"
nvram set vlan7ports="0 2 8"
nvram set port5vlans="0 4 6 7 16"
nvram set vlan1hwname=et0
nvram set vlan4hwname=et0
nvram set vlan6hwname=et0
nvram set vlan7hwname=et0
nvram set wan_ifname=vlan6
nvram set pppoe_ifname=vlan6
nvram set pppoe_wan_ifname=vlan6
nvram commit
first make sure it is possibly to get a forced wan connection on vlan 6
in the startupscript it goes as folowing:
nvram set wan_ifname=vlan6
startservice wan
and of cource change everything in the router as wel through the webinterface. ( vlan 1 = ports 3 & 4 , vlan 6 = port 0 for wan)
i get connected on my old internet connection, evben after a reboot.
so all is good, wan works on vlan 6.
then i tried to configure pppoe for the new provider:
startup:
nvram set pppoe_wan_ifname=vlan6
nvram set pppoe_ifname=vlan6
nvram set wandevs=vlan6
and in the webinterface set up tagging for vlan6.
this should give me an ip adress but it does not.
so what i did was see whats left of vlan 2?
well everything was still there, portconfig etc i didn't expect the need for vlan2 so i deleted it.
this resulted in the wired switch not working anymore.
( wlan functioned fine) so i could reset that.
But this means i am missing something.
Can someone explain to me why vlan2 stil was / is in use ? maybe there is an underlying setting that prevents me from connecting to pppoe over vlan6?
You might need to do stopservice wan before restarting it. You'll need to experiment yourself and see if you can figure out how to get PPPoE working along with the new WAN port assignment.
pjottrr wrote:
so what i did was see whats left of vlan 2?
well everything was still there, portconfig etc i didn't expect the need for vlan2 so i deleted it.
this resulted in the wired switch not working anymore.
( wlan functioned fine) so i could reset that.
You need to be way more specific. If you do something bad with the nvram variables then it can result in the switch being unresponsive and needing the variables to be corrected, usually through a hard reset for ease. _________________ 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)
ah wel, i thought vlan2 was only there for the wan connection. so in order to test that i deleted vlan2 via the command "vconfig rem vlan2"
this resulted in the switch being unresponsive while i didn't expect that to happen.
What i want to know is why this resulted in a malfunction of the switch.
maybe then i can find out why pppoe isn't working on vlan6.
Are you saying a vlan2 interface is still being created after you've set your ports to not be in VLAN 2? You shouldn't be using vconfig at all. _________________ 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)
If you unset the nvram variables for vlan2 then the initialization code will probably restore them. To get around it I usually have to set them to something invalid like this:
nvram set vlan2ports=8
nvram set vlan2hwname=e
nvram commit
reboot
Also double check that "2" is not in any of the port#vlans variables. _________________ 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)