Category Archives: Hardware

Setting VLAN Ports on Tomato via Command Line

I have some devices I don’t completely trust to be on the same network as all my computers. SmartTVs, a surveillance system, internet enabled toasters, you get the point. (The internet-of-things is going to get a lot more people hacked and spied on in the coming years.)

I needed to set up a VLAN on my router’s Tomato install but due to some bug, I couldn’t isolate a port to a single VLAN. Despite all efforts the port would always end up being a part of both the default VLAN1 and my new, untrusted VLAN3. While the device was accessible on the subnet I wanted it to be, it could also still see the devices on my primary subnet.


After a lot of searching I found this is a bug(s) with certain router hardware (details) and/or the Tomato WebGUI. The solution being to shell into your router and do it manually.

Note: the SSH username for tomato is actually root not admin! Despite the fact that admin is your username for the tomato GUI and despite the fact that the password you set up for the GUI (probably under the username admin) is used for SSH. That’s pretty confusing.


Confusing Tomato Form

To see what ports are on what VLAN run:

nvram show|grep vlan.ports

Note the port with an asterisk is not a physical port.

To set ports on a VLAN run:

nvram set vlanXports="Y Y Y"

Where X is your VLAN number and Y is your port numbers

Then set manual boot, commit your changes, and restart.

nvram set manual_boot_nv=1
nvram commit


Posted in Hardware, Tomato | 1 Comment

Getting the Diamond BVU195 USB-to-Display Adapter to Work on OS X

I’ve been pretty impressed with the Diamond BVU195 display adapter. I’ve found USB to display adapters almost universally suck. The BVU195 seems to be one of the exceptions to the rule though. It’s definitely no replacement for a video card with multiple display ports but I work on a Macbook Pro so I’m constrained.

The adapter ships with installation media but it’s only for Windows. The manufacturer’s product  page has a drivers section and even mentions Mac OS X but the download doesn’t seem to contain any actual OS X software.

Thankfully the chipset manufacturer for the product does have an OS X driver available. The driver is currently listed as a beta but I’ve been using it with OS X 10.7 Lion without issue for several months now. You can find the DisplayLink drivers here:

Posted in Hardware, OS X | Leave a comment