Course contents

Unit 10: Guided deploymentLesson 10.2 (2 of 5 in this unit)59 of 62 in the Cisco SD-WAN course

Install/build a controller-and-edge lab

Build the Manager, Controller and Validator: address plan, minimum configuration, certificates and a check that the controllers see each other.

Intermediate · 20 min read

You'll learn to build the three controllers of the course lab in order, give each the minimum configuration, install certificates, and confirm that the controllers can see each other before any edge is added.

Technical definition

Controller-side lab build is the part of an SD-WAN lab that comes before any edge router: the Manager, Controller and Validator are deployed, given a transport address and identity, and issued certificates so that they trust each other. Only then can an edge be onboarded.

What you will have at the end

This is a lab to carry out on your own virtual machines, using images and licences you are entitled to. The site does not run the steps for you, and the commands and outputs below are examples written for the lesson. By the end of it the Manager, CTRL-01 and VAL-01 are up, trust one another, and are ready for the first edge.

Diagram
Build order
Build order

Plan, deploy, configure, certify, check.

  1. Planaddresses, names
  2. Deploythree VMs
  3. Configureminimum config
  4. Certifyroot and device
  5. Checkthey see each other
The order matters: the Validator and Controller need the Manager's settings before they can be certified.

Step 1: the address and identity plan

Write the plan before touching a VM. Changing a system IP or organisation name later means reissuing certificates. The addresses below are from documentation ranges and are examples.

Diagram
Controller plan
Controller plan
NodeTransport address (VPN 0)System IPSite IDOrganisation name
MANAGER198.51.100.10/2410.255.0.101LAB-EXAMPLE
CTRL-01198.51.100.11/2410.255.0.111LAB-EXAMPLE
VAL-01198.51.100.12/2410.255.0.121LAB-EXAMPLE
Gateway 198.51.100.1. The organisation name must be identical everywhere, including capital letters.
  • The Validator address must be reachable by every edge, so in a real network it needs a public address or a path through NAT.
  • Give all three the same time source. A lab where the clocks differ will fail at the certificate step.
  • Put the Manager, Controller and Validator in one site in the lab. Site IDs for the edges come later and must be different.

Step 2: deploy and give a minimum configuration

Deploy the three virtual machines from the images, with a management network and the transport network attached. On the Validator, the configuration says that this node is the Validator. The other two point at the Validator's address. Interface names depend on the platform; the lines below use ge0/0 and eth0 as examples.

system host-name VAL-01 system-ip 10.255.0.12 site-id 1 organization-name "LAB-EXAMPLE" vbond 198.51.100.12 local ! vpn 0 interface ge0/0 ip address 198.51.100.12/24 tunnel-interface no shutdown ! ip route 0.0.0.0/0 198.51.100.1 ! commit

Example for VAL-01 in the controller CLI. Release and platform change the exact lines. The word local marks this node as the Validator. The other two nodes use vbond 198.51.100.12 without it.

system host-name CTRL-01 system-ip 10.255.0.11 site-id 1 organization-name "LAB-EXAMPLE" vbond 198.51.100.12 ! vpn 0 interface eth0 ip address 198.51.100.11/24 tunnel-interface no shutdown ! ip route 0.0.0.0/0 198.51.100.1 ! commit

Example for CTRL-01. The Manager is usually first configured from its console and then through its GUI, using the same values: transport address, system IP, site ID, organisation name and Validator address.

Diagram
Same four values everywhere
Same four values everywhere

Name, Validator, site, time.

Values that must agree
  • Organisationname, exact match
  • Validatoraddress on allthree nodes
  • Site and IPsunique system IPs
  • Timesame source
A mismatch in any of these causes the failures at the check step.

Gate before certificates: can they reach each other?

Certificates cannot fix a path that does not exist, so test the transport side first. From each controller, ping the other two addresses on VPN 0 and the gateway. The Controller and Manager CLIs offer a ping that takes a VPN number; confirm the exact form with the question mark at the prompt.

Diagram
Nine tests for three nodes
Nine tests for three nodes

