DHCP Server Instance
17-23
17.2 Configuring the DHCP Server using Switch CLI
The switch DHCP configuration is conducted by creating pools and mapping them to L3
interfaces (SVI).
• A Network pool is the pool with “include” ranges. When the network pool is mapped
to a L3 interface, DHCP clients requesting IPs from the L3 interface get an IP from the
configured range
• A host pool is the pool used to assign static/fixed IP address to DHCP clients
17.2.1 Creating network pool
To create a network pool using the switch CLI:
1. Create a DHCP server dynamic address pool.
WS5100(config)#ip dhcp pool test
2. Map the DHCP pool to the network pool.
WS5100(config-dhcp)#network 192.168.0.0/24
3. Add the address range for the dynamic pool.
WS5100(config-dhcp)#address range 192.168.0.30 192.168.0.60
4. Assign a domain name (as appropriate) to this dynamic pool.
WS5100(config-dhcp)#domain-name test.com
5. Configure the DNS server’s IP address.
WS5100(config-dhcp)#dns-server 192.168.0.10 192.168.0.11
6. Configure the DHCP client’s IP address lease period.
WS5100(config-dhcp)#lease 10
7. Exit from the DHCP instance upon creation of the network pool.
WS5100(config-dhcp)#exit
8. Start the DHCP Server to instantiate the network pool.
WS5100(config)#service dhcp
Summary of Contents for WS5100 Series
Page 1: ...M WS5100 Series Switch CLI Reference Guide ...
Page 14: ...WS5100 Series Switch CLI Reference Guide xviii ...
Page 28: ...WS5100 Series Switch CLI Reference Guide TOC 14 ...
Page 40: ...WS5100 Series Switch CLI Reference Guide 1 12 ...
Page 132: ...WS5100 Series Switch CLI Reference Guide 3 10 ...
Page 164: ...WS5100 Series Switch CLI Reference Guide 4 32 ...
Page 240: ...WS5100 Series Switch CLI Reference Guide 6 10 ...
Page 258: ...WS5100 Series Switch CLI Reference Guide 9 4 ...
Page 270: ...WS5100 Series Switch CLI Reference Guide 10 12 ...
Page 332: ...WS5100 Series Switch CLI Reference Guide 14 22 ...
Page 344: ...WS5100 Series Switch CLI Reference Guide 15 12 ...
Page 482: ...WS5100 Series Switch CLI Reference Guide 20 64 ...
Page 491: ......