57
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp relay information remote-id format-type ascii
dhcp relay information remote-id string
Syntax
dhcp relay information remote-id string { remote-id | sysname }
undo dhcp relay information remote-id string
View
Interface view
Default level
2: System level
Parameters
remote-id: Specifies the padding content for the user-defined remote ID sub-option, a case-sensitive string
of 1 to 63 characters.
sysname: Specifies the device name as the padding content for the remote ID sub-option.
Description
Use the dhcp relay information remote-id string command to configure the padding content for the user-
defined remote ID sub-option.
Use the undo dhcp relay information remote-id string command to restore the default.
By default, the padding content for the remote ID sub-option depends on the padding format of Option
82.
After you configure the padding content for the remote ID sub-option using this command, ASCII is
adopted as the code type.
NOTE:
If you want to specify the character string sysname (a case-sensitive character string) as the padding
content for the remote ID sub-option, you need to use quotation marks to make it take effect. For
example, if you want to specify Sysname as the padding content for the remote ID sub-option, you
need to enter the dhcp relay information remote-id string “Sysname” command.
Related commands: dhcp relay information format and display dhcp relay information.
Examples
# Configure the padding content for the remote ID sub-option as device001.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp relay information remote-id string device001
dhcp relay information strategy
Syntax
dhcp relay information strategy { drop | keep | replace }
undo dhcp relay information strategy