OpenWrt Forum Archive

Topic: Port based VLANs on DG834?

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Has anybody managed to get port based VLANs working on the DG834 or DG834GT?

Thanks, Paul.

I'd really like to know this to, reason being I want to create a "WAN" port on a DG834GT since they do not work with Ericssons DSLAM equipment... (on the ADSL line that is ;-))

The switch chip is a regular BCM5325 just like some of the newer models of the WRT's use...

I am also intrested for port based VLAN if any one can suggest how to do it, I am sitting with one DG834G to try something new.

Vlan for the marvell 88E6060/3-RCJ 5+1 Port 10/100 MAC/PHY Switch seems to be in the GPL source code of the LINKSYS WAG54G V2 AU  and AZTECH/NETCOMM DSL600EW/NB5PLUS4W.

The kernel code is located in directory /src/kernel/linux-2.4.17_mvl21/drivers/char/extSwitch

The user land code is only present in the AZTECH/NETCOMM gpl code directory /src/extswitch.

Config.xml 66.2.2.003 for the aztech contains this

<ifaces>
  <usb>USB</usb>
  <eth0.1>VLAN1</eth0.1>
  <eth0.2>VLAN2</eth0.2>
  <eth0.3>VLAN3</eth0.3>
  <eth0.4>VLAN4</eth0.4>
  <ap>WLAN</ap>
  </ifaces>

The vlan is present in my webinterface, but does not work.
Looking at it closely reveals that the kernel switch code is compiled in the aztech firmware, (/proc/Switch) but the userland tool extswitch NOT. The weblog gives an error regarding this tool.

Vlan is also present in the QoS page of my webinterface. I can limit the bandwidth given to each physical port. In the switch webinterface I can enable /disable physical ports or change their ethernet speed like 10/100baseT/half-full duplex.


I tried to compile the userland tool extswitch, but get a path error. This is a script error as the libs are present in the kernel code.  Till now I have not worked it out.

Maybe somebody want to try this code ?

Netcomm sources Netcomm_GPL.tgz is located at

ftp://202.44.167.165
user: source
pass: s0urc3

Size is 65 MB.

yellownotblack wrote:

Vlan for the marvell 88E6060/3-RCJ 5+1 Port 10/100 MAC/PHY Switch seems to be in the GPL source code of the LINKSYS WAG54G V2 AU  and AZTECH/NETCOMM DSL600EW/NB5PLUS4W.

The kernel code is located in directory /src/kernel/linux-2.4.17_mvl21/drivers/char/extSwitch

The user land code is only present in the AZTECH/NETCOMM gpl code directory /src/extswitch.

The userland code in /src/extswitch is for the 80E6063, which is a managed switch that supports 802.1q VLANs properly. All the documentation I can find on the 88E6060 implies it can only do port based VLANs, which would make it unlikely that a DMZ or WAN port could be created.

My DG834G definitely contains a 6060 rather than a 6063. sad

Excellent, thanks for this!

I've patched the kernel, hit make, built the switchctl tool, put it in /usr/sbin and re-built the firmware image. When I try and run switchctl it says everything is OK, however the port based VLANs don't seem to be working.

I suspect that the rebuilt kernel isn't being added back to the firmware image. As far as I can tell build.sh simply incorporates the target directory into the firmware image, but there's no obvious way to replace the kernel part in the image. Any ideas?

Cheers,


Paul.

(Last edited by evanspa1 on 24 Feb 2006, 03:59)

Update:

There is a tool called dgfirmware that allows you to replace the kernel in a firmware image. You can find it at:

http://malphx.free.fr/DG834G/blog/files/dgfirmware.c

Unfortunately the newly compiled kernel doesn't work - after the new image has been uploaded the modem enters recovery mode.  I've read somewhere that the standard WRT54G toolchain isn't appropriate for compiling the kernel and that the montavista gcc compiler is required. Has anybody managed to find an alternative way of compiling the kernel?

Cheers,


Paul.

As far as I remember the montavitsa compiler and tools are inside the linksys ag241 source package.

I use it too to compile some stuff for my aztech and is works...

http://www.agnescreations.co.uk/linux/d … opment.htm

look at 2.2. and 2.3

(download does not work, but you can directly download from ftp.linksys.com)

The discussion might have continued from here.