IT141 · SESSION 7 · FIELD NOTES

SLAAC, DHCPv6 & the Backup Front Door

New Hire Day, part two. The IPv4 side of onboarding works: R1 leases addresses and D1 carries the requests. The IPv6 side has needed no server at all, because every router posts a sign that tells hosts how to set themselves up. This session reads that sign, and changes it. Then the front door fails: every HQ host has exactly one gateway, and Module 9 asks what happens when it goes dark.

New material Module 8 — SLAAC and DHCPv6; Module 9 — FHRP Also this week Midterm review Network change Shipping's IPv6 hosts get DNS from R2 Next session Module group exam 7–9; Module 10 — LAN Security Concepts

Modules 8–9

What Session 7 covers

The midterm review comes first. Then two modules, in NetAcad's order: how an IPv6 host gets its global address (SLAAC, stateless DHCPv6 and stateful DHCPv6), and configuring a Cisco router as a DHCPv6 server, client and relay; then first-hop redundancy, and how HSRP keeps a gateway alive when a router fails.

Cold open · Local Dispatch, New Hire Day (continued)

The twelve laptops have IPv4 addresses now. The Rookie checks one and frowns. "It has an IPv6 address too. Nobody gave it one." The Surveyor points at the wall by the Shipping door, where R2 posts a sign every few minutes. "Read the sign. It says: here's the street name, pick your own house number. That's all it took." The Rookie looks again. "It doesn't say where the phone book is." "No," she says. "So we'll add a line to the sign." Then the lights in the Front Desk wing flicker, and every laptop on VLAN 10 loses its way out of the building at once. One door, and it just closed. The Surveyor sighs. "And that's why big buildings have two."

Topology used on this page The network as Session 6 left it. Module 8's worked example is the Shipping LAN: R2's G0/0/1 (2001:db8:acad:20::1, link-local fe80::2) and PC-B, with SRV1 at 2001:db8:acad:20::100 as the DNS server. HQ stays on plain SLAAC from D1, for contrast. Module 9's example is a what-if: a second Layer 3 switch, D2, next to D1. It isn't part of the course network, and the network goes back to one gateway at the end of the page.

Midterm

Cross-module review

If you can answer these cold, Sessions 1–6 have landed. All of them come straight out of material already covered: this is recall, not new content.

Where to actually study Every session page has its own checkpoint, flashcards, quiz and glossary. The midterm is those checkpoints combined, not new material layered on top: Session 1, 2, 3, 4, 5 and 6. Then the drills: Will it trunk?, Which door?, the root election and Will it bundle?

Module 8.1

Three ways to a global address

A router's IPv6 addresses are typed in by hand with ipv6 address, and so are a few servers', like SRV1's. Typing a 128-bit address into every PC is slow and easy to get wrong, so hosts are normally set to get their IPv6 configuration automatically. Two things happen when they do.

CCNA 1 callback In CCNA 1 you met the three methods by name: SLAAC only, SLAAC with stateless DHCPv6, and stateful DHCPv6. You learned that even with stateful DHCPv6, the default gateway still comes from the router's advertisement. The RA flags and the commands that set them were left for CCNA 2. Here they are.

Every RA carries three flags. Together they tell the host which method to use. The host's operating system makes the final decision, but hosts normally follow them.

FlagNameSet to 1, it meansDefault on a Cisco router
AAddress AutoconfigurationBuild your own global address from the prefix in this RA (SLAAC)1
OOther ConfigurationGet other information, such as DNS servers, from a stateless DHCPv6 server0
MManaged Address ConfigurationGet your address from a stateful DHCPv6 server0
MethodFlagsGlobal address fromDNS and other information fromDefault gateway from
1 · SLAAC onlyA=1, O=0, M=0The host, using the RA's prefixNothing by DHCPv6. (An RA can carry a DNS server, but IOS doesn't add one by default.)Always the RA: the router's link-local address
2 · SLAAC + stateless DHCPv6A=1, O=1, M=0The host, using the RA's prefixA stateless DHCPv6 server
3 · Stateful DHCPv6A=0, M=1A stateful DHCPv6 serverThe same DHCPv6 server
The one that's different from DHCPv4 DHCPv6 has no default-router option. However a host gets its address, its gateway is the source address of the RA: the router's link-local address. That's why every IPv6 gateway on this site is fe80::1 or fe80::2, never a global address.

Module 8.2

SLAAC: the sign on the wall

SLAAC (Stateless Address Autoconfiguration) lets a host build its own global address with no DHCPv6 server at all. It's stateless: nothing keeps a list of which addresses are in use. It's how PC-C and PC-D have had IPv6 addresses ever since they joined the network.

