CCIE EI Mock Lab 1

Self-authored practice lab aligned to the CCIE Enterprise Infrastructure v1.1 exam topics. A Design module with 24 scenario-based items and a DOO module with 30 tasks (100 points) across campus, MPLS L3VPN, DMVPN, SD-WAN and SD-Access, including pre-seeded faults and full solutions.

  • Time 8 hours: Design 3 hours, DOO 5 hours
  • 24 Design items, 30 tasks, 5 sections
  • Self-graded, Design pass 18/24, DOO pass 75/100 points

Self-authored practice lab by RoutingBit, written against the public exam topics. This is not a real exam and contains no vendor exam content. Topology, addressing and requirements are entirely new.

This is a self-authored practice lab by RoutingBit. It is not a real exam and does not reproduce any Cisco exam content. The company, topology, device names, addressing, scenario and requirements are entirely new and only follow the public scope of the CCIE Enterprise Infrastructure v1.1 exam topics. Real exam content is covered by the Cisco NDA: do not post or ask for real exam content in the comments.

#Real exam structure and how to use this lab

The CCIE EI v1.1 lab exam is 8 hours long and has two modules taken back to back:

Module Duration Format
1. Design 3 hours Web-based, scenario-driven items: single answer, multiple answer, drag and drop. No device access. The scenario unfolds through emails and documents, and you cannot go back to a previous item.
2. Deploy, Operate, Optimize (DOO) 5 hours Hands-on: configure, troubleshoot and optimize devices to meet the requirements.

Cisco scores both modules and does not publish the passing score. Cisco has announced a new 1-hour AI DOO module for CCIE lab exams (Design reduced to 2 hours). Data Center goes first, and no effective date has been announced for CCIE EI yet. Check the official exam page before you book.

Exam topic weights in v1.1 and how this lab distributes the DOO points:

Exam topic domain Weight In this lab
1.0 Network Infrastructure 30% Section 1, 30 points
2.0 Software Defined Infrastructure 25% Section 3, 25 points
3.0 Transport Technologies and Solutions 15% Section 2, 15 points
4.0 Infrastructure Security and Services 15% Section 4, 15 points
5.0 Infrastructure Automation and Programmability 15% Section 5, 15 points

#Lab rules

  • Click Start to run the timer for module 1 (Design, 3 hours). When it expires the timer moves to module 2 (DOO, 5 hours) automatically. You can also click Next module when you finish Design early, as in the real exam: unused Design time is not added to DOO.
  • Design module: selecting an answer submits it immediately, and the page shows the correct answer and explanation. Multiple-answer and matching items have a "Submit answer" button. Read every "Additional information" box carefully, because later items depend on the new facts.
  • DOO module: 100 points in total, 30 tasks in 5 sections. Tick "Done" when you finish a task to add its points. Self-assessment: 18/24 correct in Design and 75 points in DOO is a self-defined readiness bar (Cisco does not publish a passing score).
  • Some tasks contain pre-seeded faults (marked "Troubleshoot" in the title). Do not assume the faults are only in the excerpts shown.
  • Later tasks can depend on earlier ones, even across sections. The "Related" line in each solution lists the dependencies.
  • Do not use static routes, PBR or additional GRE tunnels unless a task allows it. Do not modify the grey devices in the diagrams (Internet, ISP-2, SD-WAN controllers, servers).
  • All configuration must survive a reload. When a task says "ensure", the proctor verifies with show commands and real traffic.

You can build the DOO topology with Catalyst 8000v, Cat9kv and the SD-WAN controllers on CML or EVE-NG. Without a lab, write your configuration on paper before opening the solution.

Module 1. Design24 items

#Scenario: MedaVina Pharmaceuticals (fictitious)

MedaVina is a fictitious pharmaceutical company with:

  • Headquarters in Ho Chi Minh City: 3 buildings, about 2,500 users, IP cameras, guests.
  • Two data centers: DC1 in Ho Chi Minh City and DC2 in Binh Duong, connected by two Layer 3 DCI links.
  • 3 factories acquired from another company, running EIGRP, with a separate OT network.
  • 180 retail pharmacies, each with one router and card-payment POS terminals.

Current WAN: one carrier provides MPLS L3VPN to every site. 60 pharmacies also have DMVPN over 4G as backup. The whole network runs OSPF in a single area 0 with about 400 routers. IT reports that OSPF recalculates SPF constantly whenever a 4G link at a pharmacy flaps.

MedaVina network before the project, single-area OSPF over MPLS L3VPN with DMVPN over 4G as backup HQ and two DCsCurrent WANRemote sites HQ3 buildings, 2,500 users DC1HCMC DC2Binh DuongMPLS L3VPNsingle carrier4GDMVPN 3 factoriesEIGRP 180 pharmaciesPOS 60 with 4G DCI L3 Whole network: OSPF area 0, about 400 routers
MedaVina network before the project, single-area OSPF over MPLS L3VPN with DMVPN over 4G as backup

Project goals set by the CIO:

  1. Reduce dependency on a single carrier, with pharmacy WAN recovery under 1 minute.
  2. 99.99% availability at headquarters, with separation of users, IoT and guests.
  3. PCI DSS compliance for cardholder data at the pharmacies.
  4. Operations driven by automation, with minimal manual work on individual devices.
Item 1

Classify the information in the requirements

Choose 1

While reviewing the documents you note the following items. Which item is a constraint rather than a functional requirement?

Item 2

Quick fix for single-area OSPF

Choose 1

While the new WAN project is under way, the CIO wants to stop network-wide SPF runs caused by flapping 4G links at the pharmacies immediately, with the least change. Which option is most appropriate?

Item 3

Mechanism versus purpose

Match

Match each mechanism with its main purpose in MedaVina's WAN and campus design.

Item 4

POS traffic separation

Choose 1

Which design meets the compliance requirements for POS traffic over SD-WAN?

Item 5

TLOC color for 4G

Choose 1

Requirement: the 4G circuit must carry no data and as little control traffic as possible while the fiber is healthy. Which tunnel interface configuration is the best fit for 4G?

Item 6

Surviving loss of the controllers

Choose 2

IT asks: if both vSmart controllers are unreachable for 24 hours (dual DC outage), can the pharmacies keep forwarding data? Choose two changes that help the network survive this scenario.

Select 2 answers, then submit.
Item 7

Controller placement

Choose 1

MedaVina chooses on-premises controllers in the two DCs. Which placement is most appropriate?

Item 8

Migration order

Match

Match each activity with its logical position in the MPLS to SD-WAN migration plan, taking the 9-month constraint into account.

Item 9

Segmentation in SD-Access

Choose 1

Which approach meets both levels of segmentation in the meeting minutes?

Item 10

Border node type

Choose 1

The border switch pair connects both to the two DCs (known, specific networks) and to the Internet (unknown networks). Which border configuration is appropriate?

Item 11

Cameras that use Layer 2 broadcast

Choose 1

Legacy cameras need Layer 2 broadcast to find their recorder in the same IP subnet. Which design handles this without rebuilding the whole fabric?

Item 12

Multicast for the camera streams

Choose 1

About 40 screens watch the same camera stream, many of them behind different edge nodes. Which multicast transport in the fabric is the better fit?

Item 13

Control plane node

Choose 2

Choose two correct statements about the control plane node in the headquarters SD-Access design.

Select 2 answers, then submit.
Item 14

Inbound traffic engineering

Choose 1

Which option meets the inbound traffic requirement for both prefixes, with backup?

Item 15

Protecting the Internet BGP sessions

Choose 3

Choose three measures that should be applied on the eBGP sessions with the two ISPs.

Select 3 answers, then submit.
Item 16

DC preference for factory offices

Choose 1

Factory offices (service VPN 10) should prefer DC1 and only use DC2 when DC1 is down. Both DCs advertise the same application prefixes into OMP. How can this be done centrally, without changing each factory?

Item 17

Collecting counters every 10 seconds

Choose 1

Which collection method best meets requirement (1)?

Item 18

Model-driven management protocols

Match

Match each protocol with its characteristics.

Item 19

Pushing an ACL to 180 pharmacies

Choose 1

Which approach meets requirement (3): one change for all 180 pharmacies, with pre-checks and rollback?

Item 20

QoS for voice over fiber

Choose 1

Voice runs over a fiber circuit contracted at 50 Mbps on a 1 Gbps port. Which QoS design is correct on the pharmacy cEdge?

Item 21

IPv6 for the new POS

Choose 1

The new POS vendor requires IPv6 to the payment servers within 2 years. Many pharmacy Internet transports are IPv4 only. Which option carries the least risk?

Item 22

Rollback plan

Choose 2

Before the first pharmacy cutover night, which two items must the rollback plan include?

Select 2 answers, then submit.
Item 23

99.99% availability at headquarters

Choose 1

The budget covers only one of the following options. Which one contributes most to the 99.99% goal for the headquarters WAN connection?

Item 24

Prioritizing when requirements conflict

Choose 1

Near the end of the project, Finance proposes dropping the 4G circuits at the pharmacies to cut costs, replacing them with a second fiber circuit from the same carrier as the first. How should you respond?

Module 2. DOO: topology, addressing, initial configuration

The DOO module uses a different fictitious company: TRX Logistics, with headquarters in Hanoi (AS 65001), a data center in Da Nang (AS 65020), two legacy branches connected by DMVPN, two new warehouses on SD-WAN and a new building (Building B) on SD-Access. Headquarters and the DC are connected through an MPLS L3VPN carrier (AS 65100) that you must also configure.

#Physical topology

DOO physical topology, TRX Logistics with headquarters, Building B on SD-Access, the MPLS carrier, the DC, DMVPN branches and SD-WAN warehouses Hanoi HQ, AS 65001Building B, SD-AccessMPLS carrier, AS 65100Da Nang DC, AS 65020DMVPN branches, EIGRP 100SD-WAN warehouses CORE110.1.255.1 CORE210.1.255.2 HQ-R110.1.255.11 HQ-R210.1.255.12 SDW-HQsite 100 ACC1 ACC2 ISE, CC, NMSVLAN 99 FB-BCPborder + CP, VRF-lite FB-EDGE PE110.200.255.1 P110.200.255.3 PE210.200.255.2 InternetISP-2 LTE ControllersvManage, vBond, vSmart DC-R110.30.255.1 DC-R210.30.255.2 BR1 BR2 SDW-BR3site 300 SDW-BR4site 400 CORE1 to CORE2: Po1 (LACP) and L1
DOO physical topology, TRX Logistics with headquarters, Building B on SD-Access, the MPLS carrier, the DC, DMVPN branches and SD-WAN warehouses

Devices: CORE1, CORE2, ACC1, ACC2, FB-BCP and FB-EDGE are Catalyst 9000 switches (IOS-XE 17.x). HQ-R1, HQ-R2, PE1, P1, PE2, DC-R1, DC-R2, BR1 and BR2 are Catalyst 8000v routers in autonomous mode. SDW-HQ, SDW-BR3 and SDW-BR4 are Catalyst 8000v routers in controller mode (cEdge, IOS-XE 17.12), managed by vManage 20.12.

