Colour semantics and public/private transport design
Public and private colours, which address peers use for each, how to choose colours for a site, and how colour and restrict interact.
Intermediate · 10 min read
You'll learn to choose a colour for each transport in a small design, predict which address other WAN Edges will use to reach it, and explain how colour choices affect tunnel formation and policy.
Technical definition
Colour (transport colour) is a label chosen from a fixed list and applied to a tunnel interface. It names the transport, tells the fabric whether the transport is private or public, and gives policy a name to refer to. It is one of the three parts of a TLOC.
A colour is a promise about the address
The previous lesson, on TLOC components, introduced colour as one of the three parts of a TLOC. This lesson looks at the design side: why the list of colours is split into two groups, and how to pick one for each link at a site.
What a colour means
On small screens, swipe sideways or focus the diagram and use the arrow keys.
It does not describe the speed.
The important idea is that a colour tells other routers which of your addresses to use. A transport such as MPLS is private: the provider routes between sites, no address translation is expected, and peers can use the interface address directly. An internet connection is public: the address on the interface is often private and translated by the ISP or a firewall, so peers must use the address as it appears on the outside. Choosing the wrong group makes peers aim at an address that cannot be reached.
Public and private groups
Public and private groups
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Read each row across: the left box names the item, the others describe it.
If a router has both groups, a peer with a matching group uses the private address and others use the public one. The exact rules for mixed cases, including routers behind the same NAT, are in the NAT lesson and the configuration guide for your release.
Colour groups
On small screens, swipe sideways or focus the diagram and use the arrow keys.
The group affects connections between TLOCs.
Choosing colours for a site
BR-01 has an MPLS circuit and a business internet line. HUB-01 has the same two. A sensible design uses mpls and biz-internet at both ends. The table shows the questions to ask for each link.
Choosing colours
On small screens, swipe sideways or focus the diagram and use the arrow keys.
The same transport uses the same colour at every site.
Choosing colours for a site
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Each item on the left, with what it means on the right.
Colour names are conventions inside your organisation. The fabric does not inspect the link, so a link labelled mpls that is really an internet VPN behind NAT will cause tunnel problems that the label does not reveal.
Colour and restrict together
By default a TLOC can form tunnels with TLOCs of any colour. Restrict limits it to the same colour. In practice, a hub with a private MPLS link and a public internet link often sets restrict on the MPLS side so that internet-only branches do not try to reach it over a transport they do not share. The effect on tunnel counts is worked through in the TLOC lesson.
Restrict
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Use it to keep MPLS separate from the internet.
sdwan
interface GigabitEthernet1
tunnel-interface
encapsulation ipsec
color biz-internet
exit
exit
interface GigabitEthernet2
tunnel-interface
encapsulation ipsec
color mpls restrict
exit
exit
Fragment of an IOS XE SD-WAN configuration for BR-01, shortened: allowed services and other transport settings are left out. The colour is set under the tunnel interface. Most networks set it through a Manager template or configuration group.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan control local-properties
system-ip 10.255.2.1
site-id 101
...
INTERFACE COLOR PRIVATE IP PUBLIC IP STATE
GigabitEthernet1 biz-internet 203.0.113.10 203.0.113.10 up
GigabitEthernet2 mpls 172.16.1.2 172.16.1.2 up
Each tunnel interface is listed with its colour, its private address and the public address the fabric knows for it. On a transport with NAT in the path, the two addresses would differ, and the public one is what public-colour peers aim at. The lines marked with dots stand for fields left out here.
Where colour choices go wrong
Putting a private colour on an internet link behind NAT. Peers then try the private address, which is not reachable from outside.
Using different names for the same kind of transport at different sites, then setting restrict. The colours no longer match, so the tunnels do not form.
Giving both internet links on one router the same colour and then writing a policy that needs to prefer one of them.
Changing a colour on a working router. It is a different TLOC, so tunnels and policies that name the old colour change with it.
A branch has an internet line whose interface address is private, translated by the ISP. Which colour group suits it?
Predict · scenario 2
Which statement about colours is correct?
Predict · scenario 3
BR-01 uses mpls with restrict. Another branch calls its MPLS-like circuit private1. Both set restrict. What is the likely result between them?
FAQ
Can I invent my own colour names?
No. Colours come from a fixed list in the software. The list includes generic names (custom1 to custom3, and private1 to private6) so that you can label transports that do not fit the named ones. Check your release for the full list.
Does the colour change how the traffic is carried?
Not by itself. The colour does not add bandwidth or priority. What it changes is whether peers connect to the private or the public address, whether restrict applies, and what policies can match.
Should two internet links from different ISPs have different colours?
Often yes, if policy needs to tell them apart, for example to prefer one for a business application. Two links with the same colour on one router are treated as the same kind of transport, which makes it harder to steer traffic between them.