Specifications

312
DCS-3950 series Ethernet switch manual
to 255 characters; <hex> is a value in Hex that is no greater than 510 and must be of even
length; <ipaddress> is the IP address in decimal format, up to 63 IP addresses can be
configured.
Command mode: DHCP Address Pool Mode
Usage Guide: The switch provides common commands for network parameter
configuration as well as various commands useful in network configuration to meet
different user needs. The definition of option code is described in detail in RFC2123.
Example: Set the WWW server address as 10.1.128.240. Switch(dhcp-1-config)#option
72 ip 10.1.128.240
18.2.2.21 service dhcp
Command: service dhcp
no service dhcp
Function: Enable DHCP server; the ‘no service dhcp command disables the DHCP
service.
Default: DHCP service is disabled by default.
Command mode: Global Mode
Usage Guide: Both DHCP server and DHCP relay are included in the DHCP service.
When DHCP services are enabled, both DHCP server and DHCP relay are enabled.
Example: Enable DHCP server.
Switch(Config)#service dhcp
18.2.3 DHCP Server Configuration Example
Scenario :
To save configuration efforts of network administrators and users, a company is using
DCS-3950 series switch as a DHCP server. The Admin VLAN IP address is 10.16.1.2/24.
The local area network for the company is divided into network A and B according to the
office locations. The network configurations for location A and B are shown below.
PoolA(network 10.16.1.0) PoolB(network 10.16.2.0)
Device IpAddress Device IpAddress
Default Gateway 10.16.1.200
10.16.1.201
Default Gateway 10.16.2.200
10.16.2.201
DNSServer 10.16.1.202 DNSServer 10.16.2.202
WinsServer 10.16.1.209 WWWServer 10.16.2.209
WinsNode Type H-node
Lease 3Days Lease 1Day
In location A, a machine with MAC address 00-03-22-23-dc-ab is assigned with a fixed IP
address of 10.16.1.210 and named as ‘management’.
Switch(Config)#interface vlan 1
Switch(Config-If-Vlan1)#ip address 10.16.1.2 255.255.255.0
Switch(Config--If-Vlan1)#exit