TechKnowSurge
Cisco CCNA 4.6 Cisco CCNA 1.6 Cisco CCNA 1.8
VideoNetworkFree

DEMO: DHCP Client

Cisco devices can be configured as DHCP clients to receive IPv4 or IPv6 addresses dynamically, rather than always acting as DHCP servers. This coverage includes the interface-level commands for DHCP and SLAAC assignment, along with key show commands for verification.

Complete this video to capture a CTF flag worth 1 point.

About this video

Cisco devices are not limited to the role of DHCP server — there are common network scenarios where a Cisco switch or router must instead act as a DHCP client, dynamically receiving an IP address from an upstream device. A typical example is an edge switch or router connecting to an ISP, where the service provider controls address assignment and the local administrator must configure the interface to accept whatever address is offered. At the interface level, enabling DHCP client behavior for IPv4 is accomplished with the ip address dhcp command, while ipv6 address dhcp performs the equivalent function for IPv6. For IPv6 specifically, SLAAC (Stateless Address Autoconfiguration) is generally the preferred approach, configured with the ipv6 address autoconfig command, which allows the interface to derive its address from router advertisements without relying on a dedicated DHCPv6 server. Once configured, several show commands are available to verify interface state and address assignment. The show ip interface command confirms whether an IPv4 address is pending negotiation via DHCP, show ipv6 dhcp interface displays DHCPv6 binding information, and show ipv6 interface brief provides a quick summary of IPv6 address assignments across interfaces. These tools are essential for confirming that dynamic address configuration is functioning as expected, particularly when the upstream server or provider infrastructure is not directly accessible for cross-verification.

What you'll learn

What's covered

Cisco DHCP Client Setup

Aligned to

Cisco CCNA
4.6 Configure and verify DHCP client and relay
1.6 Configure and verify IPv4 addressing and subnetting
1.8 Configure and verify IPv6 addressing and prefix

Key terms

Dynamic Host Configuration Protocol
DHCP
A network protocol that automatically assigns IP addresses and other configuration parameters to devices on a network.
IP Address
A numerical label assigned to each device connected to a network that uses the Internet Protocol.
Virtual LAN
VLAN
A logical grouping of network devices that behave as if they are on the same network regardless of physical location.
Stateless Address Autoconfiguration
SLAAC
An IPv6 mechanism that allows devices to automatically generate a globally unique IPv6 address using the network prefix from a Router Advertisement combined with a locally generated interface identifier, without requiring a DHCP server. SLAAC uses the EUI-64 process or a random interface ID to create the host portion of the address.
Dynamic Host Configuration Protocol version 6
DHCPv6
An extension of DHCP for IPv6 networks that provides stateful IPv6 address assignment and delivers configuration options such as DNS server addresses to IPv6 clients. DHCPv6 can operate alongside SLAAC to supply options that Router Advertisements cannot carry.

Topics

Dhcp Ipv6 Slaac Cisco Ios Network Configuration Networking

Transcript

We have talked a lot about setting up Cisco equipment as servers — that is, Cisco devices handing out IP addresses and information to the clients. But there are times when you want the Cisco device itself to be a client and be able to get an IP address from a server. So let's talk about how to set up Cisco devices to be DHCP clients and get IP addresses.

The Scenario

Right here we have a network that, let's say, we want to connect out to the outside world, so we're going to connect to some sort of ISP router that's out there. What they may do is say, we are going to give you an IP address, and it might be static, or it might be through some sort of dynamic host configuration protocol, or SLAAC, or something to that effect here on the outside world. So what we need to do is get onto that device to configure it, so it can accept an IP address or be able to autoconfigure an IP address.

Configuring the Interface

I'm on switch one, and what I need to do is get onto the interface that's going to accept the IP address. In this scenario right here — I'll bring up my network diagram — I'm on this switch right here, and I have a connection between here and the router, and let's say I want that connection to be set up for some sort of autoconfiguration or some sort of DHCP. That interface right there is interface VLAN 9, so that's the one that I'm going to configure here.

Let's get into that interface. I'm going to get into the global configuration mode, interface VLAN 9. It's actually pretty easy to set up: ip address dhcp. What that does is set up the interface to accept an IPv4 address via DHCP.

Then the similar command is ipv6 address dhcp, and now we'll accept an IPv6 address from a DHCP server. Now, we know that typically we want to try to avoid using DHCP servers — I mean, we prefer, I'll put it that way, we prefer using SLAAC for this interface instead. So the command for using SLAAC would be ipv6 address autoconfig. Now that's set up for it.

Show Commands

Some of the show commands that we would use for troubleshooting, or to take a look at the settings, are going to be kind of boring here, because we don't have a DHCP server on the other side. But what I can do is just run through a couple of the commands that I'd use to take a look at the information.

Such as show ip interface, and then we're taking a look at VLAN 9, and then I could pick out different pieces of information. We can see internet address will be negotiated versus DHCP, so that's interesting there.

Then what we can do is a show ipv6 dhcp interface. You can see, once again, I don't have a lot of information here because nothing has been set on here, but I can see some information about the binding.

Then I can also do a show ipv6 interface brief. This is one of my favorites here. We can see some information here, in which case we see some of the statically assigned stuff or the autoconfiguration stuff.

So there is just some show commands to do this. Once again, this would be to set up one of the interfaces to receive a dynamic IP address, or to autoconfigure that interface, so we can connect it into maybe an internet service provider or maybe some other device that we don't have control over.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →