Outlines procedures for configuring DHCP Option 82 on VLAN interfaces and SVIs using commands such as option-insert, server-ID-override, and subscriber-ID, including steps for VLAN and SVI setup, suboption configuration, IP assignment, UDP relay settings, and disabling MOP features for DHCP relay control.
Configure DHCP Option 82 through option-insert command (CLI)
Enable DHCP Option 82 insertion on a VLAN interface to provide relay agent information in DHCP packets.
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Configure a VLAN ID. Example:
|
|
| 3. | Insert relay information in BOOTREQUEST. Example:
|
|
| 4. | Configure the IP address for the interface. Example:
|
|
| 5. | Configure the destination address for UDP broadcasts. Example:
|
|
| 6. | Disable the MOP for an interface. Example:
|
|
| 7. | Disable the task of sending MOP periodic system ID messages. Example:
|
DHCP requests sent from this VLAN interface will contain Option 82 relay information to aid in DHCP server assignment and troubleshooting.
Device# configure terminal
Device(config)# interface vlan 72
Device(config-if)# ip dhcp relay information option-insert
Device(config-if)# ip address 9.3.72.38 255.255.255.0
Device(config-if)# ip helper-address 9.3.72.1
Device(config-if)# no mop enabled
Device(config-apgroup)# no mop sysid
Configure DHCP Option 82 through server-ID-override command (CLI)
Enable DHCP Option 82 with server-ID override to control how DHCP relay information is inserted on a Cisco device.
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Configure the server-id override suboption to use an RFC-specific or Cisco-specific value. Example:
|
|
| 3. | Configure the link-selection suboption to use an RFC-specific or Cisco-specific value. Example:
|
|
| 4. | Configure a VLAN ID. Example:
|
|
| 5. | Insert the server-id override suboption and link-selection suboption. Example:
|
|
| 6. | Configure the IP address for the interface. Example:
|
|
| 7. | Configure the destination address for UDP broadcasts that your interfce will use. Example:
|
|
| 8. | Disable MOP for an interface. Example:
|
|
| 9. | Disable the task of sending MOP periodic system ID messages. Example:
|
The device uses the specified server-id override and link-selection options in DHCP Option 82 relay messages, which the device forwards through the configured VLAN interface.
Device# configure terminal
Device(config)# ip dhcp compatibility suboption server-override cisco
Device(config)# ip dhcp compatibility suboption link-selection cisco
Device(config)# interface vlan 72
Device(config-if)# ip dhcp relay information option server-id-override
Device(config-if)# ip address 9.3.72.38 255.255.255.0
Device(config-if)# ip helper-address 9.3.72.1
Device(config-if)# no mop enabled
Device(config-if)# no mop sysid
Configure DHCP Option 82 through a subscriber-ID (CLI)
Configure DHCP Option 82 through a subscriber-ID.
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Configure a VLAN ID. Example:
|
|
| 3. | Insert the subscriber identifier suboption to include the subscriber ID in DHCP messages. Example:
|
|
| 4. | Configure the IP address for the interface. Example:
|
|
| 5. | Configure the destination address for UDP broadcasts. Example:
|
|
| 6. | Disable MOP for an interface. Example:
|
|
| 7. | Disable the task of sending MOP periodic system ID messages. Example:
|
The system now inserts the subscriber-ID suboption (DHCP Option 82) into relayed DHCP packets on the specified VLAN interface.
Device# configure terminal
Device(config)# interface vlan 72
Device(config-if)# ip dhcp relay information option subscriber-id test10
Device(config-if)# ip address 9.3.72.38 255.255.255.0
Device(config-if)# ip helper-address 92.0.2.1
Device(config-if)# no mop enabled
Device(config-apgroup)# no mop sysid
Configure DHCP Option 82 through server-ID-override and subscriber-ID commands (CLI)
Enable customized handling of DHCP Option 82 information for relayed DHCP requests by setting server and subscriber ID options.
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Configure a VLAN ID. Example:
|
|
| 3. | Insert server ID override and link selection suboptions. Example:
|
|
| 4. | Insert the subscriber identifier suboption. Example:
|
|
| 5. | Configure the IP address for the interface. Example:
|
|
| 6. | Configure the destination address for UDP broadcasts. Example:
|
|
| 7. | Disable the MOP for an interface. Example:
|
|
| 8. | Disable the task of sending MOP periodic system ID messages. Example:
|
The interface relays DHCP requests with Option 82 data, including server ID override and subscriber ID.
Device# configure terminal
Device(config)# interface vlan 72
Device(config-if)# ip dhcp relay information option server-id-override
Device(config-if)# ip dhcp relay information option subscriber-id test10
Device(config-if)# ip address 9.3.72.38 255.255.255.0
Device(config-if)# ip helper-address 9.3.72.1
Device(config-if)# no mop enabled
Device(config-apgroup)# no mop sysid
Configure DHCP Option 82 through different SVIs (CLI)
Enable DHCP Option 82 using different switch virtual interfaces (SVIs) for relayed requests.
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Configure a VLAN ID. Example:
|
|
| 3. | Configure a source interface on the VLAN to relay messages. Example:
|
|
| 4. | Configure the IP address for the interface. Example:
|
|
| 5. | Configure the destination address for UDP broadcasts. Example:
|
|
| 6. | Disable the Maintenance Operations Protocol (MOP) on the interface. Example:
|
|
| 7. | Disable periodic system ID message transmission for MOP. Example:
|
The device relays DHCP messages with Option 82 through the configured VLAN SVIs.
Device# configure terminal
Device(config)# interface vlan 72
Device(config-if)# ip dhcp relay source-interface vlan 74
Device(config-if)# ip address 9.3.72.38 255.255.255.0
Device(config-if)# ip helper-address 9.3.72.1
Device(config-if)# no mop enabled
Device(config-apgroup)# no mop sysid