DHCP Option 82
DHCP Option 82 is a relay agent information option that
-
carries information known by the relay agent
-
increases DHCP security by enabling identification of request sources, and
-
allows address allocation based on network topology or client device characteristics.
The controller can be configured to add Option 82 information to DHCP requests from clients before forwarding the requests to a DHCP server. The DHCP server can then be configured to allocate IP addresses to the wireless client based on the information present in DHCP Option 82.
DHCP provides a framework for passing configuration information to hosts on a TCP/IP network. Configuration parameters and other control information are carried in tagged data items stored in the Options field of the DHCP message. These data items are also called options. Option 82 includes information known by the relay agent.
The Relay Agent Information option is a single DHCP option containing one or more suboptions that convey information known by the Relay Agent. Option 82 enables a DHCP Relay Agent to insert circuit-specific information into a forwarded request to a DHCP server. This option uses two suboptions:
-
Circuit ID: The Circuit ID suboption includes information that is specific to the circuit the request came in on. This suboption is an identifier that is specific to the relay agent. Thus, the circuit that is described will vary depending on the relay agent.
-
Remote ID: The Remote ID suboption includes information on the remote host–end of the circuit. This suboption usually contains information that identifies the relay agent. In a wireless network, this is likely a unique identifier for the wireless AP.
![]() Note |
|
DHCP Option 82 configuration options
You can configure these DHCP Option 82 options in a controller:
-
DHCP Enable
-
DHCP Opt82 Enable
-
DHCP Opt82 Ascii
-
DHCP Opt82 RID
-
DHCP Opt Format
-
DHCP AP MAC
-
DHCP SSID
-
DHCP AP ETH MAC
-
DHCP AP NAME
-
DHCP Site Tag
-
DHCP AP Location
-
DHCP VLAN ID
The controller includes the SSID in ASCII format and the VLAN ID in hexadecimal format within the remote ID suboption of Option 82 in the outgoing DHCP packets to the server for this configuration.
ipv4 dhcp opt82 format ssid
ipv4 dhcp opt82 format vlan-id
However, if ipv4 dhcp opt82 ascii configuration is also present, the controller adds VLAN-ID and SSID in ASCII format.
For Cisco Catalyst 9800 Series Configuration Best Practices, see the following link: https://www.cisco.com/c/en/us/products/collateral/wireless/catalyst-9800-series-wireless-controllers/guide-c07-743627.html
Configure DHCP Option 82 format
Configure the wireless controller to insert DHCP Option 82 information into DHCP requests from wireless clients.
Procedure
|
Step 1 |
Enter global configuration mode. Example:
|
|
Step 2 |
Enable configuration for the specified profile policy. Example:
|
|
Step 3 |
Shut down the profile policy. Example:
|
|
Step 4 |
Assign the profile policy to a VLAN. Example:
|
|
Step 5 |
(Optional) Set the session timeout value in seconds. The range is between 20 to 86,400 seconds. Example:
|
|
Step 6 |
(Optional) Set the idle timeout value in seconds. The range is between 15 to 100,000 seconds. Example:
|
|
Step 7 |
Enable central switching. Example:
|
|
Step 8 |
Enable DHCP Option 82 for the wireless clients. Example:
|
|
Step 9 |
(Optional) Enable ASCII on the DHCP Option 82 feature. Example:
|
|
Step 10 |
(Optional) Add Cisco 2-byte Remote ID (RID) to the DHCP Option 82 feature. Example:
|
|
Step 11 |
Enable DHCP Option 82 on the corresponding AP. Example:
For information on the various options available with the command, see Cisco Catalyst 9800 Series Wireless Controller Command Reference . |
|
Step 12 |
Enable the profile policy. Example:
|
The wireless profile policy inserts DHCP Option 82 information in the specified format for wireless clients.
Device# configure terminal
Device(config)# wireless profile policy pp3
Device(config-wireless-policy)# shutdown
Device(config-wireless-policy)# vlan 72
Device(config-wireless-policy)# session-timeout 300
Device(config-wireless-policy)# idle-timeout 15
Device(config-wireless-policy)# central switching
Device(config-wireless-policy)# ipv4 dhcp opt82
Device(config-wireless-policy)# ipv4 dhcp opt82 ascii
Device(config-wireless-policy)# ipv4 dhcp opt82 rid
Device(config-wireless-policy)# ipv4 dhcp opt82 format apmac
Device(config-wireless-policy)# no shutdown

Feedback