Each of the three controllers pings the other two, which is six pings, and each also pings the gateway, which is three more. That makes nine tests.

9 tests in all
  • MANAGER2 pings out
  • CTRL-012 pings out
  • VAL-012 pings out
  • Gateway3 pings in all
Every test is one node sending one ping to one target, so the count is easy to tick off.
Diagram
Reachability tests on VPN 0 (computed)
Reachability tests on VPN 0 (computed)
FromToExpected
MANAGER 198.51.100.10CTRL-01 198.51.100.11 and VAL-01 198.51.100.12Replies
CTRL-01 198.51.100.11MANAGER 198.51.100.10 and VAL-01 198.51.100.12Replies
VAL-01 198.51.100.12MANAGER 198.51.100.10 and CTRL-01 198.51.100.11Replies
Each nodeGateway 198.51.100.1Replies
Three nodes give 3 x 2 = 6 pings between controllers, plus 3 to the gateway, 9 tests in all. Fix any that fail before the certificate step.

The number of tests grows faster than the number of nodes, because every node pings every other node. With n nodes the gate has n x (n - 1) controller pings plus n gateway pings, which is n x n. The table was computed by script.

Diagram
Tests in the gate as the lab grows (computed)
Tests in the gate as the lab grows (computed)
NodesController pingsGateway pingsTotal tests
3639
412416
520525
630636
A fourth controller adds 7 tests, not 3. Keep the lab small, or script the pings, once it grows past four or five nodes.

Step 3: certificates

Controllers authenticate one another with certificates signed by a certificate authority they all trust. The usual order is: set the organisation name and Validator address in the Manager's settings; choose the certificate method; generate a signing request for each controller; have it signed; install the signed certificate; and install the root certificate chain on each node. Menu names, and the choice between a vendor-signed and an enterprise CA method, depend on the release.

Diagram
Certificate order
Certificate order

First set the organisation name and Validator address in the Manager. Then choose the certificate method, add the controllers to the Manager, sign the requests and install the signed certificates, and last install the root chain on each controller.

  1. Settingsorg name,Validator
  2. CA methodvendor orenterprise
  3. Add nodesto theManager
  4. Signrequests,install
  5. Root chainon eachcontroller
Each step needs the one before it, so a skipped step shows up as a failure later.
Diagram
Certificate steps
Certificate steps
StepWhereCheck
Set organisation name and ValidatorManager settingsMatches the CLI values exactly
Choose CA methodManager settingsVendor-signed or enterprise CA
Add controllers to the ManagerControllers pageEach node listed with its transport address
Generate and sign requestsPer controllerStatus moves to installed
Install the root chainEach controller CLIshow certificate root-ca-cert (controllers) shows the CA
Controller commands differ from the IOS XE edge commands used elsewhere in the course.

Step 4: check that they see each other

Diagram
Two places to confirm the build
Two places to confirm the build

On the Controller, the show control connections command lists the Validator and the Manager as up. In the Manager, the controllers page lists CTRL-01 and VAL-01 as valid and reachable. A finished build shows both.

On CTRL-01, the CLIvbond upvmanage up
In the Manager, the GUICTRL-01 and VAL-01valid and reachable
The CLI view and the GUI view are separate evidence, and both should agree.
Example output written for this lesson, simplified; real output has more fields and a different layout
CTRL-01#show control connections
PEER TYPE  PEER SYSTEM IP  SITE ID  STATE
vbond      10.255.0.12    1        up
vmanage    10.255.0.10    1        up
On the Controller (a Viptela-style CLI, so no sdwan keyword), both the Validator and the Manager show up. If one is stuck in connect, check the path and the Validator address. If a connection drops after the handshake, check the certificate and the organisation name. Output is an example.
  • In the Manager, the controllers page should list CTRL-01 and VAL-01 as valid and reachable.
  • Take a snapshot of all three VMs now. It is the clean starting point for every later lab.
  • Write down the credentials and the root CA location in a safe place that is not in the lab files.

Worked case: one capital letter

The build looks finished, but CTRL-01 shows the Validator connection as down while the Manager connection is up. All three certificates are installed and every ping works. Compare the organisation name on each node.