#Addressing

Loopback0 IPv4 addresses are shown in the diagram. Headquarters is dual stack: the IPv6 loopback of CORE1, CORE2, HQ-R1 and HQ-R2 is 2001:db8:1::X/128, where X is the last octet of the IPv4 loopback (CORE1 is 2001:db8:1::1, HQ-R1 is 2001:db8:1::11).

Link Side A Side B Subnet
L1 CORE1 Gi1/0/3 (.1) CORE2 Gi1/0/3 (.2) 10.1.0.0/30
L2 CORE1 Gi1/0/10 (.5) HQ-R1 Gi2 (.6) 10.1.0.4/30
L3 CORE2 Gi1/0/10 (.9) HQ-R2 Gi2 (.10) 10.1.0.8/30
L4 CORE1 Gi1/0/11 (.13) HQ-R2 Gi3 (.14) 10.1.0.12/30
L5 CORE2 Gi1/0/11 (.17) HQ-R1 Gi3 (.18) 10.1.0.16/30
L6 CORE1 Gi1/0/12 (.21) SDW-HQ Gi3 (.22) 10.1.0.20/30
L7 CORE2 Gi1/0/12 (.25) SDW-HQ Gi4 (.26) 10.1.0.24/30
L8 CORE1 Gi1/0/20 FB-BCP Gi1/0/1 VRF-lite trunk, VLAN 3001 10.1.3.0/30, VLAN 3002 10.1.3.4/30 (CORE1 .1, .5)
L9 HQ-R1 Gi1 (.2) PE1 Gi2 (.1) 172.16.11.0/30
L10 PE1 Gi1 (.1) P1 Gi1 (.2) 10.200.0.0/30
L11 P1 Gi2 (.5) PE2 Gi1 (.6) 10.200.0.4/30
L12 DC-R1 Gi1 (.2) PE2 Gi2 (.1) 172.16.31.0/30
L13 DC-R1 Gi2 (.1) DC-R2 Gi2 (.2) 10.30.0.0/30
HQ VLAN Name IPv4 IPv6 SVI (CORE1 / CORE2 / VIP)
10 USERS 10.1.10.0/24 2001:db8:1:10::/64 .2 / .3 / .1
20 VOICE 10.1.20.0/24 none .2 / .3 / .1
30 SERVERS 10.1.30.0/24 2001:db8:1:30::/64 .2 / .3 / .1
99 MGMT 10.1.99.0/24 none .2 / .3 / .1
999 NATIVE no addressing

Servers in VLAN 99: ISE (RADIUS, TACACS+) 10.1.99.40, Catalyst Center 10.1.99.50, telemetry, NetFlow and SNMP collector 10.1.99.60, syslog 10.1.99.70, NTP 10.1.99.10.

Internet and LTE connections Port Address / gateway
HQ-R2 Gi1 203.0.113.2/30, gw .1
BR1 Gi1 203.0.113.6/30, gw .5
BR2 Gi1 203.0.113.10/30, gw .9
DC-R2 Gi1 203.0.113.14/30, gw .13
SDW-HQ, SDW-BR3, SDW-BR4 (biz-internet) Gi1 203.0.113.18, .22, .26 /30, gw .17, .21, .25
HQ-R1 (LTE) Gi4 198.51.100.2/30, gw .1
SDW-HQ, SDW-BR3, SDW-BR4 (lte) Gi2 198.51.100.6, .10, .14 /30, gw .5, .9, .13
vManage, vBond, vSmart 192.0.2.10, 192.0.2.20, 192.0.2.30
ISP DNS used for probing (IP SLA) 192.0.2.53

DMVPN Tunnel100: 10.100.0.0/24, hub HQ-R2 .1, BR1 .21, BR2 .22, DC-R2 .32. Branch LANs: BR1 10.21.10.0/24, BR2 10.22.10.0/24. DC: 10.30.0.0/16 (applications 10.30.10.0/24, databases 10.30.20.0/24).

SD-WAN: organization-name TRX-LAB-EI, vBond 192.0.2.20. System IPs: SDW-HQ 1.1.1.100 (site 100), SDW-BR3 1.1.1.3 (site 300), SDW-BR4 1.1.1.4 (site 400). Service VPNs: 10 (office), 20 (PCI, POS terminals), 30 (guest). Warehouse LANs: BR3 10.43.10.0/24, 10.43.20.0/24, 10.43.30.0/24. BR4 10.44.10.0/24, 10.44.20.0/24, 10.44.30.0/24. The PCI servers at headquarters are on 10.1.120.0/24, directly attached to SDW-HQ Gi5 (VPN 20).

SD-Access Building B: fabric site HN-BLDG-B, IS-IS underlay built by LAN automation, FB-BCP Lo0 10.2.255.1, FB-EDGE Lo0 10.2.255.2. VN CORP (pool 10.2.10.0/24) and IOT (pool 10.2.50.0/24). The fabric uses AS 65002 and CORE1 acts as fusion device in AS 65003.

#Routing domains

DOO routing domains, two OSPF areas at headquarters, EIGRP over DMVPN, eBGP over the MPLS L3VPN and DMVPN, OMP for SD-WAN OSPF 1 area 0, OSPFv3OSPF area 10 NSSAeBGP over L3VPN (VRF TRX)EIGRP 100 and eBGP over Tunnel100OMP (SD-WAN), VPN 10, 20, 30DC, AS 65020 CORE1ABR, RP CORE2ABR HQ-R1ASBR, BGP HQ-R2ASBR, BGP, EIGRP SDW-HQOSPF <-> OMPMPLS L3VPNAS 65100 BR1EIGRP stub BR2EIGRP stub DC-R1 DC-R2BGP over tunnel SDW-BR3 SDW-BR4 eBGPeBGPbackup eBGPiBGPiBGP
DOO routing domains, two OSPF areas at headquarters, EIGRP over DMVPN, eBGP over the MPLS L3VPN and DMVPN, OMP for SD-WAN
  • OSPF process 1: area 0 contains all links between CORE1, CORE2, HQ-R1 and HQ-R2, plus the SVIs. Area 10 is an NSSA containing L6 and L7 to SDW-HQ (VPN 10 on SDW-HQ).
  • HQ-R1 and HQ-R2 are ASBRs: they redistribute BGP (DC) and EIGRP (branches) into OSPF. SDW-HQ is the ASBR of area 10: it redistributes OMP into OSPF.
  • DC-R1 and DC-R2 run OSPF 1 area 0 on L13 and the DC LANs (preconfigured and correct).

#Overlays: DMVPN and SD-WAN

DOO overlays, DMVPN phase 3 with hub HQ-R2 and SD-WAN with VPN 20 forced hub-and-spoke through SDW-HQ DMVPN Tunnel100, IPsec IKEv2SD-WAN, IPsec + BFD HQ-R2hub, NHRP redirect BR1spoke .21 BR2spoke .22 DC-R2spoke .32 SDW-HQhub for VPN 20 SDW-BR3 SDW-BR4 vSmart shortcutVPN 10, 20VPN 10, 20VPN 10 only Dashed: on-demand spoke-to-spoke tunnelVPN 30 (guest) uses local Internet breakout (DIA)
DOO overlays, DMVPN phase 3 with hub HQ-R2 and SD-WAN with VPN 20 forced hub-and-spoke through SDW-HQ

#Initial configuration

All devices have a hostname, IPv4 addresses on physical links and loopbacks as listed above, user admin with password Trx@2026 at privilege 15, and SSH enabled. The Catalyst 9000 switches already have the VLANs, SVIs and Layer 3 links. Part of the OSPF, LDP, DMVPN and SD-WAN configuration is in place and intentionally contains faults. The SD-WAN controllers are fully deployed, certificates are installed, and the device list (serial numbers) has been uploaded to vManage.

#DOO point distribution

Section Content Points
1 Network infrastructure: Layer 2, FHRP, OSPF, EIGRP, BGP, multicast 30
2 Transport: MPLS, L3VPN, DMVPN 15
3 SD-WAN and SD-Access 25
4 Infrastructure security and services 15
5 Automation and programmability 15

Section 1. Network infrastructure30 points

Task 1

Troubleshoot: HQ port channel and trunks

3 points

The NOC reports that Po1 between CORE1 and CORE2 is down, hosts in VLAN 20 on ACC1 intermittently lose their gateway, and CDP on ACC2 reports a native VLAN mismatch.

  1. Configure Po1 between CORE1 and CORE2 (Gi1/0/1 and Gi1/0/2 on both sides) to use LACP, with both sides actively negotiating.
  2. Ensure that every trunk at headquarters (Po1 and the four uplinks from ACC1 and ACC2) carries only VLANs 10, 20, 30 and 99. The native VLAN must be 999. Disable DTP.
  3. VLAN 1 must not be used for any user traffic.

Initial configuration excerpt:

CORE1# show run interface Gi1/0/1
interface GigabitEthernet1/0/1
 switchport mode trunk
 channel-group 1 mode active
CORE2# show run interface Gi1/0/1
interface GigabitEthernet1/0/1
 switchport mode trunk
 channel-group 1 mode on
ACC1# show run interface Gi1/0/2
interface GigabitEthernet1/0/2
 description to CORE2
 switchport trunk native vlan 999
 switchport trunk allowed vlan 10,30,99
 switchport mode trunk
Show solution

There are three faults. CORE2 uses mode on (static EtherChannel) while CORE1 runs LACP, so the bundle does not come up. ACC1 Gi1/0/2 is missing VLAN 20 on the trunk to CORE2, so when CORE2 is the HSRP active router for VLAN 20 (task t03) the IP phones lose their gateway. ACC2 does not have native VLAN 999 on one side.

Changing the mode on CORE2 requires removing and re-adding the channel group:

CORE2(config)# interface range GigabitEthernet1/0/1 - 2
CORE2(config-if-range)# no channel-group 1
CORE2(config-if-range)# channel-group 1 mode active

Consistent trunk configuration on both cores for Po1 and on the four uplinks of ACC1 and ACC2 (the core downlinks to the access switches are configured the same way):

interface Port-channel1
 switchport trunk native vlan 999
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 switchport nonegotiate
!
interface range GigabitEthernet1/0/1 - 2
 switchport trunk native vlan 999
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 switchport nonegotiate

Trap: the member interface configuration must match the port channel, otherwise the ports are suspended. Native VLAN 999 has no SVI and no hosts, which is how "VLAN 1 is not used" is achieved. You can add vlan dot1q tag native to tag the native VLAN as well, but it must be done on every switch on the trunk.

Verification:

show etherchannel summary          ! Po1(SU), Gi1/0/1(P) Gi1/0/2(P)
show lacp neighbor
show interfaces trunk              ! native 999, allowed 10,20,30,99 on every trunk
show cdp neighbors detail | include Native
Task 2

MST at headquarters