Router solicitations and advertisements

R2 · default router advertisements on the Shipping LAN
R2# show ipv6 interface g0/0/1 GigabitEthernet0/0/1 is up, line protocol is up IPv6 is enabled, link-local address is FE80::2 No Virtual link-local address(es): Global unicast address(es): 2001:DB8:ACAD:20::1, subnet is 2001:DB8:ACAD:20::/64 Joined group address(es): FF02::1 FF02::2 FF02::1:FF00:1 FF02::1:FF00:2 MTU is 1500 bytes ... ND DAD is enabled, number of DAD attempts: 1 ND reachable time is 30000 milliseconds (using 30000) ND router advertisements are sent every 200 seconds ND router advertisements live for 1800 seconds ND advertised default router preference is Medium Hosts use stateless autoconfig for addresses.

Building the interface ID

The RA supplies the first 64 bits, the prefix. The host makes the last 64, the interface ID, in one of two ways:

MethodHowWho uses it
EUI-64The 48-bit MAC, split in half with fffe in the middle, and the seventh bit flippedCisco routers, for their own link-local addresses; many Packet Tracer hosts
Random64 random bits, chosen by the operating systemWindows by default (NetAcad's example is Windows 10). It keeps the MAC out of the address, for privacy.

Until today PC-B had a static IPv6 address, :20::10. Set its IPv6 configuration to automatic and it takes R2's offer. The MAC addresses on this page are made up, and so are the DUIDs and leased addresses further down.

PC-B · IPv6 set to automatic: SLAAC only
C:\> ipconfig /all FastEthernet0 Connection:(default port) Connection-specific DNS Suffix..: it141.example Physical Address................: 0060.70AA.0020 Link-local IPv6 Address.........: FE80::260:70FF:FEAA:20 IPv6 Address....................: 2001:DB8:ACAD:20:260:70FF:FEAA:20 IPv4 Address....................: 192.168.20.102 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: FE80::2 192.168.20.1 DHCP Servers....................: 192.168.20.1 DHCPv6 IAID.....................: DHCPv6 Client DUID..............: ... DNS Servers.....................: :: 192.168.20.100 ...

Duplicate address detection

Before using an address it made itself, a host checks that no one else has it. This is DAD: the host sends an ICMPv6 Neighbor Solicitation (NS) for its own new address, to that address's solicited-node multicast group (ff02::1:ff plus the address's last 24 bits). If a Neighbor Advertisement (NA) comes back, someone already owns it, and the host must pick another interface ID. Silence means the address is free. With 264 possible interface IDs, a clash is very unlikely, but most operating systems run DAD on every unicast address anyway, however it was configured.

Module 8.3

How DHCPv6 works

When the RA says O=1 or M=1, the host still starts with RS and RA, then talks to a DHCPv6 server. DHCPv6 has its own messages, and they don't map one-to-one onto DORA.

PC-Bfe80:: only R2router + server 1 · RSto ff02::2 2 · RA A=0 M=1to ff02::1 3 · SOLICITto ff02::1:2 · UDP 547 4 · ADVERTISEUDP 546 5 · REQUEST 6 · REPLYaddress, DNS, domain
Figure 1. Stateful DHCPv6 on the Shipping LAN. Steps 1–2 are ICMPv6, the same as SLAAC; steps 3–6 are DHCPv6. The client sends from its link-local address to ff02::1:2, the all-DHCP-servers-and-relays group. Notice what's missing from the REPLY: a gateway. PC-B already has one, from step 2.
MessageFrom → toWhat it says
SOLICITClient → ff02::1:2"Is there a DHCPv6 server out there?" (like DHCPDISCOVER)
ADVERTISEServer → client"I can serve you." (like DHCPOFFER)
REQUESTClient → ff02::1:2, naming the server it chose"Send me the address and settings." (like DHCPREQUEST)
REPLYServer → clientThe address, if stateful, plus DNS servers and the domain name (like DHCPACK)
INFORMATION-REQUESTClient → ff02::1:2Stateless only: "I have an address; just send me the other settings." The server answers with a REPLY.

Module 8.4

Configure a stateless DHCPv6 server

PC-B builds its own address with SLAAC, but its IPv6 settings list no DNS server. A stateless DHCPv6 server on R2 fills that gap, and the address stays exactly as it is.

Five steps on R2:

  1. ipv6 unicast-routing, on since CCNA 1
  2. Create a pool with ipv6 dhcp pool
  3. Give it the options: dns-server and domain-name. No addresses: a stateless pool has none.
  4. Bind the pool to the LAN interface with ipv6 dhcp server
  5. Set the O flag on that interface with ipv6 nd other-config-flag. The A flag stays 1, so hosts keep using SLAAC.
