Operation Manual

IP Services Commands
IP Services Commands
8 – 133
See Also
set interface dhcp-client on page 8-103
show dhcp-server
Displays MSS DHCP server information.
Syntax
show dhcp-server [interface vlan-id] [verbose]
Defaults
None.
Access
All.
History
Introduced in MSS Version 4.0.
Examples
The following command displays the addresses leased by the MSS DHCP server:
MX# show dhcp-server
VLAN Name Address MAC Lease Remaining (sec)
---- -------------- --------------- ----------------- --------------------
1 default 10.10.20.2 00:01:02:03:04:05 12345
1 default 10.10.20.3 00:01:03:04:06:07 2103
2 red-vlan 192.168.1.5 00:01:03:04:06:08 102
2 red-vlan 192.168.1.7 00:01:03:04:06:09 16789
The following command displays configuration and status information for each VLAN that the
DHCP server is configured:
MX# show dhcp-server verbose
Interface: 0 (Direct AP)
Status: UP
Address Range: 10.0.0.1-10.0.0.253
Table 9.Output for show dhcp-client
Field Description
Interface VLAN name and number.
Configuration Status Status of the DHCP client on this VLAN:
Enabled
Disabled
DHCP State State of the IP interface:
IF_UP
IF_DOWN
Lease Allocation Duration of the address lease.
Lease Remaining Number of seconds remaining before the address lease expires.
IP Address IP address received from the DHCP server.
Subnet Mask Network mask of the IP address received from the DHCP server.
Default Gateway Default router (gateway) IP address received from the DHCP server. If the
address is 0.0.0.0, the server did not provide an address.
DHCP Server IP address of the DHCP server.
DNS Servers DNS server IP address(es) received from the DHCP server.
DNS Domain Name Default DNS domain name received from the DHCP server.
interface vlan-id Displays the IP addresses leased by the specified VLAN.
verbose Displays configuration and status information for the MSS DHCP server.