set interface dhcp-server

Configures the MSS DHCP server.

Note: Use of the MSS DHCP server to allocate client addresses is intended for temporary, demonstration deployments and not for production networks. D-Link recommends that you do not use the MSS DHCP server to allocate client addresses in a production network.

Syntax: set interface vlan-idip dhcp-server [enable disable] [start ip-addr1stop ip-addr2] [dns-domain domain-name] [primary-dns ip-addr[secondary-dns ip-addr]] [default-router ip-addr]

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 (also called

 

the address pool).

stop ip-addr2

Specifies the ending address of the address range.

dns-domaindomain-nameName of the DHCP client’s default DNS domain.

primary-dnsip-addrIP addresses of the DHCP client’s DNS servers. [secondary-dnsip-addr]

default-routerip-addrIP address of the DHCP client’s default router.

Defaults: The DHCP server is enabled by default on a new (unconfigured) DWS-1008 in order to provide an IP address to the host connected to the switch for access to the Web Quick Start.

Access: Enabled.

Usage: By default, all addresses except the host address of the VLAN, the network broadcast address, and the subnet broadcast address are included in the range. If you specify the range, the start address must be lower than the stop address, and all addresses must be in the same subnet. The IP interface of the VLAN must be within the same subnet but is not required to be within the range.

Specification of the DNS domain name, DNS servers, and default router are optional. If you omit one or more of these options, the MSS DHCP server uses oath values configured elsewhere on the switch:

DNS domain name—If this option is not set with the set interface dhcp-servercommand’s dns-domain option, the MSS DHCP server uses the value set by the set ip dns domain command.

D-Link DWS-1008 CLI Manual

90

Page 93
Image 93
D-Link dws-1008 manual Set interface dhcp-server, Configures the MSS Dhcp server, Enables the Dhcp server