R2 · a stateless DHCPv6 server for Shipping
R2# configure terminal R2(config)# ipv6 dhcp pool SHIPPING-STATELESS R2(config-dhcpv6)# dns-server 2001:db8:acad:20::100 R2(config-dhcpv6)# domain-name it141.example R2(config-dhcpv6)# exit R2(config)# interface g0/0/1 R2(config-if)# ipv6 dhcp server SHIPPING-STATELESS ! ! Set the O flag: addresses by SLAAC, everything else from DHCPv6 R2(config-if)# ipv6 nd other-config-flag R2(config-if)# end
R2 · the O flag is on and the pool is bound
R2# show ipv6 interface g0/0/1 ... ND advertised default router preference is Medium Hosts use stateless autoconfig for addresses. Hosts use DHCP to obtain other configuration. R2# show ipv6 dhcp interface g0/0/1 GigabitEthernet0/0/1 is in server mode Using pool: SHIPPING-STATELESS Preference value: 0 Hint from client: ignored Rapid-Commit: disabled R2# show ipv6 dhcp pool DHCPv6 pool: SHIPPING-STATELESS DNS server: 2001:DB8:ACAD:20::100 Domain name: it141.example Active clients: 0 R2# show ipv6 dhcp binding R2#
PC-B · the same SLAAC address, now with an IPv6 DNS server
C:\> ipconfig /all ... IPv6 Address....................: 2001:DB8:ACAD:20:260:70FF:FEAA:20 ... Default Gateway.................: FE80::2 192.168.20.1 DHCPv6 Client DUID..............: 00-01-00-01-A1-B2-C3-D4-00-60-70-AA-00-20 DNS Servers.....................: 2001:DB8:ACAD:20::100 192.168.20.100 ...

Module 8.4

Configure a stateful DHCPv6 server

A stateful server leases the addresses too, and keeps a record of who has which. That's what an administrator wants when they need to know exactly which host had an address at a given time.

The same five steps, with three differences:

NetAcad's own DHCPv6 lab leases from a longer prefix inside the LAN's /64, and so does R2 here: 2001:db8:acad:20:aaaa::/80. The RA still advertises the /64, so the subnet doesn't change, but every lease starts …:20:aaaa:. IOS DHCPv6 has no excluded-address command, so this is how leases are kept away from R2's ::1 and SRV1's ::100: the IPv6 version of Session 6's "statics below .100" rule.

R2 · switching Shipping to stateful DHCPv6
R2# configure terminal R2(config)# ipv6 dhcp pool SHIPPING-STATEFUL R2(config-dhcpv6)# address prefix 2001:db8:acad:20:aaaa::/80 R2(config-dhcpv6)# dns-server 2001:db8:acad:20::100 R2(config-dhcpv6)# domain-name it141.example R2(config-dhcpv6)# exit R2(config)# interface g0/0/1 ! ! One DHCPv6 pool per interface: unbind the stateless pool, bind the stateful one R2(config-if)# no ipv6 dhcp server SHIPPING-STATELESS R2(config-if)# ipv6 dhcp server SHIPPING-STATEFUL ! ! M flag on: get your address from DHCPv6 R2(config-if)# ipv6 nd managed-config-flag ! ! A flag off: don't build a SLAAC address from this prefix R2(config-if)# ipv6 nd prefix default no-autoconfig ! ! Optional: O adds nothing once M is set R2(config-if)# no ipv6 nd other-config-flag R2(config-if)# end
R2 · the M flag is on
R2# show ipv6 interface g0/0/1 ... ND advertised default router preference is Medium Hosts use DHCP to obtain routable addresses.

PC-B doesn't drop its SLAAC address the moment the flags change: with A=0 it stops being refreshed and ages out. To see the clean result straight away, restart PC-B's connection: in Packet Tracer, set IPv6 to Static and back to Automatic; on a real Windows PC, disable and re-enable the network adapter. (ipconfig /renew6 alone would lease the new address but leave the old SLAAC one in place for now.)

