17-24
WS5100 Series Switch CLI Reference Guide
17.2.2 Creating a Host Pool
To create a host pool:
1. Create a DHCP server host address pool.
WS5100(config)#ip dhcp pool hostpool
2. Assign the client name of the host for which static allocation is required.
WS5100(config-dhcp)#client-name linuxbox
3. Assign an IP address for the host.
WS5100(config-dhcp)#host 192.168.0.50
4. Configure the hardware address of the host.
WS5100(config-dhcp)#hardware 00:a0:f8:6f:6b:88
5. Exit from the DHCP instance upon creation of the network pool.
WS5100(config-dhcp)#exit
6. Start the DHCP Server to instantiate the network pool.
WS5100(config)#service dhcp
17.2.3 Troubleshooting DHCP Configuration
1. The DHCP Server is disabled by default. Use the following command to enable the
DHCP Server.
WS5100(config)#service dhcp
This command administratively enables the DHCP server. If the DHCP configuration is
incomplete, it is possible the DHCP server will be disabled even after the execution of
this command.
2. Use the
network 192.168.0.0/24
In the above example, 192.168.0.0/24 represents the L3 interface. When you execute
this command, no check is performed to endorse whether an interface (with the
specified IP/Netmask) exists. The verification is not performed because you can create
a pool and map it to non existing L3 interface.
When you add a L3 interface and assign an IP address to it, the DHCP server gets
enabled/started on this interface. If you have a pool for network 192.168.0.0/24, but
command to map the network pool to interface.
network