3 points
  1. Run MST on CORE1, CORE2, ACC1 and ACC2. Region TRX, revision 1. Instance 1 contains VLANs 10 and 30, instance 2 contains VLANs 20 and 99. All other VLANs remain in the IST.
  2. CORE1 must be the root for the IST and instance 1, CORE2 must be the root for instance 2. Each core is the backup root for the other instances. Do not use the root primary macro.
  3. User ports on ACC1 and ACC2 (Gi1/0/5 to Gi1/0/24) must move to forwarding immediately and must be err-disabled if a BPDU is received.
  4. The core ports facing the access switches must never become root ports.
Show solution

All switches must share the same region name, revision and VLAN mapping. A single difference puts that switch in its own region, falling back to compatibility mode and losing per-instance load sharing.

spanning-tree mode mst
spanning-tree mst configuration
 name TRX
 revision 1
 instance 1 vlan 10, 30
 instance 2 vlan 20, 99

Priorities (instead of root primary, because the macro is evaluated only once and does not hold when a new switch appears):

CORE1(config)# spanning-tree mst 0-1 priority 4096
CORE1(config)# spanning-tree mst 2 priority 8192
CORE2(config)# spanning-tree mst 2 priority 4096
CORE2(config)# spanning-tree mst 0-1 priority 8192

User ports and access-facing ports:

ACC1(config)# interface range GigabitEthernet1/0/5 - 24
ACC1(config-if-range)# spanning-tree portfast
ACC1(config-if-range)# spanning-tree bpduguard enable
!
CORE1(config)# interface range GigabitEthernet1/0/4 - 5    ! downlinks to ACC1, ACC2
CORE1(config-if-range)# spanning-tree guard root

Trap: guard root goes on the core ports facing down, not on the access uplinks. With MST, root guard acts per port for every instance. If an access switch has a lower priority (misconfiguration), the port goes root-inconsistent instead of changing the root.

Verification:

show spanning-tree mst configuration digest   ! same digest on all 4 switches
show spanning-tree mst 1                      ! CORE1 is root
show spanning-tree mst 2                      ! CORE2 is root
show spanning-tree inconsistentports
Task 3

Dual-stack HSRP with tracking

3 points
  1. Use HSRP version 2 for VLANs 10, 20, 30 and 99, with the VIP at .1 of each subnet. CORE1 is active for VLANs 10 and 30 (matching instance 1), CORE2 is active for VLANs 20 and 99.
  2. VLANs 10 and 30 also need an IPv6 gateway using HSRP, with the virtual address derived automatically from the link-local address.
  3. If the active core loses both uplinks to HQ-R1 and HQ-R2, the other core must become active within 3 seconds. When the uplinks recover, the original core must take the role back.
  4. Authenticate HSRP using MD5 with key string TrxHsrp.
Show solution

Tracking "both uplinks lost" uses a boolean or track list: the object only goes down when every member is down.

CORE1(config)# track 11 interface GigabitEthernet1/0/10 line-protocol
CORE1(config)# track 12 interface GigabitEthernet1/0/11 line-protocol
CORE1(config)# track 10 list boolean or
CORE1(config-track)#  object 11
CORE1(config-track)#  object 12

VLAN 10 on CORE1 (VLAN 30 is similar, VLANs 20 and 99 keep the default priority 100):

interface Vlan10
 ip address 10.1.10.2 255.255.255.0
 ipv6 address 2001:DB8:1:10::2/64
 standby version 2
 standby 10 ip 10.1.10.1
 standby 10 priority 110
 standby 10 preempt delay minimum 30
 standby 10 timers msec 250 msec 750
 standby 10 authentication md5 key-string TrxHsrp
 standby 10 track 10 decrement 20
 standby 106 ipv6 autoconfig
 standby 106 priority 110
 standby 106 preempt delay minimum 30
 standby 106 timers msec 250 msec 750
 standby 106 authentication md5 key-string TrxHsrp
 standby 106 track 10 decrement 20

CORE2 is configured the same way with priority 100 for VLANs 10 and 30 and priority 110 plus tracking for VLANs 20 and 99.

Trap: the IPv4 and IPv6 groups need different group numbers on the same interface. Priority 110 minus 20 gives 90, lower than the other core's 100, so failover happens. The 250/750 ms timers give sub-second failover, within the 3-second requirement. preempt delay lets OSPF converge before the role is taken back. The IPv6 gateway also needs router advertisements: HSRP for IPv6 sends RAs with the virtual address automatically.

Verification:

show standby brief
show standby vlan 10
show track 10
! Test: shut down Gi1/0/10 and Gi1/0/11 on CORE1, VLAN 10 moves to CORE2
Task 4

Troubleshoot: HQ OSPF

4 points
  1. OSPF process 1 must use Loopback0 as router ID. Area 0 contains L1 to L5, Loopback0 and the SVIs. Area 10 is an NSSA containing L6 and L7.
  2. All /30 links must run as point-to-point. Adjacencies must only form on links between routers.
  3. Authenticate area 0 using HMAC-SHA-256, key chain OSPF-KC, key 1, key string TrxOspf256.
  4. Currently CORE2 and HQ-R1 are stuck in EXSTART, and HQ-R2 is FULL with CORE2 but HQ-R2 has no routes learned from CORE2. Find and fix the problems.
Show solution

Two pre-seeded faults: HQ-R1 Gi3 has ip mtu 1400 while CORE2 uses 1500, so the DBD exchange stops at EXSTART/EXCHANGE. HQ-R2 Gi2 has ip ospf network point-to-point while CORE2 Gi1/0/10 is broadcast. Both sides use a 10-second hello so the adjacency reaches FULL, but the type 1 LSAs on each side describe the link differently (one as a transit network requiring a DR, one as point-to-point), the two-way check in SPF fails and no routes are installed.

Fix the MTU (or temporarily use ip ospf mtu-ignore, but fixing the MTU addresses the root cause):

HQ-R1(config)# interface GigabitEthernet3
HQ-R1(config-if)# no ip mtu 1400

Common configuration (sample from CORE1, the other routers are similar):

key chain OSPF-KC
 key 1
  key-string TrxOspf256
  cryptographic-algorithm hmac-sha-256
!
router ospf 1
 router-id 10.1.255.1
 passive-interface default
 no passive-interface GigabitEthernet1/0/3
 no passive-interface GigabitEthernet1/0/10
 no passive-interface GigabitEthernet1/0/11
 no passive-interface GigabitEthernet1/0/12
 area 10 nssa
!
interface range GigabitEthernet1/0/3, GigabitEthernet1/0/10 - 11
 ip ospf 1 area 0
 ip ospf network point-to-point
 ip ospf authentication key-chain OSPF-KC
interface GigabitEthernet1/0/12
 ip ospf 1 area 10
 ip ospf network point-to-point
interface Loopback0
 ip ospf 1 area 0
interface range Vlan10, Vlan20, Vlan30, Vlan99
 ip ospf 1 area 0

Trap: authentication here is per interface on the area 0 links and is not enabled on L6 and L7, because the task only asks for area 0 (enabling it there also violates the requirement). Every router in area 10 needs area 10 nssa, otherwise the N bit in the hello does not match and no adjacency forms. passive-interface default keeps the SVIs and loopbacks from sending hellos.

Verification:

show ip ospf neighbor                       ! every neighbor FULL/  -
show ip ospf interface brief                ! P2P on /30 links
show ip ospf interface Gi1/0/10 | include authentication|key
show ip route ospf
debug ip ospf adj                           ! only if you need to see MTU or authentication errors
Task 5

OSPFv3 for IPv6

3 points
  1. Run OSPFv3 using the IPv6 address family on CORE1, CORE2, HQ-R1 and HQ-R2, area 0, with the same router ID as OSPFv2.
  2. The links between devices must use link-local addresses only. Do not configure global IPv6 addresses on L1 to L5.
  3. Advertise Loopback0, VLAN 10 and VLAN 30. HQ-R1 must be able to ping the CORE1 VLAN 10 address 2001:db8:1:10::2.
Show solution
ipv6 unicast-routing
!
router ospfv3 1
 router-id 10.1.255.1
 address-family ipv6 unicast
  passive-interface default
  no passive-interface GigabitEthernet1/0/3
  no passive-interface GigabitEthernet1/0/10
  no passive-interface GigabitEthernet1/0/11
 exit-address-family
!
interface range GigabitEthernet1/0/3, GigabitEthernet1/0/10 - 11
 ipv6 enable
 ospfv3 1 ipv6 area 0
 ospfv3 network point-to-point
interface Loopback0
 ipv6 address 2001:DB8:1::1/128
 ospfv3 1 ipv6 area 0
interface range Vlan10, Vlan30
 ospfv3 1 ipv6 area 0

Trap: ipv6 enable creates a link-local address without a global address, and OSPFv3 runs entirely on link-local addresses. On Catalyst 9000, forgetting ipv6 unicast-routing means the switch does not route IPv6 even though OSPFv3 neighbors come up. OSPFv3 authentication, if required, uses IPsec (ospfv3 authentication ipsec spi ...). The task does not require it.

Verification:

show ospfv3 neighbor
show ipv6 route ospf
ping 2001:DB8:1:10::2 source Loopback0
Task 6

EIGRP named mode over DMVPN

3 points

Related: requires Tunnel100 from task t13.

  1. HQ-R2, BR1 and BR2 run EIGRP named mode TRX, AS 100, on Tunnel100 and the branch LANs. DC-R2 does not run EIGRP.
  2. The branches are stubs and advertise connected networks only.
  3. The hub must send only two routes to the branches: the default route 0.0.0.0/0 and 10.0.0.0/8.
  4. Use a 5-second hello and 15-second hold time on the tunnel. Authenticate with HMAC-SHA-256 using TrxEigrp.
Show solution

Hub:

router eigrp TRX
 address-family ipv4 unicast autonomous-system 100
  af-interface Tunnel100
   summary-address 0.0.0.0 0.0.0.0
   summary-address 10.0.0.0 255.0.0.0
   hello-interval 5
   hold-time 15
   authentication mode hmac-sha-256 TrxEigrp
  exit-af-interface
  topology base
  exit-af-topology
  network 10.100.0.0 0.0.0.255
  eigrp router-id 10.1.255.12
 exit-address-family

Spoke BR1 (BR2 is similar with 10.22.10.0):

router eigrp TRX
 address-family ipv4 unicast autonomous-system 100
  af-interface Tunnel100
   hello-interval 5
   hold-time 15
   authentication mode hmac-sha-256 TrxEigrp
  exit-af-interface
  network 10.100.0.0 0.0.0.255
  network 10.21.10.0 0.0.0.255
  eigrp router-id 10.21.255.1
  eigrp stub connected
 exit-address-family

Trap: the summary creates a Null0 route on the hub with AD 5. With a 0.0.0.0/0 summary, when HQ-R2's static default route (AD 1, task t24) is removed because the Internet is down, the AD 5 Null0 route overrides the OSPF default from HQ-R1 (AD 110) and HQ-R2 becomes a black hole. Avoid this by giving the default summary a high AD. Classic mode has ip summary-address eigrp 100 0.0.0.0 0.0.0.0 250, named mode uses summary-metric ... distance under topology base. With DMVPN phase 3, summarization at the hub still lets spokes talk directly thanks to NHRP redirect and shortcut (t13).

