UMN:CLI
User Manual
V8102
410
9.6.5.1
Entering DHCP Option Mode
To enter the DHCP option mode, use the following command.
Command
Mode
Description
ip dhcp option format NAME
Global
Enters the DHCP option mode.
NAME: DHCP option format name
9.6.5.2
Configuring DHCP Option Format
To configure a DHCP option format, use the following command.
Command
Mode
Description
attr
<1-32>
type
<0-255>
length
{<1-64> |
varia-
ble
}
value
{
hex
|
index
|
if_ip
|
ip
|
string
}
VAL-
UE
DHCP
Option
Sets the type, length, and value of an at-
tribute for a DHCP option.
attr: They can be made in a DHCP option
and are applied in order of attribute value
(1-32).
type: The type of a value
length: The length of a value. It could be a
fixed length by user input or a variable
length according to the actual value length.
value: The actual value of an option
attr
<1-32>
type
<0-255>
length-hidden
{<1-64>
|
variable
}
value
{
hex
|
index
|
if_ip
|
ip
|
string
}
VALUE
attr
<1-32>
length variable value
{
hex
|
index
|
if_ip
|
ip
|
string
}
VALUE
Sets the length and value of an attribute for
a DHCP option.
attr
<1-32>
length
<1-64>
value
{
hex
|
index
|
if_ip
|
ip
|
string
}
VALUE
attr
<1-32>
length-hidden variable value
{
hex
|
index
|
if_ip
|
ip
|
string
}
VALUE
Sets the value of an attribute for a DHCP
option.
attr
<1-32>
length-hidden
<1-64>
value
{
hex
|
index
|
if_ip
|
ip
|
string
}
VALUE
no attr
<1-32>
Deletes the given attribute.
The packets can be mapped to the option format string that defined by variable values
with special character (%).
%FRAME: frame (chassis) number for receiving DHCP packets
%SLOT: slot number for receiving DHCP packets
%PORT: index port ID. If the switch is 4-slot chassis and associated 4-port modules,
there are 16 index port IDs. In case the index port ID is 5, its slot number is 2 and
physical port number is 1 (Port number = 2/1).
%IN_IF_IP: input interface IP address
%VID: VLAN ID tagged on packets
%CPU-MAC: system MAC address
%ONU-ID: ONU IP address
%ONU_DESC: ONU description written by administrator
%ONU_PORT_NUM: ONU port number
%REAL_PORT: real port
%ONU_PORT_DESCRIPTION: ONU port description written by administrator
%ONU_SERIAL_NUM: ONU serial number
i