Fortinet black logo

Administration Guide

Using Wake-on-LAN packets

Copy Link
Copy Doc ID d887c3dd-ee67-11ec-bb32-fa163e15d75b:600789
Download PDF

Using Wake-on-LAN packets

You can use the CLI to send Wake-on-LAN (WoL) packets to a specific MAC address to remotely turn on a computer. You can either use a system interface or a switch port to send the WoL packets. The WoL packets are sent by UDP by default, but you can use the WoL protocol to send the WoL packets instead. You can also specify a password if the remote computer is protected by SecureOn.

To send WoL packets:

execute wake-on-lan <interface_type> <interface_or_port> <host_MAC_address> <protocol> <port> <IP_address> <password>

Variable

Description

<interface_type>

Select the interface type that will send the WoL packets. Select 1 if to use the system interface or 2 to use the switch port. The default is 1.

<interface_or_port>

If you selected 1 for the interface type, specify which system interface to use (required). If you selected 2 for the interface type, specify which switch port to use (optional).

<host_MAC_address>

Required. Enter the MAC address (XX:XX:XX:XX:XX:XX) of the computer that needs to be turned on.

<protocol>

Optional. Select which protocol to use to send the WoL packets. Select 1 for WoL or 2 for UDP. The default is 2.

<port>

Optional. If you selected 2 for the protocol, select which port the WoL packets will use. You can select 0, 7, or 9. The default is 9.

<IP_address>

Optional. If you selected 2 for the protocol, enter the broadcast IP address used by the WoL packets.

<password>

Optional. Enter the password if a 6-byte SecureOn password is enabled on the destination host. The password can be a string or 0x plus a hexadecimal value.

If you are sending the WoL packets by UDP from the FortiSwitch port3 to a MAC address of aa:bb:cc:00:11:22:

execute wake-on-lan 2 port3 aa:bb:cc:00:11:22 2 9 1.2.3.4

If you are sending the WoL packets by UDP from the FortiSwitch port10 to a MAC address of 10:20:30:40:50:60 and the destination host is protected by a SecureOn password:

execute wake-on-lan 2 port10 10:20:30:40:50:60 2 9 10.10.10.10 passwd

Using Wake-on-LAN packets

You can use the CLI to send Wake-on-LAN (WoL) packets to a specific MAC address to remotely turn on a computer. You can either use a system interface or a switch port to send the WoL packets. The WoL packets are sent by UDP by default, but you can use the WoL protocol to send the WoL packets instead. You can also specify a password if the remote computer is protected by SecureOn.

To send WoL packets:

execute wake-on-lan <interface_type> <interface_or_port> <host_MAC_address> <protocol> <port> <IP_address> <password>

Variable

Description

<interface_type>

Select the interface type that will send the WoL packets. Select 1 if to use the system interface or 2 to use the switch port. The default is 1.

<interface_or_port>

If you selected 1 for the interface type, specify which system interface to use (required). If you selected 2 for the interface type, specify which switch port to use (optional).

<host_MAC_address>

Required. Enter the MAC address (XX:XX:XX:XX:XX:XX) of the computer that needs to be turned on.

<protocol>

Optional. Select which protocol to use to send the WoL packets. Select 1 for WoL or 2 for UDP. The default is 2.

<port>

Optional. If you selected 2 for the protocol, select which port the WoL packets will use. You can select 0, 7, or 9. The default is 9.

<IP_address>

Optional. If you selected 2 for the protocol, enter the broadcast IP address used by the WoL packets.

<password>

Optional. Enter the password if a 6-byte SecureOn password is enabled on the destination host. The password can be a string or 0x plus a hexadecimal value.

If you are sending the WoL packets by UDP from the FortiSwitch port3 to a MAC address of aa:bb:cc:00:11:22:

execute wake-on-lan 2 port3 aa:bb:cc:00:11:22 2 9 1.2.3.4

If you are sending the WoL packets by UDP from the FortiSwitch port10 to a MAC address of 10:20:30:40:50:60 and the destination host is protected by a SecureOn password:

execute wake-on-lan 2 port10 10:20:30:40:50:60 2 9 10.10.10.10 passwd