8.5.1 Lab - Configure DHCPv6 - ILM
8.5.1 Lab - Configure DHCPv6 - ILM
Instructor Note: Red font color or gray highlights indicate text that appears in the instructor copy only.
Topology
Addressing Table
Device Interface IPv6 Address
R1 G0/0/0
fe80::1
R1
G0/0/1 2001:db8:acad:1::1/64
R1 G0/0/1
fe80::1
R2 G0/0/0 2001:db8:acad:2::2/64
R2 G0/0/0
fe80::2
R2
G0/0/1 2001:db8:acad:3::1 /64
R2 G0/0/1
fe80::1
PC-A NIC DHCP
PC-B NIC DHCP
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Verify SLAAC address assignment from R1
Part 3: Configure and verify a Stateless DHCPv6 Server on R1
Part 4: Configure and verify a Stateful DHCPv6 Server on R1
Part 5: Configure and verify a DHCPv6 Relay on R2
Background / Scenario
The dynamic assignment of IPv6 global unicast addresses (GUA) can be configured the following three ways:
Stateless Address Auoconfiguration (SLACC)
Stateless Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
Stateful DHCPv6
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 18 www.netacad.com
Lab - Configure DHCPv6
When using SLACC to assign IPv6 addresses to hosts a DHCPv6 server is not used. Because a DHCPv6
server is not used when implementing SLACC, hosts are unable to receive additional critical network
information, including a domain name server (DNS) address as well as a domain name.
When using Stateless DHCPv6 to assign IPv6 addresses to host, a DHCPv6 server is used to assign the
additional critical network information, however the IPv6 address is assigned using SLACC.
When implementing Stateful DHCPv6, a DHCPv6 server assigns all network information, including the IPv6
address.
The determination of how hosts obtain they dynamic IPv6 addressing is dependent on flag setting contain
within the router advertisement (RA) messages.
In this scenario, the company has grown in size, and the network administrators can no longer assign IP
addresses to devices manually. Your job is to configure the R2 router to assign IPv6 addresses on two
different subnets connected to router R1.
Note: The routers used with CCNA hands-on labs are Cisco 4221 with Cisco IOS XE Release 16.9.4
(universalk9 image). The switches used in the labs are Cisco Catalyst 2960s with Cisco IOS Release 15.2(2)
(lanbasek9 image). Other routers, switches, and Cisco IOS versions can be used. Depending on the model
and Cisco IOS version, the commands available and the output produced might vary from what is shown in
the labs. Refer to the Router Interface Summary Table at the end of the lab for the correct interface identifiers.
Note: Ensure that the routers and switches have been erased and have no startup configurations. If you are
unsure contact your instructor.
Instructor Note: Refer to the Instructor Lab Manual for the procedures to initialize and reload devices
Required Resources
2 Routers (Cisco 4221 with Cisco IOS XE Release 16.9.4 universal image or comparable)
2 Switches (Cisco 2960 with Cisco IOS Release 15.2(2) lanbasek9 image or comparable) - Optional
2 PCs (Windows with a terminal emulation program, such as Tera Term)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet cables as shown in the topology
Instructions
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 18 www.netacad.com
Lab - Configure DHCPv6
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 18 www.netacad.com
Lab - Configure DHCPv6
router(config)# hostname R2
b. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered commands as
though they were host names.
R1(config)# no ip domain lookup
R2(config)# exit
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 18 www.netacad.com
Lab - Configure DHCPv6
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 18 www.netacad.com
Lab - Configure DHCPv6
Answer will depend upon the operating system configuration. Either the host generates an EUI-64
address based on the interface MAC, or the host generates a random 64-bit address.
b. Notice that there is no Primary DNS suffix. Also note that the DNS server addresses provided are “site
local anycast” addresses, and not unicast addresses, as would be expected.
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 18 www.netacad.com
Lab - Configure DHCPv6
d. Restart PC-A.
e. Examine the output of ipconfig /all and notice the changes.
C:\Users\Student> ipconfig /all
Windows IP Configuration
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 18 www.netacad.com
Lab - Configure DHCPv6
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 18 www.netacad.com
Lab - Configure DHCPv6
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 18 www.netacad.com
Lab - Configure DHCPv6
Switch S1
S1# show run
Building configuration...
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 18 www.netacad.com
Lab - Configure DHCPv6
!
interface FastEthernet0/7
shutdown
!
interface FastEthernet0/8
shutdown
!
interface FastEthernet0/9
shutdown
!
interface FastEthernet0/10
shutdown
!
interface FastEthernet0/11
shutdown
!
interface FastEthernet0/12
shutdown
!
interface FastEthernet0/13
shutdown
!
interface FastEthernet0/14
shutdown
!
interface FastEthernet0/15
shutdown
!
interface FastEthernet0/16
shutdown
!
interface FastEthernet0/17
shutdown
!
interface FastEthernet0/18
shutdown
!
interface FastEthernet0/19
shutdown
!
interface FastEthernet0/20
shutdown
!
interface FastEthernet0/21
shutdown
!
interface FastEthernet0/22
shutdown
!
interface FastEthernet0/23
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 18 www.netacad.com
Lab - Configure DHCPv6
shutdown
!
interface FastEthernet0/24
shutdown
!
interface GigabitEthernet0/1
shutdown
!
interface GigabitEthernet0/2
shutdown
!
interface Vlan1
no ip address
!
ip http server
ip http secure-server
!
banner motd ^C Authorized Users Only! ^C
!
line con 0
password 7 13061E010803
login
line vty 0 4
password 7 13061E010803
login
line vty 5 15
login
!
end
Switch S2
S2# show run
Building configuration...
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 18 www.netacad.com
Lab - Configure DHCPv6
no aaa new-model
system mtu routing 1500
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
interface FastEthernet0/1
shutdown
!
interface FastEthernet0/2
shutdown
!
interface FastEthernet0/3
shutdown
!
interface FastEthernet0/4
shutdown
!
interface FastEthernet0/5
!
interface FastEthernet0/6
shutdown
!
interface FastEthernet0/7
shutdown
!
interface FastEthernet0/8
shutdown
!
interface FastEthernet0/9
shutdown
!
interface FastEthernet0/10
shutdown
!
interface FastEthernet0/11
shutdown
!
interface FastEthernet0/12
shutdown
!
interface FastEthernet0/13
shutdown
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 18 www.netacad.com
Lab - Configure DHCPv6
!
interface FastEthernet0/14
shutdown
!
interface FastEthernet0/15
shutdown
!
interface FastEthernet0/16
shutdown
!
interface FastEthernet0/17
shutdown
!
interface FastEthernet0/18
!
interface FastEthernet0/19
shutdown
!
interface FastEthernet0/20
shutdown
!
interface FastEthernet0/21
shutdown
!
interface FastEthernet0/22
shutdown
!
interface FastEthernet0/23
shutdown
!
interface FastEthernet0/24
shutdown
!
interface GigabitEthernet0/1
shutdown
!
interface GigabitEthernet0/2
shutdown
!
interface Vlan1
no ip address
!
ip http server
ip http secure-server
!
banner motd ^C Authorized Users Only! ^C
!
line con 0
password 7 121A0C041104
login
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 18 www.netacad.com
Lab - Configure DHCPv6
line vty 0 4
password 7 121A0C041104
login
line vty 5 15
login
!
end
Router R1
R1# show run
Building configuration...
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 18 www.netacad.com
Lab - Configure DHCPv6
dns-server 2001:DB8:ACAD::254
domain-name STATEFUL.com
!
multilink bundle-name authenticated
!
spanning-tree extend system-id
!
!
redundancy
mode none
!
!
interface GigabitEthernet0/0/0
no ip address
ipv6 address FE80::1 link-local
ipv6 address 2001:DB8:ACAD:2::1/64
ipv6 dhcp server R2-STATEFUL
negotiation auto
!
interface GigabitEthernet0/0/1
no ip address
negotiation auto
ipv6 address FE80::1 link-local
ipv6 address 2001:DB8:ACAD:1::1/64
ipv6 nd other-config-flag
ipv6 dhcp server R1-STATELESS
!
interface Serial0/1/0
no ip address
shutdown
!
interface Serial0/1/1
no ip address
shutdown
!
ip forward-protocol nd
no ip http server
ip http secure-server
!
!
ipv6 route ::/0 2001:DB8:ACAD:2::2
!
!
control-plane
!
banner motd ^C Authorized Users Only! ^C
!
line con 0
password 7 030752180500
login
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 16 of 18 www.netacad.com
Lab - Configure DHCPv6
Router R2
R2# show run
Building configuration...
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 17 of 18 www.netacad.com
Lab - Configure DHCPv6
mode none
!
!
interface GigabitEthernet0/0/0
no ip address
ipv6 address FE80::2 link-local
ipv6 address 2001:DB8:ACAD:2::2/64
!
interface GigabitEthernet0/0/1
no ip address
negotiation auto
ipv6 address FE80::2 link-local
ipv6 address 2001:DB8:ACAD:3::1/64
ipv6 nd prefix 2001:DB8:ACAD:3::/64 2592000 604800 no-autoconfig
ipv6 nd managed-config-flag
ipv6 dhcp relay destination 2001:DB8:ACAD:2::1 GigabitEthernet0/0/0
!
interface Serial0/1/0
no ip address
!
interface Serial0/1/1
no ip address
!
ip forward-protocol nd
no ip http server
ip http secure-server
!
!
ipv6 route ::/0 2001:DB8:ACAD:2::1
!
!
control-plane
!
banner motd ^C Authorized Users Only! ^C
!
line con 0
password 7 045802150C2E
login
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
password 7 00071A150754
login
!
!
end
2017 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 18 of 18 www.netacad.com