router eigrp TRX
 address-family ipv4 unicast autonomous-system 100
  topology base
   summary-metric 0.0.0.0/0 distance 250

Verification:

show eigrp address-family ipv4 neighbors
BR1# show ip route eigrp          ! only 0.0.0.0/0 and 10.0.0.0/8
HQ-R2# show ip route 0.0.0.0      ! still the real default, not Null0
show eigrp address-family ipv4 interfaces detail Tunnel100
Task 7

Redistribution into OSPF

4 points

Related: t04, t06, t08.

  1. HQ-R2 must redistribute EIGRP into OSPF, only the branch LANs (not the tunnel subnet), as a single summary 10.20.0.0/14, type E1, tag 100.
  2. HQ-R1 and HQ-R2 must redistribute the DC BGP route (10.30.0.0/16) into OSPF as type E1 with tag 65020. While the L3VPN path is healthy, every OSPF router at headquarters must reach the DC through HQ-R1. When the L3VPN fails, traffic must move to HQ-R2 without manual intervention.
  3. Do not redistribute OSPF into BGP.
Show solution

HQ-R2:

ip prefix-list BR-LAN seq 10 permit 10.21.0.0/16 le 24
ip prefix-list BR-LAN seq 20 permit 10.22.0.0/16 le 24
route-map EIGRP-TO-OSPF permit 10
 match ip address prefix-list BR-LAN
 set metric-type type-1
 set tag 100
!
ip prefix-list DC seq 10 permit 10.30.0.0/16
route-map BGP-TO-OSPF permit 10
 match ip address prefix-list DC
 set metric-type type-1
 set tag 65020
!
router ospf 1
 redistribute eigrp 100 route-map EIGRP-TO-OSPF
 redistribute bgp 65001 route-map BGP-TO-OSPF
 summary-address 10.20.0.0 255.252.0.0 tag 100

HQ-R1 only needs the BGP part.

The main trap is in item 2: while the L3VPN is healthy, HQ-R2 learns 10.30.0.0/16 from HQ-R1 over iBGP (local preference 200 in t08) and selects that iBGP route. By default IOS does not redistribute iBGP routes into an IGP, so only HQ-R1 injects the DC route into OSPF, exactly as required. When the L3VPN fails, HQ-R2's best path becomes the eBGP route over DMVPN and HQ-R2 redistributes it automatically. Do not add bgp redistribute-internal: HQ-R2 would then also inject the iBGP route into OSPF, and if the next hop resolves through OSPF this can create a loop.

The tag on the summary must be set in summary-address itself, the tags of the component routes are not inherited by the summary.

Verification:

CORE1# show ip route 10.20.0.0 255.252.0.0     ! O E1, tag 100
CORE1# show ip route 10.30.0.0                 ! O E1 via HQ-R1, tag 65020
CORE1# show ip ospf database external 10.30.0.0
! Test: shut down HQ-R1 Gi1, the DC route moves to HQ-R2
Task 8

HQ and DC BGP

4 points

Related: t12 (PE-CE), t13 (tunnel).

  1. HQ-R1 and HQ-R2 run iBGP in AS 65001 using Loopback0. DC-R1 and DC-R2 run iBGP in AS 65020 using Loopback0.
  2. eBGP over DMVPN: HQ-R2 (10.100.0.1) with DC-R2 (10.100.0.32). The eBGP sessions with PE1 and PE2 belong to task t12.
  3. Headquarters advertises a single route 10.1.0.0/16, the DC advertises a single route 10.30.0.0/16.
  4. Ensure that traffic between headquarters and the DC uses the L3VPN in both directions. DMVPN must only be used when the L3VPN is down. Do not use MED.
Show solution

HQ-R1 (network ... mask requires an exact match in the RIB, so create a Null0 route for the aggregate):

ip route 10.1.0.0 255.255.0.0 Null0
!
route-map FROM-VPN permit 10
 set local-preference 200
!
router bgp 65001
 bgp router-id 10.1.255.11
 neighbor 10.1.255.12 remote-as 65001
 neighbor 10.1.255.12 update-source Loopback0
 address-family ipv4
  network 10.1.0.0 mask 255.255.0.0
  neighbor 10.1.255.12 activate
  neighbor 10.1.255.12 next-hop-self
  neighbor 172.16.11.1 route-map FROM-VPN in

HQ-R2:

ip route 10.1.0.0 255.255.0.0 Null0
!
route-map TO-DC-BACKUP permit 10
 set as-path prepend 65001 65001 65001
!
router bgp 65001
 bgp router-id 10.1.255.12
 neighbor 10.1.255.11 remote-as 65001
 neighbor 10.1.255.11 update-source Loopback0
 neighbor 10.100.0.32 remote-as 65020
 address-family ipv4
  network 10.1.0.0 mask 255.255.0.0
  neighbor 10.1.255.11 activate
  neighbor 10.1.255.11 next-hop-self
  neighbor 10.100.0.32 activate
  neighbor 10.100.0.32 route-map TO-DC-BACKUP out

The DC side is symmetric: DC-R1 sets local preference 200 on routes received from PE2, and DC-R2 prepends toward HQ-R2.

Trap: over the L3VPN, the DC route arrives at headquarters with AS path 65100 65020, over DMVPN it is only 65020. Without local preference, headquarters prefers DMVPN because of the shorter AS path. The same applies toward the DC, so the DC side must be done as well. Prepending on HQ-R2 makes the DC choose correctly even before it sets local preference, and shows every other AS that the backup path is worse. The Null0 route for the aggregate does not black-hole traffic because the more specific routes are always preferred. The eBGP session over DMVPN is one hop, so ebgp-multihop is not needed.

Verification:

show bgp ipv4 unicast summary
show bgp ipv4 unicast 10.30.0.0     ! best via 172.16.11.1, LocPrf 200
DC-R1# show bgp ipv4 unicast 10.1.0.0
traceroute 10.30.10.1 source Loopback0
Task 9

Multicast at headquarters

3 points
  1. Enable multicast on CORE1, CORE2, HQ-R1 and HQ-R2. Run PIM sparse mode on L1 to L5, VLAN 10 and VLAN 30.
  2. The RP for 239.10.0.0/16 must be learned through BSR. The RP candidates are Loopback1 on CORE1 (10.1.255.101/32, preferred) and Loopback1 on CORE2 (10.1.255.102/32, backup). CORE1 and CORE2 are both BSR candidates.
  3. The 232.0.0.0/8 range runs SSM. Hosts in VLAN 10 must receive the (10.1.30.50, 232.1.1.1) stream from a camera in VLAN 30.
  4. HQ-R1 and HQ-R2 must only accept joins for 239.10.0.0/16 when the RP is one of the two addresses above.
Show solution

CORE1 (CORE2 is similar with Loopback1 10.1.255.102 and a worse priority):

ip multicast-routing
!
interface Loopback1
 ip address 10.1.255.101 255.255.255.255
 ip pim sparse-mode
 ip ospf 1 area 0
!
interface range GigabitEthernet1/0/3, GigabitEthernet1/0/10 - 11, Vlan10, Vlan30
 ip pim sparse-mode
interface Vlan10
 ip igmp version 3
!
ip access-list standard RP-RANGE
 permit 239.10.0.0 0.0.255.255
ip pim rp-candidate Loopback1 group-list RP-RANGE priority 10
ip pim bsr-candidate Loopback1 0 200
ip pim ssm default

CORE2 uses priority 20 (for RP candidates, the lower value is preferred) and bsr-candidate ... 0 100.

HQ-R1 and HQ-R2: ip multicast-routing, ip pim sparse-mode on the links to the cores, ip pim ssm default, and accept only the two valid RPs for the range:

ip access-list standard RP-RANGE
 permit 239.10.0.0 0.0.255.255
ip pim accept-rp 10.1.255.101 RP-RANGE
ip pim accept-rp 10.1.255.102 RP-RANGE

Trap: with BSR, the RP candidate priority prefers the lower value, while the BSR candidate priority prefers the higher value, and they are easy to swap. SSM requires IGMPv3 on the receiver side, so VLAN 10 needs ip igmp version 3. On Catalyst 9000, IGMP snooping is enabled by default and needs no extra configuration. Loopback1 must be in OSPF for the RPF check toward the RP.

Verification:

show ip pim rp mapping              ! 239.10.0.0/16 -> 10.1.255.101, learned via BSR
show ip pim bsr-router
show ip mroute 232.1.1.1            ! (10.1.30.50, 232.1.1.1) with Vlan10 in the OIL
show ip igmp groups Vlan10

Section 2. Transport: MPLS, L3VPN, DMVPN15 points

Task 10

Troubleshoot: LDP in the carrier core

3 points

The carrier core (PE1, P1, PE2) already runs OSPF 100 area 0 on L10, L11 and the loopbacks.

  1. Enable MPLS LDP on L10 and L11. The LDP router ID must be Loopback0 on each router.
  2. Allocate labels only for /32 loopbacks, not for link subnets.
  3. PE1 and P1 currently do not establish an LDP session even though show mpls interfaces shows LDP running. Find and fix the problem.
  4. Ensure that traceroute mpls ipv4 10.200.255.2/32 from PE1 succeeds.
Show solution

Pre-seeded fault: P1 does not advertise Loopback0 into OSPF 100. LDP hellos (UDP 646, multicast) are still exchanged on the link so LDP discovery sees the neighbor, but the TCP session must be opened to the transport address, which defaults to the LDP router ID (P1 Loopback0). PE1 has no route to 10.200.255.3, so TCP never comes up.

P1(config)# interface Loopback0
P1(config-if)# ip ospf 100 area 0

Configuration on all three routers:

mpls label protocol ldp
mpls ldp router-id Loopback0 force
ip access-list standard LOOPBACKS
 permit 10.200.255.0 0.0.0.255
no mpls ldp advertise-labels
mpls ldp advertise-labels for LOOPBACKS
!
interface GigabitEthernet1
 mpls ip

Trap: you need no mpls ldp advertise-labels followed by advertise-labels for <acl> to actually restrict advertisement. Adding only the for line without disabling the default still advertises every prefix. Another option on IOS-XE is mpls ldp label with allocate global host-routes, which gives a similar result (labels only for /32s). force changes the router ID immediately, and existing LDP sessions restart.

Verification:

show mpls ldp discovery detail       ! transport address 10.200.255.3
show mpls ldp neighbor
show mpls forwarding-table           ! only /32 entries
traceroute mpls ipv4 10.200.255.2/32
Task 11

Troubleshoot: VRF and MP-BGP VPNv4

4 points
  1. On PE1 and PE2 create VRF TRX, RD 65100:10, route target import and export 65100:10. Assign Gi2 on PE1 and PE2 to the VRF.
  2. PE1 and PE2 run iBGP in AS 65100 using Loopback0 and exchange VPNv4 only. P1 does not run BGP.
  3. The DC routes already reach PE1, but the headquarters routes are missing from the VRF on PE2. Find and fix the problem.
