Dynamic Host Configuration Protocol (DHCP) is an application layer protocol used to distribute various network configuration parametersto devices on a TCP/IP network. – IP addresses, subnet masks, default gateways, DNS servers, etc. DHCP employs a client-server architecture; a DHCP client is configured to request network parameters from a DHCP server on the network. A DHCP server is configured with a pool of available IP addresses and assigns one of them to the DHCP client.
A Cisco router can be configured as a DHCP server. Here are the steps:
Exclude IP addresses from being assigned by DHCP by using the ip dhcp excluded-address FIRST_IP LAST_IP
Create a new DHCP pool with the ip dhcp pool NAME command.
Define a subnet that will be used to assign IP addresses to hosts with the network SUBNET SUBNET_MASK command.
Define the default gateway with the default-router IP command.
Define the DNS server with the dns-server IP address command.
(Optional) Define the DNS domain name by using the ip domain-name NAME command.
(Optional) Define the lease duration by using the lease DAYS HOURS MINUTES command. If you don’t specify this argument, the default lease time of 24 hours will be used.
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. 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.
To display information about the configured DHCP pools, you can use the show ip dhcp pool command:
Floor1#show ip dhcp poolPool Floor1DHCP :Utilization mark (high/low) : 100 / 0Subnet size (first/next) : 0 / 0Total addresses : 254Leased addresses : 1Excluded addresses : 1Pending event : none1 subnet is currently in the poolCurrent index IP address range Leased/Excluded/Total192.168.0.1 192.168.0.1 - 192.168.0.254 1 / 1 / 254
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.
Download our Free CCNA Study Guide PDF for complete notes on all the CCNA 200-301 exam topics in one book.
A Cisco router can be configured as a DHCP server. Here are the steps: Exclude IP addresses from being assigned by DHCP by using the ip dhcp excluded-address FIRST_IP LAST_IP. Create a new DHCP pool with the ip dhcp pool NAME command.
Using router as DHCP server is preferable choice. This is especially true for network setups that need to support DHCP for IPv4 and DHCP for IPv6 at the same time. Both IPv4 and IPv6 can be managed through the same management interface because almost all DHCP server suppliers support both protocols.
At times you may want to configure your TP-Link switch to act as the DHCP server of your network instead of using your router. This FAQ will show you how to do that. *Note: This FAQ assumes you are using a TP-Link ER605 SMB router. Actions on the router may vary depending on what you are using.
Yes, you can. In the DHCP admin tool, right-click on the server and select 'Add/Remove Bindings'. That lets you select which NICs the DHCP service will be offered on.
If the DHCP server and the DHCP clients are on different networks or subnets, you must configure the switch with the ip helper-address address interface configuration command. The general rule is to configure the command on the Layer 3 interface closest to the client.
You can configure a DHCP server only on an interface's primary IP address. The primary address on an interface is the address that is used by default as the local address for broadcast and multicast packets sourced locally and sent out the interface.
DHCP can, honestly, be anywhere. It's easier to manage an all-Microsoft stack with WAC and RMT, but the location of the DHCP server doesn't matter - as long as there's two of them set up correctly for redundancy .
After comparing DHCP vs static IP, it is undoubtedly that DHCP is the more popular option for most users as they are easier and cheaper to deploy. Having a static IP and guessing which IP address is available is really bothersome and time-consuming, especially for those who are not familiar with the process.
default-router address [address2 ... address8] (Optional) Specifies the IP address of the default device for a DHCP client. -The IP address should be on the same subnet as the client. -One IP address is required; however, you can specify up to eight IP addresses in one command line.
The DHCP server maintains a pool of IP addresses and leases an address to any DHCP-enabled client when it starts up on the network. Because the IP addresses are dynamic (leased) rather than static (permanently assigned), addresses no longer in use are automatically returned to the pool for reallocation.
Many routers and residential gateways have DHCP server capability. Most residential network routers receive a unique IP address within the ISP network. Within a local network, a DHCP server assigns a local IP address to each device.
The Dynamic Host Configuration Protocol (DHCP) is based on the Bootstrap Protocol (BOOTP), which provides the framework for passing configuration information to hosts on a TCP/IP network. DHCP adds the capability to automatically allocate reusable network addresses and configuration options to Internet hosts.
Typically, DHCP servers are centralized and are not present on every subnet. DHCP Relay provides a way for DHCP clients to communicate with DHCP servers when none are available on its local subnet. A Relay Agent uses IP routing to forward discover messages to a provisioned DHCP server.
Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy
Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.
We notice you're using an ad blocker
Without advertising income, we can't keep making this site awesome for you.