Category Archives: Linux

D-Link DSL-320b in bridged mode

photoI’m using a DSL-320B (version D2, firmware EU_1.25) as a simple ADSL modem, together with a router running OpenWRT.

Which ought to have been straight-forward, but it took me a while to find the right settings.

(Yes, it would be possible to get the DSL-320B to do the ADSL connection, and just connect via ethernet to the router, but that wouldn’t allow me to use the native IPv6 connection that I’ve signed up for.)

My ISP is UKFSN, a retailer for Entanet, who provide an ADSL2+ connection.  The published settings, which I’ve used for combined ADSL routers in the past, are:

  • VCI: 38
  • VPI: 0
  • Encapsulation: PPPoA VCMUX

For some reason, bridged mode with VC-MUX didn’t work — I tried all combinations of bitswap and SRA.

The settings that finally did work are:

ADSL Setup

  • Manual setup
  • Bridge Mode
  • Connection type: 1483 Bridged IP LLC
  • VPI: 0
  • VCI: 38

Advanced ADSL

  • Modulation type: Autosense
  • [  ] Bitswap enable (i.e. disabled)
  • [x] SRA enable (i.e. enabled)

When setting it up, I gave the DSL-320B address  But while bridging is actually happening, it doesn’t respond to that address, despite having a suitable static route set up.  That’s probably to be expected: as a bridge, the device doesn’t have an IP address of its own.

How to Resolve “mount error(12): Cannot allocate memory” on a Windows Share

[Copied from because it's so useful.]

If you mount a Windows 7 share using Samba/CIFS you may run into “mount error(12): Cannot allocate memory” if you are using very large files on the Windows machine. Looks like in certain situations Windows needs to be told to run as a file server and to expect large files. You can read more details at Large Files are locking up Windows 7 32 bit and 64 bit, but the solution is to make two registry edits and then restart a service:

  1. Set “HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache” to “1″.
  2. Set “HKLMSYSTEMCurrentControlSetServicesLanmanServerParametersSize” to “3″.
  3. Restart the “server” service.

Once you have done that you should be able to mount the share using a command like “sudo mount -a” or just reboot the Linux machine.