PC-B · a leased address, the same gateway
C:\> ipconfig /all ... Link-local IPv6 Address.........: FE80::260:70FF:FEAA:20 IPv6 Address....................: 2001:DB8:ACAD:20:AAAA:8A2B:34D7:9F60 IPv4 Address....................: 192.168.20.102 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: FE80::2 192.168.20.1 DHCPv6 IAID.....................: 0A0B0C0D DHCPv6 Client DUID..............: 00-01-00-01-A1-B2-C3-D4-00-60-70-AA-00-20 DNS Servers.....................: 2001:DB8:ACAD:20::100 192.168.20.100 ...
R2 · now the server keeps state
R2# show ipv6 dhcp binding Client: FE80::260:70FF:FEAA:20 DUID: 00010001A1B2C3D4006070AA0020 ... IA NA: IA ID 0x0A0B0C0D, T1 43200, T2 69120 Address: 2001:DB8:ACAD:20:AAAA:8A2B:34D7:9F60 preferred lifetime 86400, valid lifetime 172800 expires at ... (172780 seconds) R2# show ipv6 dhcp pool DHCPv6 pool: SHIPPING-STATEFUL Address allocation prefix: 2001:DB8:ACAD:20:AAAA::/80 valid 172800 preferred 86400 (1 in use, 0 conflicts) DNS server: 2001:DB8:ACAD:20::100 Domain name: it141.example Active clients: 1 DHCPv6 pool: SHIPPING-STATELESS DNS server: 2001:DB8:ACAD:20::100 Domain name: it141.example Active clients: 0
CCNA 1 callback The gateway is still FE80::2, and it came from R2's RA, not from DHCPv6. A fully stateful host still learns its gateway from the router's advertisement, exactly as CCNA 1 said. That's why R2 keeps sending RAs, with M=1.

Drill

Which method?

Here are the RA lines on a router's LAN interface (with ipv6 unicast-routing on). What does a Windows host on that LAN end up doing?

Drill · Which method?

Module 8.4

A router as a DHCPv6 client

A Cisco router can be a DHCPv6 server, a relay agent, or a client. As a client, its interface takes its IPv6 configuration from a server on the link, just as a PC does. In Session 6 a scratch router leased an IPv4 address from R2; here the same router does it for IPv6.

A client interface needs a link-local address before it can send anything. A router makes one automatically when the interface gets a global address; with no global address yet, ipv6 enable makes one on its own, using EUI-64.

The scratch router plugs into S3 F0/4 on the Shipping LAN, as in Session 6.

Scratch router · a stateless DHCPv6 client on the Shipping LAN
Router(config)# ipv6 unicast-routing Router(config)# interface g0/0/0 ! ! Creates the link-local address (EUI-64) with no global address yet Router(config-if)# ipv6 enable Router(config-if)# ipv6 address autoconfig Router(config-if)# no shutdown Router(config-if)# end Router# show ipv6 interface brief GigabitEthernet0/0/0 [up/up] FE80::250:FFF:FE12:4 2001:DB8:ACAD:20:250:FFF:FE12:4 GigabitEthernet0/0/1 [administratively down/down] unassigned ... Router# show ipv6 dhcp interface g0/0/0 GigabitEthernet0/0/0 is in client mode Prefix State is IDLE (0) Information refresh timer expires in 23:59:46 Address State is IDLE List of known servers: Reachable via address: FE80::2 DUID: 00030001000164382A01 Preference: 0 Configuration parameters: DNS server: 2001:DB8:ACAD:20::100 Domain name: it141.example Information refresh time: 0 Prefix Rapid-Commit: disabled Address Rapid-Commit: disabled
Beyond the module With ipv6 unicast-routing on, the scratch router is a router too, and may start sending its own RAs onto the Shipping LAN. A host that hears two routers' RAs can end up with two gateways. That's one reason a stray router is a security problem (Session 9).
Scratch router · a stateful DHCPv6 client (while R2 is stateful)
Router(config)# interface g0/0/0 Router(config-if)# no ipv6 address autoconfig Router(config-if)# ipv6 address dhcp Router(config-if)# end Router# show ipv6 dhcp interface g0/0/0 GigabitEthernet0/0/0 is in client mode Prefix State is IDLE Address State is OPEN Renew for address will be sent in 11:59:43 List of known servers: Reachable via address: FE80::2 DUID: 00030001000164382A01 Preference: 0 Configuration parameters: IA NA: IA ID 0x00060001, T1 43200, T2 69120 Address: 2001:DB8:ACAD:20:AAAA:7E3A:1B02:66A9/128 preferred lifetime 86400, valid lifetime 172800 expires at ... (172783 seconds) DNS server: 2001:DB8:ACAD:20::100 Domain name: it141.example Information refresh time: 0 Prefix Rapid-Commit: disabled Address Rapid-Commit: disabled

Back to stateless

Shipping doesn't stay stateful. It ends this session where the stateless section left it: SLAAC for addresses, R2 for DNS.

