Course contents

Unit 5: Onboarding and trustLesson 5.5 (5 of 10 in this unit)30 of 62 in the Cisco SD-WAN course

Onboard a WAN Edge with PnP: production and lab

The PnP route step by step: order and Virtual Account, controller profile, Manager sync, configuration, site network and discovery, with the lab version for virtual routers and isolated networks.

Intermediate · 12 min read

You'll learn to carry out the PnP onboarding of an IOS XE WAN Edge in the right order, say who prepares what and when, and adapt the process for a lab where the router is virtual or the network is isolated.

Technical definition

PnP onboarding of a WAN Edge is the route in which the router is prepared in a portal and in the Manager before it ships. The router's serial number is known to Cisco's Plug and Play Connect portal, a controller profile there names the Validator and the organization, and the Manager has the device on its WAN Edge list. At the site, the router only needs power and an uplink, and it finds its way to the controllers by itself.

Ten routers, one afternoon, nobody on site who can type

A company opens ten branches. The routers are ordered together and shipped straight from the factory to the sites. The branch staff can plug in power and an Ethernet cable and nothing else. The work therefore moves to the days before shipping, and it is split across four people. If any one of the four tasks is missing, the router boots, finds nothing and waits.

Diagram
Who prepares what before the router boots
Who prepares what before the router boots
WhoTaskDone when
BuyerPlaces the order and assigns the Smart Account and Virtual Account to the devicesSerial numbers appear in PnP Connect under the right Virtual Account
Portal administratorKeeps the controller profile that names the Validator and the organizationA profile of the Validator type exists, with the organization name and the address the sites can reach
Manager administratorSyncs the Smart Account, makes the devices valid, sends the list to the controllers and attaches a configurationEach router is on the WAN Edge list, valid, and has a configuration attached
Site installerPowers the router and connects the uplinkThe uplink gives the router an address, a gateway and DNS
One person can hold several roles. The order of the rows is the order of the work.
Diagram
Four tasks before the router boots
Four tasks before the router boots

The buyer orders the devices and assigns the Virtual Account. The portal administrator keeps the controller profile. The Manager administrator syncs the list and attaches the configuration. The site installer powers the router and connects the uplink.

Before it boots
  • Buyerorder,Virtual Account
  • Portal admincontrollerprofile
  • Manager adminsync, attachconfiguration
  • Site installerpower,uplink cable
The router waits if any one of the four tasks is missing.

The production process

Diagram
PnP onboarding in production
PnP onboarding in production

Order the devices, make sure the controller profile exists, sync the Manager, attach a configuration, prepare the site uplink, then power the router and watch it connect.

  1. Orderserials inthe portal
  2. ProfileValidator,org name
  3. SyncManagergets list
  4. Attachconfiguration
  5. SiteDHCP, DNS,route
  6. Power onrouterconnects
Everything left of the last step happens before the router leaves the warehouse.
Diagram
PnP steps and the evidence for each
PnP steps and the evidence for each
StepWhat you doEvidence it worked
1 OrderAssign the right Virtual Account to the devices during the purchase. Cisco's guide warns that a wrong account causes problems laterHardware serials are published to PnP Connect automatically
2 ProfileWith Cisco-hosted controllers, the profile appears in the portal. With on-premises controllers you add it: type Validator, the organization name and the Validator address or nameThe profile is listed under the Virtual Account, and the organization name matches the controllers exactly
3 SyncIn the Manager, under Configuration then Devices, run Sync Smart Account with an account that has the administrator role on the Virtual Account. Repeat it when new devices are addedThe new routers appear on the WAN Edge list
4 AttachMake each router valid, send the list to the controllers, and attach a template or configuration group with the router's own valuesThe list shows the router as valid and shows a configuration attached
5 SiteMake sure the uplink gives an address, a gateway and DNS, and that outbound access to the PnP service and the Validator is allowedA laptop on the same uplink gets an address and resolves a name
6 Power onCable the router and apply power. Nothing is typedControl connections come up, and the Manager shows the router reachable
Menu names and the order of Make valid and Send to controllers vary by release. The Smart Account sync path is the one named in Cisco's onboarding guide.

Two details cause most of the avoidable delay. The first is the account: a router that was assigned to the wrong Virtual Account is invisible to the profile you prepared, however carefully the rest was done. The second is the organization name in the profile, which must match the controllers character for character. A mismatch passes discovery and fails at the certificate stage, which is far from the cause.

How the router finds the PnP server

A router that boots in controller mode with no configuration starts discovery. IOS XE PnP can learn the server in more than one way, and which methods a given release tries, and in what order, is release dependent. The table lists the three that matter.

