Configuring DHCP snooping support for Option 82

Restrictions and guidelines

Procedure

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface interface-type interface-number

  3. Enable DHCP snooping to support Option 82.

    dhcp snooping information enable

    By default, DHCP snooping does not support Option 82.

  4. (Optional.) Configure a handling strategy for DHCP requests that contain Option 82.

    dhcp snooping information strategy { drop | keep | replace }

    By default, the handling strategy is replace.

    If the handling strategy is replace, configure a padding mode and padding format for Option 82. If the handling strategy is keep or drop, you do not need to configure any padding mode or padding format for Option 82.

  5. (Optional.) Configure the padding mode and padding format for the Circuit ID sub-option.

    dhcp snooping information circuit-id { [ vlan vlan-id ] string circuit-id | { normal | verbose [ node-identifier { mac | sysname | user-defined node-identifier } ] } [ format { ascii | hex } ] }

    By default, the padding mode is normal and the padding format is hex for the Circuit ID sub-option.

    If the device name (sysname) is configured as the padding content for sub-option 1, make sure the device name does not include spaces. Otherwise, the DHCP snooping device will fail to add or replace Option 82.

  6. (Optional.) Configure the padding mode and padding format for the Remote ID sub-option.

    dhcp snooping information remote-id { normal [ format { ascii | hex } ] | [ vlan vlan-id ] string remote-id | sysname }

    By default, the padding mode is normal and the padding format is hex for the Remote ID sub-option.