set interface dhcp-client 171
See Also
clear interface on page 137
display interface on page 152
set interface dhcp-client on page 171
set interface
dhcp-client
Configures the DHCP client on a VLAN and allows the VLAN to obtain its
IP interface from a DHCP server.
Syntax —
set interface vlan-id ip dhcp-client {enable | disable}
vlan-id — VLAN name or number.
enable — Enables the DHCP client on the VLAN.
disable — Disables the DHCP client on the VLAN.
Defaults — The DHCP client is enabled by default on an unconfigured
WXR100 when the factory reset switch is pressed and held during power on.
The DHCP client is disabled by default on all other WX models, and is
disabled on a WXR100 if it is already configured or the factory reset
switch is not pressed and held during power on.
Access — Enabled.
History —Introduced in MSS Version 4.0.
Usage — You can enable the DHCP client on one VLAN only. You can
configure the DHCP client on more than one VLAN, but the client can be
active on only one VLAN.
MSS also has a configurable DHCP server. (See set interface
dhcp-server on page 172.) You can configure a DHCP client and DHCP
server on the same VLAN, but only the client or the server can be
enabled. The DHCP client and DHCP server cannot both be enabled on
the same VLAN at the same time.
Examples — The following command enables the DHCP client on VLAN
corpvlan:
WX1200# set interface corpvlan ip dhcp-client enable
success: change accepted.