The ip dhcp pool will also put the router into configuration mode. The command for creating a DHCPv4 pool is ip dhcp pool. Creating a DHCPv4 PoolĪfter Excluding IP addresses create and define an IPv4 addresses pool to assign. The addresses assigned to the router must be excluded including the servers, printers, and other devices that have been manually configured. We can exclude a single address or a range of addresses using the first address and last address of the range. To exclude particular addresses from being assigned by DHCPv4, use the following command. So, these addresses should be excluded from being assigned by the DHCPv4 server. Typically, some IPv4 addresses in a pool are assigned to network devices manually. The router configured as the DHCPv4 server assigns all IPv4 addresses in an address pool unless configured to exclude specific addresses. The steps for configuring DHCPv4 server on Cisco routers are the following: Excluding IPv4 Addresses The DHCPv4 server assigns and manages IPv4 addresses from specified address pools within the router to DHCPv4 clients. 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.A Cisco router can be configured as a DHCPv4 server. 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.