CCNA
CCNA
8.0 Introduction
8.0.1
8.0.1 Welcome
Welcome to SLAAC and DHCPv6!
SLAAC and DHCPv6 are dynamic addressing protocols for an IPv6 network. So, a little bit of configuring will
make your day as a network administrator lot easier. In this module, you will learn how to use SLAAC to allow
hosts to create their own IPv6 global unicast address, as well as configure a Cisco IOS router to be a
DHCPv6 server, a DHCPv6 client, or a DHCPv6 relay agent. This module includes a lab where you will
configure DHCPv6 on real equipment!
8.0.2
Table caption
Topic Title Topic Objective
IPv6 Global Unicast Address Assignment Explain how an IPv6 host can acquire its IPv6 configuration.
SLAAC Explain the operation of SLAAC.
Table caption
Topic Title Topic Objective
DHCPv6 Explain the operation of DHCPv6.
Configure DHCPv6 Server Configure a stateful and stateless DHCPv6 server.
7.3.1
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
209.165.201.0/27 network range after the G0/0/1 interface is configured with the ip address dhcp command.
a router configured as a DHCPv4 client is connected via G0/0/1 to a cable or DSL modem which is then
connected to the cloud which is then connected to an ISP router functioning as a DHCPv4 server
7.3.2
Configuration Example
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.
SOHO(config-if)# no shutdown
The show ip interface g0/0/1 command confirms that the interface is up and that the address was allocated
by a DHCPv4 server.
(output omitted)
7.3.3
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.
a router configured as a DHCPv4 client is connected via G0/0/1 to a cable or DSL modem which is then
connected to the cloud which is then connected to an ISP router functioning as a DHCPv4 server
G0/0/1SOHOISP
DHCPv4 ClientDHCPv4 ServerCable or DSL
Modem
7.4.1
7.4.1 Packet Tracer - Implement DHCPv4
7.4.2
7.4.3
The DHCPv4 server dynamically assigns, or leases, an IPv4 address to a client from a pool of addresses for
a limited period of time chosen by the server, or until the client no longer needs the address. The DHCPv4
lease process begins with the client sending message requesting the services of a DHCP server. If there is a
DHCPv4 server that receives the message it will respond with an IPv4 address and possible other network
configuration information. The client must contact the DHCP server periodically to extend the lease. This
lease mechanism ensures that clients that move or power off do not keep addresses that they no longer
need. When the client boots (or otherwise wants to join a network), it begins a four-step process to obtain a
lease: DHCPDISCOVER, then DHCPOFFER, then DHCPREQUEST, and finally DHCPACK. Prior to lease
expiration, the client begins a two-step process to renew the lease with the DHCPv4 server: DHCPREQUEST
then DHCPACK.
A Cisco router running Cisco IOS software can be configured to act as a DHCPv4 server. Use the following
steps to configure a Cisco IOS DHCPv4 server: exclude IPv4 addresses, define a DHCPv4 pool name, and
configure the DHCPv4 pool. Verify your configuration using the show running-config | section dhcp, show
ip dhcp binding, and show ip dhcp server statistics commands. The DHCPv4 service is enabled, by
default. To disable the service, use the no service dhcp global configuration mode command. In a complex
hierarchical network, enterprise servers are usually located centrally. These servers may provide DHCP,
DNS, TFTP, and FTP services for the network. Network clients are not typically on the same subnet as those
servers. In order to locate the servers and receive services, clients often use broadcast messages. A PC is
attempting to acquire an IPv4 address from a DHCPv4 server using a broadcast message. If the router is not
configured as a DHCPv4 server, it will not forward the broadcast. If the DHCPv4 server is located on a
different network, the PC cannot receive an IP address using DHCP. The router must be configured to relay
DHCPv4 messages to the DHCPv4 server. The network administrator releases all current IPv4 addressing
information using the ipconfig /release command. Next, the network administrator attempts to renew the
IPv4 addressing information with the ipconfig /renew command. A better solution is to configure R1 with
the ip helper-address address interface configuration command. The network administrator can use
the show ip interface command to verify the configuration. The PC is now able to acquire an IPv4 address
from the DHCPv4 server as verified with the ipconfig /all command. By default, the ip helper-
address command forwards the following eight UDP services:
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. Home routers are typically
already set to receive IPv4 addressing information automatically from the ISP. 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.
7.4.4