Diagram
Organisation name on each node (checked with a script)
Organisation name on each node (checked with a script)
NodeValue typedSame as the others?
MANAGERLAB-EXAMPLEYes
VAL-01LAB-EXAMPLEYes
CTRL-01Lab-ExampleNo, capital letters differ
The comparison is exact. Lab-Example and LAB-EXAMPLE are different names, so the Validator refuses the connection.
Example output written for this lesson, simplified; real output has more fields and a different layout
CTRL-01#show control connections
PEER TYPE  PEER SYSTEM IP  SITE ID  STATE
vbond      10.255.0.12    1        tear_down
vmanage    10.255.0.10    1        up
The Validator line is down and the Manager line is up. The path and the certificates are not the problem, since the Manager connection works. The history on the Controller names the reason. The command is show control connections-history on many releases, and the question mark confirms it on yours.
Example output written for this lesson, simplified; real output has more fields and a different layout
CTRL-01#show control connections-history
PEER TYPE  PEER SYSTEM IP  LOCAL ERROR  REMOTE ERROR  REPEAT
vbond      10.255.0.12    ORGNMMIS     NOERR         4
ORGNMMIS is an organisation name mismatch. Correct the name on CTRL-01 to LAB-EXAMPLE, commit, and wait for the next connection attempt.
Diagram
Evidence from the mismatch
Evidence from the mismatch

The Validator connection is down while the Manager connection is up, so the path works. All certificates are installed. The history shows an organisation name mismatch. A comparison of the three names finds the difference in capital letters. The fix is to correct the name on one node and wait for the next attempt.

  1. SymptomValidator line downManager line up
  2. PathAll pings workthe Manager connection is up
  3. ReasonORGNMMIS in the historyan organisation name mismatch
  4. CauseLab-Example on CTRL-01LAB-EXAMPLE on the others
  5. FixCorrect the name, commitwait for the next attempt
A single failed line among working ones points at that node's identity before its certificates.
Diagram
What a finished build shows (computed)
What a finished build shows (computed)
NodeControl connections toCount
MANAGERCTRL-01, VAL-012
CTRL-01MANAGER, VAL-012
VAL-01MANAGER, CTRL-012
The labEach pair of controllers once3 connections, each seen from both ends
Three controllers make 3 pairs. A node with fewer than 2 connections has a failed pair, so look for the missing name.

Learn more: Lab RequirementsControl Connection and Certificate Diagnostics

Test yourself

Predict · scenario 1

The Controller and Manager show up at the Validator, but the Controller to Manager connection does not form. All certificates are installed. What do you check?

Predict · scenario 2

Why take a snapshot after the controller build?

Predict · scenario 3

Which node's address do all three controllers and every edge need in their configuration?

Predict · scenario 4

CTRL-01 shows the Validator line down and the Manager line up. The history shows ORGNMMIS. What is wrong?

Predict · scenario 5

How many control connections should each of the three controllers show when the build is finished?

Predict · scenario 6

Why test pings between controllers before installing certificates?

Predict · scenario 7

A fourth controller joins the lab. Counting each node pinging the other controllers and the gateway, how many tests does the gate need?

Predict · scenario 8

The CLI on CTRL-01 shows the Validator and the Manager as up. Where else can the finished build be confirmed?

Predict · scenario 9

Which order fits the certificate step?

FAQ

Why are addresses different from the system IPs in earlier lessons?
Earlier lessons wrote the controllers by their system IPs, such as 10.255.0.12, to keep examples short. In a real build each controller has a transport address on VPN 0 that edges can reach, plus a separate system IP. This lab uses 198.51.100.0/24 for the transport side.
Which certificate option should I use in a lab?
Use whichever you have rights to and can manage. A vendor-signed option needs a Cisco account and entitlement. An enterprise CA option needs a CA you control. The steps differ, so read the guide for your release.
How do I know the build is finished?
All three controllers show as valid in the Manager, the Manager shows control connections to the Controller and Validator, and the Validator shows the Controller. Nothing about edges is needed yet.