Show solution

Pre-seeded fault: the VRF on PE2 imports the wrong RT 65100:100. The headquarters routes are exported by PE1 with RT 65100:10, and PE2 does not import them, so they never enter the VRF table even though they are received in the VPNv4 table (received and then dropped).

vrf definition TRX
 rd 65100:10
 address-family ipv4
  route-target export 65100:10
  route-target import 65100:10
 exit-address-family
!
interface GigabitEthernet2
 vrf forwarding TRX
 ip address 172.16.11.1 255.255.255.252     ! PE2 uses 172.16.31.1
!
router bgp 65100
 bgp router-id 10.200.255.1
 no bgp default ipv4-unicast
 neighbor 10.200.255.2 remote-as 65100
 neighbor 10.200.255.2 update-source Loopback0
 address-family vpnv4
  neighbor 10.200.255.2 activate
  neighbor 10.200.255.2 send-community extended

Fix on PE2:

PE2(config)# vrf definition TRX
PE2(config-vrf)# address-family ipv4
PE2(config-vrf-af)# no route-target import 65100:100
PE2(config-vrf-af)# route-target import 65100:10

Trap: applying vrf forwarding removes the IP address from the interface, so it must be configured again. send-community extended is required so that the RTs travel with the routes (recent IOS-XE adds it automatically when VPNv4 is activated, but always verify). After fixing the RT, clear bgp vpnv4 unicast * soft in may be needed for PE2 to re-evaluate.

Verification:

show bgp vpnv4 unicast all summary
show bgp vpnv4 unicast vrf TRX
show ip route vrf TRX
show bgp vpnv4 unicast all 10.1.0.0/16    ! Extended Community: RT:65100:10
Task 12

PE-CE sessions

4 points

Related: t08, t11.

  1. PE1 runs eBGP with HQ-R1 in VRF TRX, and PE2 runs eBGP with DC-R1. The CEs use the link addresses (L9, L12).
  2. BFD with a 300 ms interval and multiplier 3 on both PE-CE sessions. BGP must go down as soon as BFD reports a failure.
  3. PE1 must only accept prefixes within 10.1.0.0/16 with a length up to /24 from HQ-R1. PE2 does the same for the DC with 10.30.0.0/16.
  4. Each PE-CE session accepts at most 100 prefixes. When the limit is exceeded, the session must recover automatically after 5 minutes.
Show solution

PE1 (PE2 is similar):

ip prefix-list FROM-HQ seq 10 permit 10.1.0.0/16 le 24
!
interface GigabitEthernet2
 bfd interval 300 min_rx 300 multiplier 3
!
router bgp 65100
 address-family ipv4 vrf TRX
  neighbor 172.16.11.2 remote-as 65001
  neighbor 172.16.11.2 activate
  neighbor 172.16.11.2 fall-over bfd
  neighbor 172.16.11.2 prefix-list FROM-HQ in
  neighbor 172.16.11.2 maximum-prefix 100 restart 5

HQ-R1 (DC-R1 is similar with 172.16.31.1, AS 65100):

interface GigabitEthernet1
 bfd interval 300 min_rx 300 multiplier 3
router bgp 65001
 neighbor 172.16.11.1 remote-as 65100
 neighbor 172.16.11.1 fall-over bfd
 address-family ipv4
  neighbor 172.16.11.1 activate

Trap: BFD must be configured both on the interface (bfd interval) and in BGP (fall-over bfd), missing either one means no BFD session. On the PE, the PE-CE session lives under address-family ipv4 vrf, not at the global BGP level. maximum-prefix ... restart 5 is in minutes. The inbound prefix list needs le 24: with only permit 10.1.0.0/16 the more specific prefixes are blocked.

Verification:

show bfd neighbors details
show bgp vpnv4 unicast vrf TRX summary
show bgp vpnv4 unicast vrf TRX neighbors 172.16.11.2 | include Maximum|BFD
HQ-R1# show bgp ipv4 unicast 10.30.0.0     ! AS path 65100 65020
Task 13

Troubleshoot: DMVPN phase 3 with IPsec

4 points
  1. HQ-R2 is the hub, BR1, BR2 and DC-R2 are spokes. Tunnel100 uses Gi1 as source, tunnel key 100, NHRP network ID 100, NHRP authentication TrxNhrp.
  2. Protect the tunnel with IPsec using IKEv2 with pre-shared key TrxIke!26, ESP AES-GCM 256, transport mode.
  3. Run phase 3: traffic from BR1 to BR2 must go directly after the first few packets.
  4. Avoid fragmentation for TCP: IP MTU 1400, MSS 1360.
  5. BR2 currently cannot register with the hub even though the IKEv2 SA is up. Find and fix the problem.
Show solution

Pre-seeded fault: BR2 has tunnel key 1000. IPsec still builds the SA (IKE does not care about the GRE key), but the hub drops GRE packets with a different key, so BR2's NHRP registration never arrives. Change it to tunnel key 100.

IKEv2 and IPsec (identical on every router):

crypto ikev2 keyring DMVPN-KR
 peer ANY
  address 0.0.0.0 0.0.0.0
  pre-shared-key TrxIke!26
crypto ikev2 profile DMVPN-IKEV2
 match identity remote address 0.0.0.0
 authentication remote pre-share
 authentication local pre-share
 keyring local DMVPN-KR
crypto ipsec transform-set TS-GCM esp-gcm 256
 mode transport
crypto ipsec profile DMVPN-IPSEC
 set transform-set TS-GCM
 set ikev2-profile DMVPN-IKEV2

Hub HQ-R2:

interface Tunnel100
 ip address 10.100.0.1 255.255.255.0
 ip mtu 1400
 ip tcp adjust-mss 1360
 ip nhrp authentication TrxNhrp
 ip nhrp network-id 100
 ip nhrp map multicast dynamic
 ip nhrp redirect
 tunnel source GigabitEthernet1
 tunnel mode gre multipoint
 tunnel key 100
 tunnel protection ipsec profile DMVPN-IPSEC

Spoke BR1 (BR2 and DC-R2 are similar with their own addresses):

interface Tunnel100
 ip address 10.100.0.21 255.255.255.0
 ip mtu 1400
 ip tcp adjust-mss 1360
 ip nhrp authentication TrxNhrp
 ip nhrp network-id 100
 ip nhrp nhs 10.100.0.1 nbma 203.0.113.2 multicast
 ip nhrp shortcut
 tunnel source GigabitEthernet1
 tunnel mode gre multipoint
 tunnel key 100
 tunnel protection ipsec profile DMVPN-IPSEC

Trap: phase 3 needs both ip nhrp redirect on the hub and ip nhrp shortcut on the spokes. Spokes use gre multipoint to build tunnels to other spokes. The NHRP authentication string is limited to 8 characters. The network ID is only locally significant, but keep it identical for readability. Spokes need a default route toward the Internet (Gi1) to reach the hub NBMA address and those of other spokes.

Verification:

show dmvpn
show ip nhrp
show crypto ikev2 sa
show crypto ipsec sa | include peer|encaps|decaps
BR1# traceroute 10.22.10.1 source GigabitEthernet2   ! first via 10.100.0.1, then directly via 10.100.0.22
BR1# show ip route next-hop-override                  ! NHRP shortcut routes

Section 3. SD-WAN and SD-Access25 points

Task 14

Troubleshoot: onboarding the cEdges

4 points
  1. SDW-HQ, SDW-BR3 and SDW-BR4 must have control connections to vManage and vSmart over both colors, biz-internet (Gi1) and lte (Gi2).
  2. System parameters follow the addressing table. The lte color is a backup path, used only when biz-internet is down.
  3. SDW-BR4 currently has no control connections at all, and show sdwan control connection-history reports an error related to the organization name. SDW-BR3 has connections over biz-internet but none over lte.
Show solution

Two pre-seeded faults: SDW-BR4 has organization-name TRX-LAB-El (lowercase l instead of capital I), which does not match the controller certificates. SDW-BR3 is missing tunnel-interface under Gi2, so Gi2 is not a TLOC.

System and tunnel configuration (in vManage these are the System and VPN 0 Interface feature templates, below is the equivalent CLI generated on the cEdge, for example SDW-BR4):

system
 system-ip 1.1.1.4
 site-id 400
 organization-name TRX-LAB-EI
 vbond 192.0.2.20
!
interface GigabitEthernet1
 ip address 203.0.113.26 255.255.255.252
interface GigabitEthernet2
 ip address 198.51.100.14 255.255.255.252
ip route 0.0.0.0 0.0.0.0 203.0.113.25
ip route 0.0.0.0 0.0.0.0 198.51.100.13
!
sdwan
 interface GigabitEthernet1
  tunnel-interface
   encapsulation ipsec
   color biz-internet
   allow-service dhcp
   allow-service dns
   allow-service icmp
   allow-service netconf
   allow-service sshd
 interface GigabitEthernet2
  tunnel-interface
   encapsulation ipsec
   color lte
   last-resort-circuit

Trap: the organization name must match character for character and is case sensitive. When changing the organization name on a cEdge that is already configured, edit it in the template (the device is managed by vManage), or, if the device cannot join yet, fix it in the CLI and let the template overwrite it later. Also check the clock: a wrong time breaks certificate validation as well. The task requires control connections "over both colors", so do not set max-control-connections 0 on lte.

Verification:

show sdwan control local-properties     ! organization-name, system-ip, site-id
show sdwan control connections          ! vsmart, vmanage over both biz-internet and lte
show sdwan control connection-history   ! error code of previous attempts
show sdwan bfd sessions
show clock
Task 15

Templates and service VPNs

4 points

Related: t04 (area 10), t14.

  1. Use feature templates and device templates in vManage. Both warehouses share one device template, with the differences (addresses, system IP, site ID) as variables.
  2. At the warehouses: VPN 10 on Gi3, VPN 20 on Gi4, VPN 30 on Gi5, with the gateway at .1 of each subnet from the addressing table. VPN 30 provides DHCP to guests (.100 to .200), DNS 192.0.2.53.
  3. On SDW-HQ: VPN 10 on Gi3 and Gi4 runs OSPF area 10 NSSA with CORE1 and CORE2. VPN 20 on Gi5 (10.1.120.1/24).
  4. All connected networks in the service VPNs must be advertised into OMP.
Show solution

In vManage: create Cisco VPN feature templates for VPNs 10, 20 and 30, Cisco VPN Interface Ethernet templates for each LAN, a Cisco DHCP Server template for VPN 30 and a Cisco OSPF template for VPN 10 on SDW-HQ. Attach them to device templates DT-WH (for BR3 and BR4) and DT-HQ. Set addresses, system IP, site ID and hostname to Device Specific and fill them in with a CSV file when attaching the template.

CLI generated on SDW-BR3 (abridged):

vrf definition 10
 rd 1:10
 address-family ipv4
vrf definition 20
 rd 1:20
 address-family ipv4
vrf definition 30
 rd 1:30
 address-family ipv4
!
interface GigabitEthernet3
 vrf forwarding 10
 ip address 10.43.10.1 255.255.255.0
interface GigabitEthernet4
 vrf forwarding 20
 ip address 10.43.20.1 255.255.255.0
interface GigabitEthernet5
 vrf forwarding 30
 ip address 10.43.30.1 255.255.255.0
!
ip dhcp excluded-address vrf 30 10.43.30.1 10.43.30.99
ip dhcp excluded-address vrf 30 10.43.30.201 10.43.30.254
ip dhcp pool VPN30
 vrf 30
 network 10.43.30.0 255.255.255.0
 default-router 10.43.30.1
 dns-server 192.0.2.53
!
sdwan
 omp
  address-family ipv4 vrf 10
   advertise connected
  address-family ipv4 vrf 20
   advertise connected
  address-family ipv4 vrf 30
   advertise connected

SDW-HQ VPN 10 OSPF:

router ospf 10 vrf 10
 router-id 1.1.1.100
 area 10 nssa
interface GigabitEthernet3
 vrf forwarding 10
 ip address 10.1.0.22 255.255.255.252
 ip ospf 10 area 10
 ip ospf network point-to-point
interface GigabitEthernet4
 vrf forwarding 10
 ip address 10.1.0.26 255.255.255.252
 ip ospf 10 area 10
 ip ospf network point-to-point

Trap: OSPF on SDW-HQ must be point-to-point and NSSA to match t04, otherwise there is no adjacency (N bit) or there is a network type mismatch like the fault in t04. When attaching a device template, vManage checks that every variable has a value, one empty field blocks the push. A template that changes VPN 0 connectivity can drop the connection, and vManage rolls back automatically after the rollback timer.

Verification:

show sdwan omp routes vpn 10
show ip route vrf 10
show ip ospf neighbor                  ! on SDW-HQ, two FULL neighbors
show ip dhcp binding vrf 30
Task 16

VPN 20 through headquarters

4 points

Related: t15.

  1. VPN 10: the warehouses talk directly to each other (full mesh).
  2. VPN 20 (PCI): traffic between the two warehouses and from the warehouses to the PCI servers must go through SDW-HQ. The warehouses must not have any VPN 20 route pointing directly to the other warehouse.
  3. Use a single centralized control policy. Do not modify the cEdge templates.
Show solution

Policy on vSmart (vManage: Configuration > Policies > Centralized Policy, Custom Control). The CLI policy received by vSmart:

policy
 lists
  site-list WH
   site-id 300
   site-id 400
  vpn-list PCI
   vpn 20
  tloc-list HQ-TLOC
   tloc 1.1.1.100 color biz-internet encap ipsec
   tloc 1.1.1.100 color lte encap ipsec preference 50
 !
 control-policy PCI-VIA-HQ
  sequence 10
   match route
    vpn-list PCI
    site-list WH
   !
   action accept
    set
     tloc-list HQ-TLOC
    !
   !
  !
  default-action accept
 !
apply-policy
 site-list WH
  control-policy PCI-VIA-HQ out

vSmart rewrites the next hop (TLOC) of VPN 20 routes originated by the warehouses before sending them to the warehouses, replacing it with the TLOCs of SDW-HQ. SDW-HQ still receives the original routes (the policy is only applied outbound to site list WH), so it knows how to reach the destination warehouse.

Trap: do not reject the warehouse TLOCs to build hub-and-spoke, because that also removes the tunnel between the warehouses for VPN 10, against requirement 1. The policy is applied out to site list WH, not to site 100. The policy must be activated in vManage, and vSmart must be in vManage mode (a template is attached to vSmart) to receive it.

Verification:

SDW-BR3# show sdwan omp routes vpn 20     ! 10.44.20.0/24 with TLOC 1.1.1.100
SDW-BR3# show sdwan omp routes vpn 10     ! 10.44.10.0/24 with TLOC 1.1.1.4
SDW-BR3# traceroute vrf 20 10.44.20.1
vSmart# show running-config policy
vSmart# show omp routes vpn 20 advertised
Task 17

App-aware routing for voice

4 points

Related: t14, t16.

  1. In VPN 10, traffic with DSCP 46 must use biz-internet while that path meets: loss below 1%, latency below 150 ms, jitter below 30 ms.
  2. When biz-internet does not meet the SLA, move to lte. If no path meets the SLA, keep using biz-internet rather than dropping traffic.
  3. Measure the SLA over a 2-minute poll interval with 6 buckets.
Show solution
policy
 lists
  site-list ALL
   site-id 100
   site-id 300
   site-id 400
  vpn-list CORP
   vpn 10
 sla-class VOICE
  loss 1
  latency 150
  jitter 30
 app-route-policy AAR-CORP
  vpn-list CORP
   sequence 10
    match
     dscp 46
    !
    action
     sla-class VOICE preferred-color biz-internet
     backup-sla-preferred-color biz-internet
    !
   !
  !
 !
apply-policy
 site-list ALL
  app-route-policy AAR-CORP

Measurement on the cEdge (Cisco BFD feature template, or CLI):

bfd app-route poll-interval 120000
bfd app-route multiplier 6

Trap: lte on the cEdges is a last-resort-circuit (t14), so BFD tunnels over lte only come up when biz-internet is completely down. When biz-internet merely misses the SLA without failing, AAR has no lte path to move to. For item 2 to work as intended you must remove last-resort-circuit and reduce 4G usage another way (for example a data policy, or AAR that moves only voice to lte). This is the kind of cross-dependency graders like to check: document your choice. The solution keeps last-resort-circuit from t14 and accepts that AAR moves traffic when biz-internet fails. backup-sla-preferred-color is the path used when no path meets the SLA. The poll interval is in milliseconds.

Verification:

show sdwan app-route sla-class
show sdwan app-route stats
show sdwan policy from-vsmart app-route-policy
show sdwan bfd sessions
Task 18

Local Internet breakout for guests

3 points

Related: t15.

  1. VPN 30 at both warehouses must reach the Internet locally through biz-internet (DIA), with NAT to the interface address.
  2. Guests must not reach any RFC 1918 address, including across the overlay.
  3. If NAT on biz-internet is unavailable, guests may go through the overlay to headquarters (fallback).
Show solution

Enable NAT on the transport interface (VPN 0 Interface feature template, NAT section, Interface type). Generated CLI:

interface GigabitEthernet1
 ip nat outside
ip nat inside source list nat-dia-vpn-hop-access-list interface GigabitEthernet1 overload

Data policy on vSmart:

policy
 lists
  vpn-list GUEST
   vpn 30
  data-prefix-list RFC1918
   ip-prefix 10.0.0.0/8
   ip-prefix 172.16.0.0/12
   ip-prefix 192.168.0.0/16
 data-policy GUEST-DIA
  vpn-list GUEST
   sequence 10
    match
     destination-data-prefix-list RFC1918
    !
    action drop
    !
   !
   sequence 20
    match
     source-ip 0.0.0.0/0
    !
    action accept
     nat use-vpn 0
     nat fallback
    !
   !
  !
  default-action drop
 !
apply-policy
 site-list WH
  data-policy GUEST-DIA from-service

Trap: sequence order matters: block RFC 1918 first, then NAT to the Internet. The from-service direction is traffic coming from the LAN into the cEdge. "nat fallback" means that when DIA NAT is unavailable, packets follow the VPN 30 routing table (through the overlay), so headquarters needs an Internet path for VPN 30 if the fallback is to work in practice.

Verification:

show sdwan policy from-vsmart data-policy
show ip nat translations
show sdwan policy data-policy-filter
Task 19

OMP and OSPF on SDW-HQ

3 points

Related: t04, t07, t15.

  1. The warehouse OMP routes in VPN 10 must enter the headquarters OSPF domain with tag 200.
  2. The warehouses must receive through OMP: the headquarters networks and a default route provided by headquarters. No specific DC or DMVPN branch routes.
  3. Routes carrying tag 200 must not be advertised back into OMP.
Show solution

Because area 10 is an NSSA, type 5 LSAs (DC and branch routes from t07) do not enter area 10. SDW-HQ only sees the internal headquarters routes and needs a default: have CORE1 and CORE2 originate a type 7 default into area 10.

CORE1(config)# router ospf 1
CORE1(config-router)# area 10 nssa default-information-originate

SDW-HQ:

route-map OMP-TO-OSPF permit 10
 set tag 200
!
router ospf 10 vrf 10
 redistribute omp route-map OMP-TO-OSPF
!
sdwan
 omp
  address-family ipv4 vrf 10
   advertise connected
   advertise ospf external

advertise ospf (intra-area and inter-area routes by default) brings the headquarters networks into OMP. advertise ospf external adds the type 7 (N2) default from the two cores. The tag 200 routes are generated by SDW-HQ itself (its own type 7 LSAs), so they do not loop back into OMP. With several cEdges at headquarters, filter by tag (an OMP route policy or site-of-origin) so one cEdge does not reinject OMP routes redistributed by the other back into the overlay.

Trap: removing the NSSA, or configuring nssa no-summary without thinking, gives the warehouses either too many routes or no headquarters routes. Both cores are ABRs, and only one translates type 7 to type 5 (the higher router ID). This does not affect the requirements, but you should recognize it in the database.

Verification:

SDW-HQ# show ip route vrf 10 ospf
SDW-HQ# show sdwan omp routes vpn 10 advertised
SDW-BR3# show ip route vrf 10                  ! 0.0.0.0/0 and the 10.1.x networks
CORE1# show ip ospf database nssa-external
CORE1# show ip route 10.43.10.0                ! O N2, tag 200
Task 20

SD-Access Building B

3 points

Related: t04, t21 (ISE).

  1. In Catalyst Center: create fabric site HN-BLDG-B, add FB-BCP as control plane and border, and FB-EDGE as edge.
  2. Create VNs CORP and IOT and assign the IP pools from the addressing table. Enable Layer 2 flooding for the IOT pool.
  3. Border handoff with IP transit to CORE1: VLAN 3001 for CORP, VLAN 3002 for IOT, eBGP AS 65002 with CORE1 in AS 65003. CORE1 places CORP in the global routing table and keeps IOT in VRF IOT.
  4. Hosts in VN CORP must be able to ping 10.1.99.40 (ISE).
Show solution

In Catalyst Center (2.3.7 or later): Provision > Fabric Sites > create HN-BLDG-B, select FB-BCP with the roles Control Plane Node and Border Node (internal and external, IP transit AS 65002, Layer 3 handoff VLAN 3001 for CORP and 3002 for IOT). FB-EDGE gets the Edge Node role. Create the VNs under Policy > Virtual Network, add them to the fabric, and create an Anycast Gateway for pool 10.2.10.0/24 (CORP) and 10.2.50.0/24 (IOT, with Layer 2 Flooding enabled).

Catalyst Center generates the LISP, VXLAN and BGP configuration on FB-BCP. On CORE1 (fusion) configure manually:

vrf definition IOT
 rd 65003:50
 address-family ipv4
!
interface GigabitEthernet1/0/20
 switchport mode trunk
 switchport trunk allowed vlan 3001,3002
vlan 3001,3002
interface Vlan3001
 ip address 10.1.3.1 255.255.255.252
interface Vlan3002
 vrf forwarding IOT
 ip address 10.1.3.5 255.255.255.252
!
router bgp 65003
 bgp router-id 10.1.255.1
 neighbor 10.1.3.2 remote-as 65002
 address-family ipv4
  neighbor 10.1.3.2 activate
  network 10.1.99.0 mask 255.255.255.0
 address-family ipv4 vrf IOT
  neighbor 10.1.3.6 remote-as 65002
  neighbor 10.1.3.6 activate
!
router ospf 1
 redistribute bgp 65003 route-map FABRIC-TO-OSPF
ip prefix-list FABRIC seq 10 permit 10.2.10.0/24
route-map FABRIC-TO-OSPF permit 10
 match ip address prefix-list FABRIC

Trap: VN CORP is still a VRF (CORP) on the border, and placing VLAN 3001 in the global table on CORE1 is how the VRF is merged into the legacy network. The fabric underlay must reach Catalyst Center and ISE before provisioning. Layer 2 flooding requires a multicast underlay, and LAN automation builds PIM if the multicast option is selected. Pinging from a fabric host requires ISE to assign an SGT and a permitting policy: if the default is deny, it must be opened.

Verification on FB-BCP and FB-EDGE:

show lisp site                                  ! FB-BCP, registered EIDs
show lisp instance-id * ipv4 database           ! FB-EDGE
show device-tracking database
show vrf
show bgp ipv4 unicast summary                   ! CORE1, session with 10.1.3.2
show cts role-based permissions

Section 4. Infrastructure security and services15 points

Task 21

AAA with TACACS+

3 points

Apply to CORE1, CORE2, HQ-R1 and HQ-R2.

  1. SSH logins must authenticate with TACACS+ (ISE 10.1.99.40, key TrxTac!26), sourced from Loopback0. If ISE does not respond, use local users.
  2. Every privilege 15 command must be authorized by ISE and accounted.
  3. The console must use local users only and must not be subject to TACACS+ command authorization.
  4. Allow SSH only from VLAN 99 (10.1.99.0/24).
Show solution
aaa new-model
tacacs server ISE
 address ipv4 10.1.99.40
 key TrxTac!26
aaa group server tacacs+ TAC
 server name ISE
 ip tacacs source-interface Loopback0
!
aaa authentication login VTY group TAC local
aaa authentication login CON local
aaa authorization exec VTY group TAC local
aaa authorization commands 15 VTY group TAC local
aaa accounting commands 15 VTY start-stop group TAC
!
ip access-list standard MGMT-ONLY
 permit 10.1.99.0 0.0.0.255
line con 0
 login authentication CON
line vty 0 15
 access-class MGMT-ONLY in
 login authentication VTY
 authorization exec VTY
 authorization commands 15 VTY
 accounting commands 15 VTY
 transport input ssh

Trap: named method lists (VTY) instead of default keep the console unaffected. However NETCONF and RESTCONF (t26) use the default method lists, so add aaa authentication login default local and aaa authorization exec default local if the APIs must not depend on ISE. local after the group is only used when ISE does not respond, an ISE reject does not fall back to local. Before enabling authorization commands, keep a console or SSH session open so you do not lock yourself out.

Verification:

show tacacs
show aaa servers
test aaa group TAC admin Trx@2026 legacy
show running-config | section aaa|line vty
Task 22

Access port security

4 points

Apply to ACC1 and ACC2.

  1. Ports Gi1/0/5 to Gi1/0/24: 802.1X authentication, falling back to MAB when the host has no supplicant. One computer (VLAN 10) and one IP phone (VLAN 20) share each port. RADIUS is ISE 10.1.99.40, key TrxRad!26.
  2. DHCP snooping for VLANs 10 and 20. Only the uplinks to the cores are trusted. The DHCP server sits behind the cores (relay), and hosts must still obtain addresses.
  3. Dynamic ARP Inspection for VLANs 10 and 20.
  4. Block rogue IPv6 router advertisements from user ports.
Show solution
aaa new-model
radius server ISE
 address ipv4 10.1.99.40 auth-port 1812 acct-port 1813
 key TrxRad!26
aaa group server radius ISE-RAD
 server name ISE
aaa authentication dot1x default group ISE-RAD
aaa authorization network default group ISE-RAD
aaa accounting dot1x default start-stop group ISE-RAD
dot1x system-auth-control
!
interface range GigabitEthernet1/0/5 - 24
 switchport mode access
 switchport access vlan 10
 switchport voice vlan 20
 authentication host-mode multi-domain
 authentication order dot1x mab
 authentication priority dot1x mab
 authentication port-control auto
 authentication periodic
 mab
 dot1x pae authenticator
 dot1x timeout tx-period 10
 spanning-tree portfast
!
ip dhcp snooping vlan 10,20
no ip dhcp snooping information option
ip dhcp snooping
ip arp inspection vlan 10,20
interface range GigabitEthernet1/0/1 - 2
 ip dhcp snooping trust
 ip arp inspection trust
!
ipv6 nd raguard policy HOST
 device-role host
interface range GigabitEthernet1/0/5 - 24
 ipv6 nd raguard attach-policy HOST

Main trap: by default the switch inserts option 82 with a giaddr of 0 when snooping is enabled, and the relay on the cores (ip helper-address) drops these packets because it does not trust option 82. Hosts then never get an address. The common fixes are no ip dhcp snooping information option on the access switches or ip dhcp relay information trust-all on the cores. multi-domain allows one host in the data domain and one in the voice domain. ISE must return device-traffic-class=voice for the phones. On IOS-XE 17.x the legacy authentication commands still work, and you can convert to IBNS 2.0 with authentication convert-to new-style (a one-way operation).

Verification:

show access-session interface Gi1/0/5 details
show ip dhcp snooping binding
show ip arp inspection statistics vlan 10
show ipv6 nd raguard policy HOST
Task 23

Control plane protection on HQ-R1

2 points
  1. SSH to HQ-R1 is allowed only from VLAN 99, limited to 256 kbps. SSH from any other source is dropped.
  2. BGP and OSPF are not rate limited.
  3. ICMP to the router is limited to 64 kbps.
  4. All other control plane traffic is limited to 512 kbps.
Show solution
ip access-list extended CP-SSH-OK
 permit tcp 10.1.99.0 0.0.0.255 any eq 22
ip access-list extended CP-SSH-ALL
 permit tcp any any eq 22
ip access-list extended CP-ROUTING
 permit tcp any any eq bgp
 permit tcp any eq bgp any
 permit ospf any any
ip access-list extended CP-ICMP
 permit icmp any any
!
class-map match-all CM-ROUTING
 match access-group name CP-ROUTING
class-map match-all CM-SSH-OK
 match access-group name CP-SSH-OK
class-map match-all CM-SSH-BAD
 match access-group name CP-SSH-ALL
class-map match-all CM-ICMP
 match access-group name CP-ICMP
!
policy-map PM-COPP
 class CM-ROUTING
 class CM-SSH-OK
  police 256000 conform-action transmit exceed-action drop
 class CM-SSH-BAD
  drop
 class CM-ICMP
  police 64000 conform-action transmit exceed-action drop
 class class-default
  police 512000 conform-action transmit exceed-action drop
!
control-plane
 service-policy input PM-COPP

Trap: class order matters: the permitted SSH class must come before the generic SSH class. A class with no action means unlimited. Setting class-default too low drops the BFD sessions (UDP 3784) from t12 because BFD falls into class-default: 512 kbps is enough for 300 ms BFD, but if you lower it further, add a dedicated BFD class.

Verification:

show policy-map control-plane
show policy-map control-plane class CM-SSH-BAD
Task 24

Backup Internet with IP SLA and NAT

3 points

Related: t06, t07, t28.

  1. HQ-R2 is the primary Internet exit and HQ-R1 over LTE is the backup. Both perform NAT overload for 10.0.0.0/8 to their own Internet interface.
  2. HQ-R2 monitors the primary path with ICMP to 192.0.2.53 every 10 seconds through Gi1. After 10 consecutive seconds of failure it fails over, and after 30 consecutive seconds of success it fails back.
  3. Every OSPF router at headquarters uses the HQ-R2 default while the primary path is healthy and moves to HQ-R1 when it fails.
Show solution

HQ-R2:

ip sla 10
 icmp-echo 192.0.2.53 source-interface GigabitEthernet1
 frequency 10
ip sla schedule 10 life forever start-time now
track 10 ip sla 10 reachability
 delay down 10 up 30
!
ip route 192.0.2.53 255.255.255.255 203.0.113.1
ip route 0.0.0.0 0.0.0.0 203.0.113.1 track 10
!
router ospf 1
 default-information originate metric 10 metric-type 1
!
ip access-list standard NAT-INSIDE
 permit 10.0.0.0 0.255.255.255
interface GigabitEthernet1
 ip nat outside
interface range GigabitEthernet2 - 3
 ip nat inside
ip nat inside source list NAT-INSIDE interface GigabitEthernet1 overload

HQ-R1:

ip route 0.0.0.0 0.0.0.0 198.51.100.1
router ospf 1
 default-information originate metric 100 metric-type 1
interface GigabitEthernet4
 ip nat outside
interface range GigabitEthernet2 - 3
 ip nat inside
ip nat inside source list NAT-INSIDE interface GigabitEthernet4 overload

Main trap: when track 10 goes down, HQ-R2's static default is removed. Without a host route for 192.0.2.53, the probe follows the OSPF default to HQ-R1, goes out over LTE and succeeds, the track comes back up, the default returns, then fails again: the track flaps forever. The host route 192.0.2.53/32 via 203.0.113.1 (not tracked) keeps the probe on the primary path. default-information originate without always only generates a default when the RIB has a non-OSPF default, so HQ-R2 withdraws its default when the track is down. Also note the EIGRP default summary from t06 (AD 5) can take over when the static route disappears.

Verification:

show ip sla statistics 10
show track 10
CORE1# show ip route 0.0.0.0          ! O*E1 via HQ-R2
show ip nat translations
! Test: shut down the Internet port facing HQ-R2, after about 10 seconds CORE1 moves to HQ-R1
Task 25

NTP, syslog, SNMPv3, Flexible NetFlow

3 points

Apply to HQ-R2 (the other devices are similar, the grader only checks HQ-R2).

  1. NTP to 10.1.99.10 with authentication, key 1 TrxNtp. Do not synchronize with any other source.
  2. Syslog at informational level to 10.1.99.70, sourced from Loopback0, with millisecond timestamps.
  3. Read-only SNMPv3, user nms, SHA authentication TrxSnmpAuth, AES 128 encryption TrxSnmpPriv, polling allowed only from 10.1.99.60. Send traps to 10.1.99.60.
  4. Flexible NetFlow for traffic in and out of Gi1 (classic 5-tuple, input interface, byte and packet counters), exported as NetFlow v9 to 10.1.99.60 UDP 2055, active cache timeout 60 seconds.