Diagram
PnP discovery methods
PnP discovery methods
MethodHow it worksWhere it fits
DHCP option 43The DHCP server on the uplink hands the router the address of the PnP serverA site or a data centre where you control DHCP and run your own PnP server
DNS nameThe router builds a name from the domain it was given and looks it up. The name must resolve to the PnP serverA site where DNS is controlled and the domain is known
Cloud redirectionWith Internet access, the router contacts Cisco's PnP redirection service, which looks up the router's serial number and points it at the profileThe usual case for hardware shipped to a branch. It needs outbound HTTPS and DNS
Discovery methods are documented for IOS XE PnP in general. Confirm which ones your release and model use before you rely on one.
Diagram
Discovery by cloud or by your own server
Discovery by cloud or by your own server

With cloud redirection the router asks Cisco's service, which knows the serial number and sends it to the profile. With DHCP option 43 or DNS the router is pointed at a server you run.

Cloud redirectionNeeds DNS and HTTPSSerial number decides
DHCP 43 or DNSNeeds your own serverNetwork decides
Cloud redirection suits shipped hardware. Option 43 and DNS suit a network that you control end to end.

What the site network must give the router

Diagram
Site checklist for a PnP router
Site checklist for a PnP router
NeedWhyCheck before shipping
An address and a default gatewayThe router has no configuration, so it uses DHCP on its uplinkThe scope exists and has addresses left
A DNS serverCloud redirection and a Validator name both need DNSA name resolves from the uplink network
Outbound access to the PnP serviceThe router contacts it over HTTPS to learn its profileThe firewall allows the outbound request from the uplink
A path to the ValidatorThe Validator is the first controller the router talks to. See the NAT, DNS and firewall lesson for the portsThe Validator address or name is reachable through any NAT
A correct clockCertificates have dates. A clock that is far off makes valid certificates look expiredThe router can reach a time source, or the date is close to correct
The first three items are plain IP checks. Most stalled devices are stuck on one of them, not on an SD-WAN setting.
Diagram
What the uplink gives a PnP router
What the uplink gives a PnP router

The uplink must give the router an address and a gateway, a DNS server that resolves names, outbound access to the PnP service and the Validator, and a time that is close to correct.

Site uplink
  • AddressDHCP scope,gateway
  • DNSa nameresolves
  • OutboundHTTPS to PnP,path to Validator
  • Clockclose tocorrect
Four things come from the site network. None of them is an SD-WAN setting.

The first check, that the scope has addresses left, is easy to get wrong on a small uplink subnet. The gateway takes one usable address, each router takes one, and the laptop used to test the uplink needs one too. The table counts what is left on a few common sizes.

Diagram
Addresses left on a small uplink subnet
Addresses left on a small uplink subnet
Uplink subnetUsable addressesLeft with one routerLeft with two routers
/3020Does not fit
/29643
/28141211
/27302827
/24254252251
Usable addresses are the subnet size minus the network and broadcast addresses. One address is taken by the gateway, and one by each router. The counts come from a short script, and the subnet sizes are examples.

The lab process

A lab can follow the same six steps with the real portal, as long as the lab can reach it. The differences are in the device identity and in the network.

Diagram
PnP in production and in a lab
PnP in production and in a lab
TopicProductionLab
Device identityHardware serial number, published by the orderA virtual router has no serial. The portal can generate a UUID for it, and the bootstrap information is supplied to the virtual machine before its first boot
DiscoveryCloud redirection, DHCP option 43 or DNSOften skipped. The bootstrap information already carries the Validator address
Controller profileCreated by Cisco for hosted controllers, or by you for on-premises onesYou create it, with a lab organization name and a Validator address that the virtual router can reach
No InternetRare in production. An isolated network can download a provisioning file from the portal and upload it to the ManagerCommon. Use the provisioning file route, or the manual route in the next lesson
TimingA shipment plan, with syncs repeated as devices arriveAs needed, with a snapshot before the first boot of each router
The UUID and bootstrap route, and the provisioning file route, are the ones described in Cisco's onboarding guide, which is dated 2021. Check the current guide for your release.
Diagram
Hardware router and virtual router
Hardware router and virtual router

A hardware router has a factory serial number that the order publishes to the portal. A virtual router has no serial, so the portal generates a UUID for it and the bootstrap information is supplied before the first boot.

Hardware routerSerial number from the orderDiscovery finds the profile
Virtual routerUUID and bootstrap dataDiscovery often skipped
The identity is the main difference. The six steps stay the same.

