Creating VLANs in DD-WRT (Part 3)

In the second part of this post I completed the setup of VLANs on my WNR3500L router. To make them available to hosts (and VMs) I now have to configure my Cisco SLM2008 switches.

Fortunately that turns out to be fairly simple. The SLM 2008 has a web-based GUI that does the job nicely. Once logged in it’s a matter of opening the VLAN >> VLAN Settings page. Then just tap in the VLAN ID that you want to create and click “Add”.

This then drops you into an additional page where you choose which ports to associate the VLAN with. I picked all of the ports on this switch (where my ESX hosts are located). Then I clicked “Save”.

It’s just then a case of repeating for the other VLANs that are required. And that’s the switches done. TheĀ defaultĀ configuration of them doesn’t require any further tweaking.

Within vSphere, the configuration required should be obvious. Here’s a screenshot from my ESX host with a portgroup called “Test” defined.

It has a VLAN ID of 6 and one VM in it with an IP Address of It can reach the router’s primary network, the internet and be contacted from my main network and wireless clients.

Exactly what I want for now.

  1. Your setup of the vlans on the slm2008 had to be more involved than what you described, you would have had to setup a trunked port which is a nightmare on these switches.

  2. Good write up. I used most of it with a few changes to configure the same thing using tomato firmware on a WNR3500L. I had to change nvram parameter rc_startup to be script_init and the firewall script to be script_fire or something like that. I also needed to place a “sleep 10” command as the first line in the start-up script so it would actually give the vlan interfaces ip’s and up them. My secondary switch was a cisco 4948 switch which I had to create the vlans via IOS commands but was quite easy as well and created some trunk ports to hold all the new vlans on each port as well. I also made the cisco switch a dhcp server for all the new vlan subnets.

    Thanks for the write-up.

Add Comment

Required fields are marked *. Your email address will not be published.