Inicio > redes, windows > Using DHCP to Assign Static Routes

Using DHCP to Assign Static Routes


In order to facilitate testing in a lab environment, I make extensive use of virtual machine technology.  Today I employ a combination of VMWare Workstation and VMWare ESX Server in order to simulate distributing computing environments.  Included with these technologies is virtual networking, which is tremendously useful when creating complex routed networks in my lab.

There are times when I will add static routes (host routes or network routes) to my local workstation in order to conduct testing.  Occasionally there will be times when I forget the ‘-p’ switch to make the route persistent, then I find myself wondering why my connectivity to my test environment isn’t working.  Another common scenario is when I grab another system (a laptop or another VM perhaps) and I end up having to manually add more routes before testing can resume.

Recently I decided to make my life easier and use DHCP to add these routes to all of my workstations.  Configuring static routes using DHCP is quick and simple.  You can add a static route by configuring a DHCP option 249 on Windows Server 2003 DHCP servers, or option 121 on Windows Server 2008 DHCP servers.  You can configure the option at the server level, but it is more likely that you will configure the option at the scope level, or as I often do, on a specific reservation.

For demonstration purposes here we’ll make this change at the scope level.  To begin, right-click Scope Options and choose Configure Options….  On Windows Server 2003 DHCP servers, select option 249 Classless Static Routes (Option 121 on Windows Server 2008 DHCP servers).


Click Add Route…, then enter the static route you wish to configure.


Now, regardless of which system I log on to, I am assured that I will have connectivity to all of my virtual environments.

Note: DHCP Option 121 is ignored by DHCP clients prior to Windows Server 2008 and Windows Vista.  This may not work if you are using a Windows Server 2008 DHCP server to assign networking configuration to these clients.  Windows Vista and Windows Server 2008 DHCP clients use both Option 121 and Option 249.

Categorías:redes, windows Etiquetas: ,
  1. 25 julio 2012 en 5:31 pm

    I’m impressed, I found this site on google poking around for something else entirely, and now I’m gonna have to read all the archives!

    So long my spare time this morning, but this was a really spectacular find :

  2. 31 agosto 2012 en 3:23 pm

    WOW just what I was searching for. Came here by searching for hardware

  3. 25 septiembre 2012 en 3:08 pm

    Valuable info. Fortunate me I discovered your site unintentionally, and I am shocked why this twist of fate did not happened earlier!
    I bookmarked it.

  4. 29 septiembre 2012 en 5:24 pm

    Hi, Neat post. There’s a problem together with your site in internet explorer, might test this… IE still is the marketplace leader and a good component to people will leave out your fantastic writing due to this problem.

  1. No trackbacks yet.


Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: