Categories
Miscellaneous

Configure Cisco router as a DHCP client

Cisco routers can be configure as both DHCP servers and DHCP clients. An interface on a router that connects to the Internet Service Provider (ISP) is often configured as a DHCP client. This way, the ISP can provide the IP information to the client device.

To configure an interface as a DHCP client, the ip address dhcp interface mode command is used. Consider the following example:

Cisco router as DHCP client example

We have a small network consisting of a router and a DHCP server. We want to configure the interface Gi0/0 on the router as a DHCP client. This is how this is done:

R1(config)#int Gi0/0
R1(config-if)#ip address dhcp

We can verify that the Gi0/0 interface has indeed got its IP address from the DHCP server by running the show ip int brief command:

 

R1#show ip int brief
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     192.168.0.1     YES DHCP   up                    up 
GigabitEthernet0/1     unassigned      YES unset  administratively down down

The DHCP keyword in the method column indicates that the IP information were obtained by the DHCP server.

NOTE
If you want to configure a Cisco switch as a DHCP client, the ip address dhcp command is used under the VLAN 1 configuration mode.

Prerequisites for 200-301

200-301 is a single exam, consisting of about 120 questions. It covers a wide range of topics, such as routing and switching, security, wireless networking, and even some programming concepts. As with other Cisco certifications, you can take it at any of the Pearson VUE certification centers.

The recommended training program that can be taken at a Cisco academy is called Implementing and Administering Cisco Solutions (CCNA). The successful completion of a training course will get you a training badge.

Full Version 200-301 Dumps

Try 200-301 Dumps Demo