R2 · back to stateless, the end state for Shipping
R2# clear ipv6 dhcp binding * R2# configure terminal R2(config)# interface g0/0/1 R2(config-if)# no ipv6 nd managed-config-flag R2(config-if)# no ipv6 nd prefix default no-autoconfig R2(config-if)# no ipv6 dhcp server SHIPPING-STATEFUL R2(config-if)# ipv6 dhcp server SHIPPING-STATELESS R2(config-if)# ipv6 nd other-config-flag R2(config-if)# exit R2(config)# no ipv6 dhcp pool SHIPPING-STATEFUL R2(config)# end R2# show ipv6 interface g0/0/1 ... Hosts use stateless autoconfig for addresses. Hosts use DHCP to obtain other configuration.

A host doesn't give up a leased address just because the M flag went away: it keeps it until it's released or expires. After PC-B renews, it's back on its EUI-64 SLAAC address, with R2's DNS server.

Module 8.4

DHCPv6 relay

A SOLICIT goes to ff02::1:2, a link-local multicast group, so it never leaves the LAN. A DHCPv6 server on another network needs a relay agent, the same job ip helper-address did for DHCPv4 in Session 6.

What if HQ's VLAN 10 got stateful DHCPv6 from R1, the way it gets DHCPv4? It isn't configured; HQ stays on plain SLAAC all term. VLAN 10's hosts hear D1's RAs, so D1 is where both the flags and the relay go.

D1 · what-if: flags and relay on the clients' SVI (not configured on HQ)
D1(config)# interface vlan 10 D1(config-if)# ipv6 nd managed-config-flag D1(config-if)# ipv6 nd prefix default no-autoconfig D1(config-if)# ipv6 dhcp relay destination 2001:db8:acad:ff03::1 D1(config-if)# end D1# show ipv6 dhcp interface vlan 10 Vlan10 is in relay mode Relay destinations: 2001:DB8:ACAD:FF03::1
R1 · what-if: the pool, bound where the relayed requests arrive
R1(config)# ipv6 dhcp pool HQ-VLAN10-V6 R1(config-dhcpv6)# address prefix 2001:db8:acad:10:aaaa::/80 R1(config-dhcpv6)# dns-server 2001:db8:acad:20::100 R1(config-dhcpv6)# domain-name it141.example R1(config-dhcpv6)# exit R1(config)# interface g0/0/1 R1(config-if)# ipv6 dhcp server HQ-VLAN10-V6

Module 9.1

First-hop redundancy: one gateway is one point of failure

Every host has one IPv4 default gateway. At HQ that's D1: 192.168.10.1 for Front Desk and 192.168.30.1 for Logistics. If D1 fails, those hosts can still reach each other inside their own VLAN, and nothing else. A second router on the same VLANs wouldn't help on its own, because no host would know to use it.

The fix is a virtual router. Two or more routers share one IP address and one MAC address, and hosts use that shared address as their gateway. One router does the forwarding; the others wait. When a host ARPs for the gateway, it gets the virtual MAC, so it never knows, or cares, which physical router is answering. That ability to recover from a failed gateway is first-hop redundancy, and the protocols that run it are FHRPs (first-hop redundancy protocols).

When the forwarding router fails:

  1. The standby router stops hearing hello messages from it.
  2. The standby router takes over the forwarding role.
  3. It takes over the virtual IP and the virtual MAC, so the hosts' ARP caches are still right, and they carry on with no change.
FHRPWhoseWhat to know
HSRP (Hot Standby Router Protocol)CiscoOne active router forwards and one standby waits. HSRP for IPv6 does the same for IPv6, with a virtual link-local gateway.
VRRPv2 (Virtual Router Redundancy Protocol)Open standardIPv4 only. One virtual router master forwards; the others are backups.
VRRPv3Open standardIPv4 and IPv6; works between vendors and scales better than v2
GLBP (Gateway Load Balancing Protocol)CiscoRedundancy and load balancing: every router in the group forwards some of the traffic. GLBP for IPv6 does the same for IPv6.
IRDP (ICMP Router Discovery Protocol)RFC 1256Legacy: hosts discover routers themselves. You'll only meet it as a name.

Module 9.2

HSRP: the backup front door

HSRP picks one active router to forward for the virtual address and one standby router to watch it and take over. Any others in the group just listen.

D1 · ACTIVEVlan10 .2priority 150 D2 · STANDBYVlan10 .3priority 100 hellosevery 3 s virtual router192.168.10.1 PC-Cgateway .1
Figure 2. The what-if at HQ, for VLAN 10. PC-C's gateway is still 192.168.10.1, but that's now the virtual router's address. D1 moves to .2 and forwards as the active router; D2 at .3 watches its hellos.

Who becomes active: priority and preemption

States and timers

