Operation Manual
IP Services Commands
Mobility System Software Command Reference Guide
Version 7.3
8 – 104
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 8-104.) 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:
MX# set interface corpvlan ip dhcp-client enable
success: change accepted.
See Also
● clear interface on page 8-92
● show dhcp-client on page 8-132
● show interface on page 8-135
set interface dhcp-server
Configures the MSS DHCP server.
Syntax
set interface vlan-id ip dhcp-server [enable | disable] [start ip-addr1 stop
ip-addr2] [dns-domain domain-name] [primary-dns ip-addr [secondary-dns ip-addr]]
[default-router ip-addr]
Defaults
The DHCP server is enabled by default on a new (unconfigured) MXR-2, MX-8, MX-200,
or MX-216, in order to provide an IP address to the host connected to the MX for access to the Web
Quick Start. On all MX models, the DHCP server is enabled and cannot be disabled for directly
connected MPs.
The DHCP server is disabled by default for any other use.
Access
Enabled.
History
Note:
Use of the MSS DHCP server to allocate client addresses is intended for temporary,
demonstration deployments and not for production networks. It is recommended that
you do not use the MSS DHCP server to allocate client addresses in a production
network.
vlan-id VLAN name or number.
enable Enables the DHCP server.
disable Disables the DHCP server.
start ip-addr1 Specifies the beginning address of the address range.
stop ip-addr2 Specifies the ending address of the address range.
dns-domain domain-name Name of the DHCP client’s default DNS domain.
primary-dns ip-addr
[secondary-dns ip-addr]
IP addresses of the DNS servers for the DHCP client.
default-router ip-addr IP address of the DHCP client default router.
Version 4.0 Command introduced