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.
Plan, deploy, configure, certify, check.
- Planaddresses, names
- Deploythree VMs
- Configureminimum config
- Certifyroot and device
- Checkthey see each other
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.
| Node | Transport address (VPN 0) | System IP | Site ID | Organisation name |
|---|---|---|---|---|
| MANAGER | 198.51.100.10/24 | 10.255.0.10 | 1 | LAB-EXAMPLE |
| CTRL-01 | 198.51.100.11/24 | 10.255.0.11 | 1 | LAB-EXAMPLE |
| VAL-01 | 198.51.100.12/24 | 10.255.0.12 | 1 | LAB-EXAMPLE |
- 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
!
commitExample 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
!
commitExample 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.
Name, Validator, site, time.
- Organisationname, exact match
- Validatoraddress on allthree nodes
- Site and IPsunique system IPs
- Timesame source
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.
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.
- MANAGER2 pings out
- CTRL-012 pings out
- VAL-012 pings out
- Gateway3 pings in all
| From | To | Expected |
|---|---|---|
| MANAGER 198.51.100.10 | CTRL-01 198.51.100.11 and VAL-01 198.51.100.12 | Replies |
| CTRL-01 198.51.100.11 | MANAGER 198.51.100.10 and VAL-01 198.51.100.12 | Replies |
| VAL-01 198.51.100.12 | MANAGER 198.51.100.10 and CTRL-01 198.51.100.11 | Replies |
| Each node | Gateway 198.51.100.1 | Replies |
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.
| Nodes | Controller pings | Gateway pings | Total tests |
|---|---|---|---|
| 3 | 6 | 3 | 9 |
| 4 | 12 | 4 | 16 |
| 5 | 20 | 5 | 25 |
| 6 | 30 | 6 | 36 |
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.
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.
- Settingsorg name,Validator
- CA methodvendor orenterprise
- Add nodesto theManager
- Signrequests,install
- Root chainon eachcontroller
| Step | Where | Check |
|---|---|---|
| Set organisation name and Validator | Manager settings | Matches the CLI values exactly |
| Choose CA method | Manager settings | Vendor-signed or enterprise CA |
| Add controllers to the Manager | Controllers page | Each node listed with its transport address |
| Generate and sign requests | Per controller | Status moves to installed |
| Install the root chain | Each controller CLI | show certificate root-ca-cert (controllers) shows the CA |
Step 4: check that they see each other
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.
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
- 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.
| Node | Value typed | Same as the others? |
|---|---|---|
| MANAGER | LAB-EXAMPLE | Yes |
| VAL-01 | LAB-EXAMPLE | Yes |
| CTRL-01 | Lab-Example | No, capital letters differ |
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
CTRL-01#show control connections-history PEER TYPE PEER SYSTEM IP LOCAL ERROR REMOTE ERROR REPEAT vbond 10.255.0.12 ORGNMMIS NOERR 4
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.
- SymptomValidator line downManager line up
- PathAll pings workthe Manager connection is up
- ReasonORGNMMIS in the historyan organisation name mismatch
- CauseLab-Example on CTRL-01LAB-EXAMPLE on the others
- FixCorrect the name, commitwait for the next attempt
| Node | Control connections to | Count |
|---|---|---|
| MANAGER | CTRL-01, VAL-01 | 2 |
| CTRL-01 | MANAGER, VAL-01 | 2 |
| VAL-01 | MANAGER, CTRL-01 | 2 |
| The lab | Each pair of controllers once | 3 connections, each seen from both ends |
Learn more: Lab RequirementsControl Connection and Certificate Diagnostics
Test yourself
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?
Why take a snapshot after the controller build?
Which node's address do all three controllers and every edge need in their configuration?
CTRL-01 shows the Validator line down and the Manager line up. The history shows ORGNMMIS. What is wrong?
How many control connections should each of the three controllers show when the build is finished?
Why test pings between controllers before installing certificates?
A fourth controller joins the lab. Counting each node pinging the other controllers and the gateway, how many tests does the gate need?
The CLI on CTRL-01 shows the Validator and the Manager as up. Where else can the finished build be confirmed?
Which order fits the certificate step?