
DHCP always maintains a pool of IP addresses. These IP addresses are assigned dynamically. DHCP is used to solve this problem.ĭHCP Protocol provides IP address to hosts. In large networks you cannot manually assign IP addresses by going to each host pass. We can also configure these IP addresses manually on every host.īut if the network is large enough then this approach will not work. When a host in a Computer Network wants to contact another host, then its pass must be a unique IP address. This command displays some important information about the DHCP pool(s) configured on the device – the pool name, total number of IP addresses, the number of leased and excluded addresses, subnet’s IP range, etc.Router(config-if)#ip address 192.168.1.1 255.255.255.0 To display information about the configured DHCP pools, you can use the show ip dhcp pool command: Floor1#show ip dhcp poolĬurrent index IP address range Leased/Excluded/Totalġ92.168.0.1 192.168.0.1 - 192.168.0.254 1 / 1 / 254 Since we’ve excluded the IP addresses from the 192.168.0.1 – 192.168.0.50 range, the device got the first address available – 192.168.0.51.

In the output above you can see that there is a single DHCP client that was assigned the IP address of 192.168.0.51. IP address Client-ID/ Lease expiration Type To view information about the currently leased addresses, you can use the show ip dhcp binding command: Floor1#show ip dhcp binding the DNS server’s IP address is 192.168.0.1.the default gateway’s IP address is 192.168.0.1.the IP addresses assigned to the hosts will be from the 192.168.0.0/24 range.the DHCP pool was created and named Floor1DHCP.the IP addresses from the 192.168.0.1 – 192.168.0.50 range will not be assigned to hosts.In the example above you can see that I’ve configured the DHCP server with the following parameters: If you don’t specify this argument, the default lease time of 24 hours will be used. (Optional) Define the lease duration by using the lease DAYS HOURS MINUTES command.(Optional) Define the DNS domain name by using the ip domain-name NAME command.Define the DNS server with the dns-server IP address command.

Define the default gateway with the default-router IP command.Define a subnet that will be used to assign IP addresses to hosts with the network SUBNET SUBNET_MASK command.Create a new DHCP pool with the ip dhcp pool NAME command.Exclude IP addresses from being assigned by DHCP by using the ip dhcp excluded-address FIRST_IP LAST_IP.A DHCP server is configured with a pool of available IP addresses and assigns one of them to the DHCP client.Ī Cisco router can be configured as a DHCP server.

DHCP employs a client-server architecture a DHCP client is configured to request network parameters from a DHCP server on the network. – IP addresses, subnet masks, default gateways, DNS servers, etc. Dynamic Host Configuration Protocol (DHCP) is an application layer protocol used to distribute various network configuration parameters to devices on a TCP/IP network.