Show solution
ntp authentication-key 1 md5 TrxNtp
ntp authenticate
ntp trusted-key 1
ntp server 10.1.99.10 key 1 source Loopback0
!
service timestamps log datetime msec localtime show-timezone
logging source-interface Loopback0
logging trap informational
logging host 10.1.99.70
!
ip access-list standard SNMP-NMS
 permit 10.1.99.60
snmp-server view NMS-VIEW iso included
snmp-server group NMS v3 priv read NMS-VIEW access SNMP-NMS
snmp-server user nms NMS v3 auth sha TrxSnmpAuth priv aes 128 TrxSnmpPriv
snmp-server host 10.1.99.60 version 3 priv nms
snmp-server enable traps
!
flow record FR-TRX
 match ipv4 source address
 match ipv4 destination address
 match ipv4 protocol
 match transport source-port
 match transport destination-port
 match interface input
 collect counter bytes long
 collect counter packets long
 collect timestamp absolute first
 collect timestamp absolute last
flow exporter FE-NMS
 destination 10.1.99.60
 source Loopback0
 transport udp 2055
 export-protocol netflow-v9
flow monitor FM-TRX
 record FR-TRX
 exporter FE-NMS
 cache timeout active 60
interface GigabitEthernet1
 ip flow monitor FM-TRX input
 ip flow monitor FM-TRX output

Trap: NTP needs all three commands, authentication-key, authenticate and trusted-key. Without trusted-key it never synchronizes. Some IOS-XE releases also offer SHA algorithms (for example hmac-sha2-256), so if SHA is mandatory, check ntp authentication-key 1 ? on the device. SNMPv3 users do not appear in the running configuration, use show snmp user. The NAT from t24 is on Gi1, so in the input direction NetFlow sees addresses already translated back to the inside addresses.

Verification:

show ntp associations detail
show ntp status
show logging | include Trap|10.1.99.70
show snmp user
show flow monitor FM-TRX cache
show flow exporter statistics

Section 5. Automation and programmability15 points

Task 26

NETCONF and RESTCONF on CORE1

3 points

Related: t21.

  1. Enable NETCONF (port 830) and RESTCONF (HTTPS) on CORE1, authenticated with local users, without depending on ISE.
  2. Use RESTCONF to retrieve the configuration of Gi1/0/10 using the ietf-interfaces model, in JSON.
  3. Use RESTCONF to change the description of Gi1/0/10 to Link to HQ-R1 without touching any other configuration on the interface.
Show solution
aaa authentication login default local
aaa authorization exec default local
netconf-yang
restconf
ip http secure-server
ip http authentication local
no ip http server

Retrieve the configuration (the / in the interface name must be encoded as %2F):

curl -k -u admin:'Trx@2026' \
  -H "Accept: application/yang-data+json" \
  "https://10.1.255.1/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1%2F0%2F10"

Change the description with PATCH (merges into the existing configuration, unlike PUT which replaces the whole node):

curl -k -u admin:'Trx@2026' -X PATCH \
  -H "Content-Type: application/yang-data+json" \
  -H "Accept: application/yang-data+json" \
  "https://10.1.255.1/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1%2F0%2F10" \
  -d '{"ietf-interfaces:interface": {"name": "GigabitEthernet1/0/10", "description": "Link to HQ-R1"}}'

Trap: NETCONF and RESTCONF use the default method lists. t21 used a named method list for the VTYs, so add default as local here so the APIs do not need ISE. The user must have privilege 15. Using PUT instead of PATCH deletes other interface attributes (for example the IP address) if they are not in the payload. A 204 No Content response means success.

Verification:

show netconf-yang status
show platform software yang-management process   ! confd, nesd, nginx all running
show running-config interface Gi1/0/10
Task 27

Python: BGP state over RESTCONF

3 points

Related: t08, t26 (enable RESTCONF the same way on HQ-R1 and HQ-R2).

Write a Python 3 script using the requests library that:

  1. Reads the router list from ROUTERS = ["10.1.255.11", "10.1.255.12"].
  2. For each router, retrieves BGP operational data over RESTCONF (model Cisco-IOS-XE-bgp-oper) and prints a table: router, neighbor, state, received prefixes.
  3. Exits with code 1 if any neighbor is not in the established state.
Show solution
#!/usr/bin/env python3
import sys
import requests
import urllib3

urllib3.disable_warnings()
ROUTERS = ["10.1.255.11", "10.1.255.12"]
AUTH = ("admin", "Trx@2026")
HDR = {"Accept": "application/yang-data+json"}
URL = "https://{}/restconf/data/Cisco-IOS-XE-bgp-oper:bgp-state-data/neighbors"

bad = 0
print(f"{'Router':<14}{'Neighbor':<16}{'State':<14}{'PfxRcvd':>8}")
for r in ROUTERS:
    try:
        resp = requests.get(URL.format(r), auth=AUTH, headers=HDR, verify=False, timeout=10)
        resp.raise_for_status()
    except requests.RequestException as e:
        print(f"{r:<14}ERROR: {e}")
        bad += 1
        continue
    nbrs = resp.json().get("Cisco-IOS-XE-bgp-oper:neighbors", {}).get("neighbor", [])
    for n in nbrs:
        state = n.get("connection", {}).get("state", "unknown")
        pfx = n.get("prefix-activity", {}).get("received", {}).get("current-prefixes", 0)
        print(f"{r:<14}{n.get('neighbor-id', '?'):<16}{state:<14}{pfx:>8}")
        if state != "established":
            bad += 1
sys.exit(1 if bad else 0)

Trap: field names in operational models change between IOS-XE releases, so pull a sample with curl first (or browse it in YANG Suite) before writing the script, and use .get() so the script does not crash on missing fields. Do not use verify=False outside a lab. You can also run the script on the device with Guest Shell (guestshell run python3 bgp.py), using the internal management address.

Verification: run the script and compare with show bgp ipv4 unicast summary on HQ-R1 and HQ-R2. Shut down the DMVPN session on DC-R2, the script must print idle or active and return 1 (echo $?).

Task 28

EEM on Internet failover

3 points

Related: t21, t24.

  1. On HQ-R2, when track 10 goes down: log a syslog message at warnings level PRIMARY INTERNET DOWN, CLEARING NAT, then clear all dynamic NAT translations.
  2. When track 10 comes back up: log a syslog message at notifications level PRIMARY INTERNET RESTORED.
  3. Save the configuration every day at 23:00.
  4. The applets must work even though commands are authorized through TACACS+ (t21).
Show solution
username eem privilege 15 secret 0 TrxEem!26
event manager session cli username eem
!
event manager applet INET-DOWN
 event track 10 state down
 action 1.0 syslog priority warnings msg "PRIMARY INTERNET DOWN, CLEARING NAT"
 action 2.0 cli command "enable"
 action 3.0 cli command "clear ip nat translation *"
!
event manager applet INET-UP
 event track 10 state up
 action 1.0 syslog priority notifications msg "PRIMARY INTERNET RESTORED"
!
event manager applet SAVE-2300
 event timer cron cron-entry "0 23 * * *"
 action 1.0 cli command "enable"
 action 2.0 cli command "write memory"

Trap: with aaa authorization commands enabled, commands run by EEM are also sent for authorization. event manager session cli username eem binds the applets to an authorized user (local, or a user permitted on ISE). Stale NAT translations through HQ-R2 keep sessions on the failed path until they time out, so they must be cleared on failover. clear ip nat translation * does not prompt for confirmation, if a command prompts, add pattern to the action.

Verification:

show event manager policy registered
show event manager history events
show logging | include INTERNET
! Test: shut down the Internet port facing HQ-R2, after about 10 seconds the log shows PRIMARY INTERNET DOWN
! A cron applet cannot be run manually with "event manager run" (only "event none" applets can)
Task 29

Model-driven telemetry

3 points
  1. HQ-R2 must send the 5-second CPU utilization and the Gi1 counters every 10 seconds to 10.1.99.60 port 57500, gRPC dial-out without TLS, kvGPB encoding.
  2. The source must be Loopback0.
Show solution
telemetry ietf subscription 101
 encoding encode-kvgpb
 filter xpath /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds
 source-address 10.1.255.12
 stream yang-push
 update-policy periodic 1000
 receiver ip address 10.1.99.60 57500 protocol grpc-tcp
!
telemetry ietf subscription 102
 encoding encode-kvgpb
 filter xpath /interfaces-ios-xe-oper:interfaces/interface[name="GigabitEthernet1"]/statistics
 source-address 10.1.255.12
 stream yang-push
 update-policy periodic 1000
 receiver ip address 10.1.99.60 57500 protocol grpc-tcp

Trap: update-policy periodic is in centiseconds, so 1000 is 10 seconds. Dial-out telemetry requires netconf-yang to be enabled (t26 does it on CORE1, here it must be enabled on HQ-R2). The source must have a route to the collector, and if the collector is in another VRF, add source-vrf.

Verification:

show telemetry ietf subscription 101 detail
show telemetry ietf subscription all
show telemetry connection all          ! Active state toward 10.1.99.60:57500
show telemetry internal connection
Task 30

Calling the vManage API

3 points

Write a Python 3 script using the vManage REST API at https://192.0.2.10 that:

  1. Logs in as apiuser (password read from the environment variable VMANAGE_PW) and retrieves the anti-CSRF token.
  2. Prints the list of cEdges: hostname, system IP, site ID, reachability.
  3. Prints the number of BFD sessions that are up for each cEdge.
  4. Logs out when finished.
Show solution
#!/usr/bin/env python3
import os
import requests
import urllib3

urllib3.disable_warnings()
BASE = "https://192.0.2.10"
s = requests.Session()
s.verify = False

r = s.post(f"{BASE}/j_security_check",
           data={"j_username": "apiuser", "j_password": os.environ["VMANAGE_PW"]})
if r.status_code != 200 or "<html" in r.text.lower():
    raise SystemExit("Login failed")
s.headers["X-XSRF-TOKEN"] = s.get(f"{BASE}/dataservice/client/token").text
s.headers["Content-Type"] = "application/json"

devices = s.get(f"{BASE}/dataservice/device").json()["data"]
for d in devices:
    if d.get("device-type") != "vedge":
        continue
    sid = d["system-ip"]
    bfd = s.get(f"{BASE}/dataservice/device/bfd/sessions", params={"deviceId": sid}).json()["data"]
    up = sum(1 for b in bfd if b.get("state") == "up")
    print(f"{d['host-name']:<12}{sid:<12}site {d['site-id']:<6}{d['reachability']:<12}BFD up {up}")

s.get(f"{BASE}/logout")

Trap: vManage returns the HTML login page with status 200 when the password is wrong, so check the content, not only the status code. Since 19.2, every POST, PUT and DELETE requires the X-XSRF-TOKEN header. In the API, IOS-XE cEdges still have device-type set to vedge. Do not hard-code passwords in the script. Log out so the session is not kept open: vManage limits the number of concurrent sessions per user.

Verification: run the script and compare with Monitor > Devices in vManage and show sdwan bfd sessions on each cEdge.