The lab Validator address in the profile can be a private address, because the profile only tells the router where to go. The router still has to be able to reach it from its network, so the same reachability check applies. If the lab has no Internet at all, PnP discovery cannot run, and the manual route is the honest choice. See Onboard a WAN Edge without PnP.

A plan for a real rollout

The timeline below is an example plan for the ten-branch rollout, not a rule. What it shows is the order, and that the last human action before shipping is attaching the configuration, not cabling the router.

Diagram
Example plan, counted back from the day of power on
Example plan, counted back from the day of power on

Two weeks before, place the order and check the Virtual Account. One week before, confirm the profile and sync the Manager. Two days before, make the routers valid, send the list and attach the configuration. On the day, power on and watch the control connections.

  1. 14 days beforeOrder placed, Virtual Account checked
  2. 7 days beforeProfile checked, first sync run
  3. 2 days beforeValid, sent, configuration attached
  4. Power-on dayCable, power, watch control connections
An example timeline for ten routers shipped in two batches. Syncs are repeated for the second batch.

When a router stalls

A router that does not appear in the Manager is stuck at one of the gates from the onboarding map. The table links the symptom to the first place to look. Exact messages and error codes depend on the release.

Diagram
Stalled PnP router
Stalled PnP router
SymptomLikely causeFirst check
No address on the uplinkNo DHCP scope, wrong VLAN or a cable faultThe switch port, the VLAN and the scope
Address, but does not reach the PnP serviceNo default route, DNS failure or a firewall that blocks the requestDNS and outbound HTTPS from the uplink network
Reaches PnP, receives no profileThe serial is not in the portal, or sits in another Virtual AccountThe device list and the Virtual Account in the portal
Receives a profile, no control connectionA wrong Validator address, a blocked path or a wrong organization nameThe profile values and the path to the Validator
Control connection, then refusedThe device is not valid on the list the controllers checkThe WAN Edge list in the Manager, then send it to the controllers
Connected, nothing configuredNo template or configuration group attachedThe attachment in the Manager
Work down the table from the top. Each row can hide the ones below it.
Diagram
Where a stalled router is stuck
Where a stalled router is stuck

A router with no address needs the switch port, the VLAN and the scope checked. A router that reaches PnP but gets no profile needs the serial and the Virtual Account checked. A router with a profile but no control connection needs the Validator address, the path and the organization name checked. A router that is refused after connecting needs the WAN Edge list checked.

  1. No addressSwitch port, VLAN and DHCP scope
  2. Reaches PnP, no profileSerial and Virtual Account in the portal
  3. Profile, no connectionValidator address, path, organization name
  4. Refused after connectingValid on the WAN Edge list, sent to controllers
Each stage is further along than the one above it, so the first failing stage is the place to look.

On the router, show sdwan control connections and show sdwan control connection-history show how far it got and why an attempt failed. See Control Connection and Certificate Diagnostics, and Onboarding Verification and Rollback once it connects.

Learn more: PnP/ZTP Orchestration and PrerequisitesOnboard a WAN Edge without PnPOnboard a vEdge with ZTP or by hand

Test yourself on PnP onboarding

Predict · scenario 1

A branch router boots, gets an address and reaches the PnP service, but receives no profile. What is the most likely cause?

Predict · scenario 2

A router connects to the controllers and is then refused, although its certificate is valid. Which preparation step was missed?

Predict · scenario 3

A lab has virtual routers and no Internet access. Which statement fits?

Predict · scenario 4

Ten routers ship in two batches, a week apart. When is the Manager synced with the Smart Account?

Predict · scenario 5

A branch uplink is a /30. The gateway takes one usable address and the router takes the other. How many addresses are left for a laptop used to test the uplink?

Predict · scenario 6

The organization name in the controller profile differs from the name on the controllers. At which point does the mismatch show?

Predict · scenario 7

Which person makes the devices valid, sends the WAN Edge list to the controllers and attaches the configuration?

FAQ

Who needs to be involved in a PnP onboarding?
Four kinds of person: whoever places the order and owns the Smart Account and Virtual Account, whoever keeps the controller profile in the portal, whoever runs the Manager and attaches the configuration, and whoever cables the router at the site. They can be one person in a small team, but the tasks are separate and each has to be done before the router boots.
Does PnP work for a virtual router in a lab?
Partly. A virtual router has no factory serial number, so Cisco's guide describes generating a UUID for it in the portal and copying bootstrap information into the hypervisor before the first boot. That gives the router its identity and its Validator address without discovery. A lab without Internet access can use a provisioning file instead. The details are release dependent.
What does PnP not do?
It does not configure the router's services. It gets the router connected to the controllers. A template or configuration group attached in the Manager then supplies the system IP, the site ID, the interfaces and the policies.