StateWhat the router is doing
InitialJust started: HSRP was configured, or the interface just came up
LearnDoesn't know the virtual IP yet and hasn't heard the active router. Waiting.
ListenKnows the virtual IP, but is neither active nor standby. Listens to the hellos.
SpeakSends hellos and takes part in the election
StandbyNext in line. Sends hellos and watches the active router.
ActiveForwards traffic sent to the virtual IP and MAC

What it would look like at HQ

Module 9 is a concepts module: it names standby priority and standby preempt, and NetAcad's HSRP Packet Tracer activity walks through the rest. Here's the what-if, so the commands have a shape. It isn't added to the course network.

VLAN 10VLAN 30 (/26)
Virtual IP (what hosts use)192.168.10.1, unchanged192.168.30.1, unchanged
D1.2, priority 150, preempt.2, priority 150, preempt
D2.3, priority 100 (default).3, priority 100 (default)
HSRP group, version10, version 230, version 2
Virtual MAC0000.0c9f.f00a0000.0c9f.f01e
D1 · its own address moves to .2; the virtual IP keeps .1
D1(config)# interface vlan 10 D1(config-if)# ip address 192.168.10.2 255.255.255.0 D1(config-if)# standby version 2 D1(config-if)# standby 10 ip 192.168.10.1 D1(config-if)# standby 10 priority 150 D1(config-if)# standby 10 preempt D1(config-if)# exit D1(config)# interface vlan 30 D1(config-if)# ip address 192.168.30.2 255.255.255.192 D1(config-if)# standby version 2 D1(config-if)# standby 30 ip 192.168.30.1 D1(config-if)# standby 30 priority 150 D1(config-if)# standby 30 preempt D1(config-if)# end
D2 · the standby gateway
D2(config)# ip routing D2(config)# interface vlan 10 D2(config-if)# ip address 192.168.10.3 255.255.255.0 D2(config-if)# standby version 2 D2(config-if)# standby 10 ip 192.168.10.1 D2(config-if)# no shutdown D2(config-if)# exit D2(config)# interface vlan 30 D2(config-if)# ip address 192.168.30.3 255.255.255.192 D2(config-if)# standby version 2 D2(config-if)# standby 30 ip 192.168.30.1 D2(config-if)# no shutdown D2(config-if)# end
D1 · Active for both VLANs
D1# show standby brief P indicates configured to preempt. | Interface Grp Pri P State Active Standby Virtual IP Vl10 10 150 P Active local 192.168.10.3 192.168.10.1 Vl30 30 150 P Active local 192.168.30.3 192.168.30.1
D2 · Standby, waiting
D2# show standby brief P indicates configured to preempt. | Interface Grp Pri P State Active Standby Virtual IP Vl10 10 100 Standby 192.168.10.2 local 192.168.10.1 Vl30 30 100 Standby 192.168.30.2 local 192.168.30.1
D1 · the detailed view
D1# show standby vlan 10 Vlan10 - Group 10 (version 2) State is Active 2 state changes, last state change 00:04:12 Virtual IP address is 192.168.10.1 Active virtual MAC address is 0000.0c9f.f00a (MAC In Use) Local virtual MAC address is 0000.0c9f.f00a (v2 default) Hello time 3 sec, hold time 10 sec Next hello sent in 1.872 secs Preemption enabled Active router is local Standby router is 192.168.10.3, priority 100 (expires in 9.344 sec) Priority 150 (configured 150) Group name is "hsrp-Vl10-10" (default)

And from PC-C's side, after a ping to PC-D:

PC-C · the gateway is a virtual MAC
C:\> ipconfig ... IPv4 Address....................: 192.168.10.101 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: FE80::1 192.168.10.1 C:\> arp -a Internet Address Physical Address Type 192.168.10.1 0000.0c9f.f00a dynamic

PC-C changed nothing: the same gateway, from the same DHCPv4 pool. But its ARP entry for .1 is the virtual MAC, not D1's own.

Module 9.2

Failover: the front door closes

Back to the cold open: D1 goes dark. With one gateway, Front Desk would be cut off until someone fixed it. With HSRP, the gateway is back in about ten seconds. In this what-if that gets Front Desk as far as D2 can reach: the other HQ VLAN, but not off-site.

D1 loses power. D2 hears no hello for the 10-second hold time, and takes over both groups:

