This topic configure a router as a DHCPv4 client. Start learning CCNA 200-301 for free right now!!
Note: Welcome: This topic is part of Module 7 of the Cisco CCNA 2 course, for a better follow up of the course you can go to the CCNA 2 section to guide you through an order.
Table of Contents
Cisco Router as a DHCPv4 Client
There are scenarios where you might have access to a DHCP server through your ISP. In these instances, you can configure a Cisco IOS router as a DHCPv4 client. This topic walks you through that process.
Sometimes, Cisco routers in a small office or home office (SOHO) and branch sites have to be configured as DHCPv4 clients in a similar manner to client computers. The method used depends on the ISP. However, in its simplest configuration, the Ethernet interface is used to connect to a cable or DSL modem.
To configure an Ethernet interface as a DHCP client, use the ip address dhcp interface configuration mode command.
In the figure, assume that an ISP has been configured to provide select customers with IP addresses from the 184.108.40.206/27 network range after the G0/0/1 interface is configured with the ip address dhcp command.
To configure an Ethernet interface as a DHCP client, use the ip address dhcp interface configuration mode command, as shown in the example. This configuration assumes that the ISP has been configured to provide select customers with IPv4 addressing information.
The show ip interface g0/1 command confirms that the interface is up and that the address was allocated by a DHCPv4 server.
SOHO# show ip interface g0/0/1
GigabitEthernet0/0/1 is up, line protocol is up
Internet address is 220.127.116.11/27
Broadcast address is 255.255.255.255
Address determined by DHCP
Home Router as a DHCPv4 Client
Home routers are typically already set to receive IPv4 addressing information automatically from the ISP. This is so that customers can easily set up the router and connect to the internet.
For example, the figure shows the default WAN setup page for a Packet Tracer wireless router. Notice that the internet connection type is set to Automatic Configuration – DHCP. This selection is used when the router is connected to a DSL or cable modem and acts as a DHCPv4 client, requesting an IPv4 address from the ISP.
Various manufacturers of home routers will have a similar setup.
Syntax Checker – Configure a Cisco Router as DHCP Client
In this Syntax Checker activity, you will configure a Cisco router as DHCP client.
Enter interface configuration mode. Use g0/0/1 as the interface name.
Configure the interface to acquire IPv4 addressing information from the ISP.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.