Something's gone wrong!An error ocurred performing that action. Please try refreshing the page.

Wake on LAN across subnets with HP switches

By Katy Nicholson, posted on 10 June, 2018

As part of setting up Config Mgr I wanted to get all PCs to wake-on-LAN to enable truly zero touch deployment. I'm using mostly HP v1910/1920 edge switches with a HP 5406zl core switch. To send WoL packets while testing I'm using a tool from (once all set up Config Mgr will be doing the wake on LAN packets).

I've since written a new post about Wake on LAN, which may be useful for troubleshooting. Wake on LAN works by broadcasting a magic packet containing the MAC of the PC you want to wake. It's a UDP packet usually going from port 7 to port 9. Broadcasts sent to don't traverse routers into other subnets so we instead have to use a subnet directed broadcast. This means sending to the subnet's broadcast address instead (e.g. for the subnet's broadcast is Here we are assuming the Config Mgr server is, and clients are on (VLAN 10) and (VLAN 20) First thing we need to do is on the core switch (the 5406). Log on to the console (I use ssh for this) and run the following:

ip access-list extended "wol-acl" 10 permit ip exit ip directed-broadcast access-group "wol-acl"

This enables directed broadcasts but only from the Config Mgr server, specified in the wol-acl access list. Next, on the edge switches, we need to log on to the console and run the following to enable broadcast forwarding. Without this turned on, the switch won't forward the broadcast packet to all ports.

_cmdline-mode on (press Y, then enter the password) system-view ip forward-broadcast save

Not sure why but the v1910 have an extremely limited CLI (pretty much all you can do is set the IP address) unless you enter cmdline-mode and put in the dev password. The password for the 1910 series is 512900, and for the 1920 is Jinhua1920unauthorized. The 1920S doesn't have a command line (not sure how they thought it a suitable replacement for 1910 and 1920 as it's absolutely rubbish). I've also noticed some of my 1910s and all the 1920s don't have the "ip forward-broadcast" command so not sure how they will work. Now all that's left to do is go into the BIOS config on all your clients and enable wake on LAN! Hopefully you have a major brand of client where there is a windows EXE which can be scripted - I don't so have to go and turn this on manually 400 times.

Support My Work

I hope you find my content useful. Please consider tipping to support the running costs of hosting, licensing etc on my Ko-fi page.

Support me on Ko-fi


Microsoft Most Valuable Professional Award