D2 · about 10 seconds after D1 lost power
%HSRP-5-STATECHANGE: Vlan10 Grp 10 state Standby -> Active %HSRP-5-STATECHANGE: Vlan30 Grp 30 state Standby -> Active D2# show standby brief P indicates configured to preempt. | Interface Grp Pri P State Active Standby Virtual IP Vl10 10 100 Active local unknown 192.168.10.1 Vl30 30 100 Active local unknown 192.168.30.1
PC-C · pinging PC-D across the failover
C:\> ping -t 192.168.30.10 Reply from 192.168.30.10: bytes=32 time<1ms TTL=127 Reply from 192.168.30.10: bytes=32 time<1ms TTL=127 Request timed out. Request timed out. Request timed out. Reply from 192.168.30.10: bytes=32 time<1ms TTL=127 ...

D1 comes back

When D1 is powered back on, it hears D2's hellos, sees that its own priority (150) is higher than D2's (100), and, because it's set to preempt, takes the active role back. D2 drops back to standby. show standby brief on D1 looks just like it did before the failure. Without standby 10 preempt, D1 would sit as standby until D2 failed.

Why the whole of D1, and not one SVI If only D1's Vlan10 SVI went down, VLAN 10 would move to D2 while VLAN 30 stayed on D1. Replies from VLAN 30 to VLAN 10 would then reach D1, which no longer has a VLAN 10 interface, and would bounce between D1 and R1 until they expired. Real networks prevent that with HSRP interface tracking, which is beyond this course. Failing the whole switch keeps the example clean.

Watch for this

Common Module 8 and 9 mistakes

Most Module 8 faults are an RA flag that says one thing while the server says another. Most HSRP faults are a router that's ready to take over but never does.

1 · A pool with no ipv6 dhcp server

The O flag is set, PC-B asks, and nobody answers: its IPv6 DNS stays ::. A DHCPv6 pool has to be bound to the interface. show ipv6 dhcp interface g0/0/1 should say in server mode and name the pool.

2 · A bound pool with no O flag

The server is ready, but the RA never tells hosts to ask. show ipv6 interface g0/0/1 has no "Hosts use DHCP to obtain other configuration" line.

3 · M without no-autoconfig

Hosts end up with two global addresses, one built and one leased. The trap: show ipv6 interface still says "Hosts use DHCP to obtain routable addresses", because that line follows the M flag, not A. Look for the ipv6 nd prefix default no-autoconfig line in show running-config interface g0/0/1.

4 · Flags on the wrong router

The flags belong to the router whose RAs the hosts hear: R2 for Shipping, D1 for HQ. Setting them on a DHCPv6 server on another network changes nothing for the hosts.

5 · Looking for a gateway in DHCPv6

There's no default-router in a DHCPv6 pool. The IPv6 gateway always comes from the RA. If a host has no IPv6 gateway, check the router's RAs, starting with ipv6 unicast-routing (FF02::2 missing from show ipv6 interface).

6 · Expecting a stateless server to list bindings

An empty show ipv6 dhcp binding on a stateless server is correct. Check the host's ipconfig /all instead.

7 · Priority without preempt

D1 has priority 150, fails, and comes back as standby, while D2 stays active. show standby brief on D1 has no P. Add standby 10 preempt.

8 · Equal priorities, and a surprise after a power cut

With no priority set, the router that comes up first stays active. After both restart together, the highest address wins: D2 (.3). Both show Pri 100. Set the priority, rather than leaving it to timing.

9 · Mismatched groups, or versions

Group 10 on D1, group 1 on D2, or version 2 on one and version 1 on the other: they never hear each other, so both go active, with standby unknown. Compare show standby vlan 10 on each.

10 · Hosts pointed at a real address

A host whose gateway is D1's own .2, not the virtual .1, loses its gateway when D1 fails, however well HSRP works. Check ipconfig and the DHCP pool's default-router.

End of session

What works now, and what doesn't

The routing and switching haven't changed. Shipping's IPv6 hosts now get a DNS server, and HQ still has a single gateway.

TestResultWhy
Everything that worked at the end of Session 6WorksNo routing or switching change today
PC-B's IPv6 addressSLAAC, from R2's RAsStateful was shown, then rolled back
PC-B's IPv6 DNS server2001:db8:acad:20::100R2's stateless DHCPv6 pool, and the O flag
R2 show ipv6 dhcp bindingEmptyStateless keeps no bindings
HQ hosts' IPv6Plain SLAAC from D1; no IPv6 DNS serverUnchanged. They resolve names over IPv4 DNS from DHCPv4.
HQ's gateway if D1 failsStill noD2 was a what-if. The course network still has one D1.
Protection against a rogue DHCP serverNoneSession 9: DHCP snooping
Coming up in Session 8 The module-group exam on Modules 7–9, then Module 10: everything that can go wrong at Layer 2 on purpose. MAC flooding, VLAN hopping, a rogue DHCP server, ARP spoofing. The network works. Now someone's trying to break it.

