User Guide     468
Configuring DHCP Service Configuration Examples
5.1.4  Using the CLI
1)  Enable DHCP Server.
Switch#configure
Switch(config)#service dhcp server
2)  Specify the Pool Name, Network Address, Subnet Mask and Lease Time.
Switch(config)#ip dhcp server pool pool
Switch(dhcp-config)#network 192.168.0.0 255.255.255.0
Switch(dhcp-config)#lease 120
Switch(dhcp-config)#exit
3)  Bind the specified IP address to the MAC address of the FTP server.
Switch(config)# ip dhcp server pool pool
Switch(dhcp-config)# address 192.168.0.8 hardware-address FC-AA-14-59-E9-4A 
hardware-type ethernet
Switch(dhcp-config)#end
Switch#copy running-config startup-config
Verify the Configuration
Switch#show ip dhcp server binding
IP Address       Client id/Hardware Address   Type                 Lease Time Left
----------           --------------------------               ---------            ---------------
192.168.0.2     01-d43d-7ebf-615f                    Automatic      01:57:27
192.168.0.8     01-fcaa-1459-e94a                    Manual            Infinite
5.2  Example for DHCP Interface Relay
5.2.1  Network Requirements
The administrator deploys one DHCP server on the network, and wants the server to assign 
IP addresses to the computers in the Marketing department and the R&D department. It 
is required that computers in the same department should be on the same subnet, while 
computers in different departments should be on different subnets.
After adding the DHCP server, the network topology will be as shown in Figure 5-5.
The Marketing department and the R&D department belong to VLAN 10 and VLAN 20, 
respectively. The IP address of VLAN interface 10 is 192.168.2.1/24, and the IP address of 
VLAN interface 20 is 192.168.3.1/24. The DHCP server is connected to the routed port of