The dhcp server option184 command configures Option 184 allocated by a DHCP server to a client.
The undo dhcp server option184 command deletes Option 184 allocated by a DHCP server to a client.
By default, Option 184 allocated by a DHCP server to a client is not configured.
dhcp server option184 { as-ip ip-address | fail-over ip-address dialer-string | ncp-ip ip-address | voice-vlan vlan-id }
undo dhcp server option184 [ as-ip | fail-over | ncp-ip | voice-vlan ]
Parameter |
Description |
Value |
---|---|---|
ncp-ip ip-address |
Specifies the IP address of the network call processor (NCP). |
The value is in dotted decimal notation. |
as-ip ip-address |
Specifies the IP address of the backup NCP. |
The value is in dotted decimal notation. |
fail-over ip-address |
Specifies the IP address in the failover route. |
The value is in dotted decimal notation. |
dialer-string |
Specifies the dialer string. |
The value is a string of 1 to 64 characters. |
voice-vlan vlan-id |
Specifies the ID of a voice VLAN. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
The dhcp server option184 command applies to only the DHCP server and configures Option 184 allocated by a DHCP server to a client in an interface address pool.
Prerequisites
IP addresses in the interface address pool have been configured using the ip address command.
The DHCP server function has been enabled on the interface using the dhcp select interface command.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.1.1.2 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server option184 as-ip 10.10.10.10
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ip address 10.1.1.2 24 [HUAWEI-GigabitEthernet0/0/1] dhcp select interface [HUAWEI-GigabitEthernet0/0/1] dhcp server option184 as-ip 10.10.10.10