Recurring segment

The Ticket

Turn it into steps before you open the answer.

Ticket #141-07 · Priority: normal · From: Compliance

We need a record of which device had which IPv6 address on the Shipping LAN. Someone already "turned on DHCPv6" on R2 last week, but when we asked for the list, the record was empty. Please fix it.

One way to break it down
  1. "Turned on DHCPv6" but the record's empty: that's stateless DHCPv6 working as designed. A stateless server keeps no bindings. Nothing is broken; the request needs a different method.
  2. A record of addresses means the server must lease them: stateful DHCPv6.
  3. On R2: a pool with an address prefix (a /80 inside 2001:db8:acad:20::/64 keeps leases away from R2 and SRV1), the DNS server and domain, bound to G0/0/1 in place of the stateless pool.
  4. On G0/0/1: ipv6 nd managed-config-flag (M=1) and ipv6 nd prefix default no-autoconfig (A=0), or every PC keeps an unrecorded SLAAC address too.
  5. Restart each PC's network connection, or the old SLAAC addresses linger (unrecorded) until they age out.
  6. Verify: show ipv6 dhcp binding lists each PC; ipconfig /all shows one global address starting …:20:aaaa:; the gateway is still FE80::2.
  7. Tell Compliance what the record holds: each client's DUID and link-local address, and the leased address, not its MAC. It's a list of current leases, not a history: a lasting record needs the router's DHCPv6 events logged, which is beyond this course.

Before Session 8

Checkpoint: Modules 8 and 9

If you can do these cold, you're ready for the Modules 7–9 exam.

Study

Flashcards

Click to flip. Double-click to mark as known.

Check yourself

Sample questions

Pick an answer to see if you're right. Same style as the module-group exam.

Applied

Worked examples

Think it through before you expand the answer.

Reading the RA

What does this line mean?

show ipv6 interface g0/0/1 on a router ends with Hosts use stateless autoconfig for addresses. and nothing about DHCP. Which method are its hosts using, and what are the flags?

Show answer

SLAAC only: A=1, O=0, M=0, the default once ipv6 unicast-routing is on. With the O flag set, a second line would say hosts use DHCP for other configuration; with M set, the line would say DHCP is used for addresses.

Gateway

Where did fe80::2 come from?

R2 is a stateful DHCPv6 server, and PC-B's ipconfig /all shows an IPv6 address from it. The R2 pool has no gateway line in it at all, but PC-B's default gateway is fe80::2. Where did PC-B get it?

Show answer

From R2's RA. Every RA is sent from the router's link-local address, and hosts use that address as their IPv6 gateway. DHCPv6 has no default-router option, so a DHCPv6 pool can't set one: that's the difference from DHCPv4.

Flags

Why two addresses?

Someone sets up stateful DHCPv6 on a router with ipv6 nd managed-config-flag and a pool with an address prefix. The hosts now each have two global addresses in the same /64. Why?

Show answer

The A flag is still 1. The hosts follow both instructions: A=1 says build a SLAAC address, and M=1 says lease one from DHCPv6. ipv6 nd prefix default no-autoconfig sets A to 0, so hosts stop building one. An existing SLAAC address isn't withdrawn: it ages out, or disappears when the host reconnects.

Stateless

Where are the bindings?

R2 is running stateless DHCPv6, and PC-B has received its DNS server from it. show ipv6 dhcp binding on R2 is empty. Is something broken?

Show answer

No. A stateless server only hands out settings. It leases no addresses, so it has nothing to record. Check ipconfig /all on PC-B instead: the IPv6 DNS server is there.

Election

Who's active?

D1 (.2) and D2 (.3) both run HSRP on VLAN 10 with the default priority and no preemption. They boot at the same moment. Who's active? Then D1 is given priority 150, without preempt. Does anything change?

Show answer

With equal priority, the highest IPv4 address wins: D2 (.3). Giving D1 priority 150 changes nothing while D2 is up: without preemption, the active router stays active. D1 takes over only if D2 fails, or once standby preempt is added on D1.

Timers

How long is Front Desk cut off?

D1 is active for VLAN 10, with the default timers, and loses power. Roughly how long before D2 forwards for 192.168.10.1? Does PC-C need a new gateway address or a new ARP entry?

Show answer

Up to the 10-second hold time: D2 takes over when it has heard no hello from D1 for 10 seconds (hellos come every 3). PC-C changes nothing. D2 takes over the virtual IP and the virtual MAC, so PC-C's gateway and its ARP entry are still right.

Reference

Glossary & index

Every term from this session. Search, or jump by letter.