The following sections describe how to configure network interfaces and FRRouting for a two-leaf/two-spine Cumulus VX network topology:
Two spine VMs that represent two spine (aggregation layer) switches on the network.
Two leaf VMs that represent two leaf (access layer) switches on the network.
These instructions assume that you have installed the relevant images and hypervisors, created four VMs with appropriate names, and that the VMs are running. Refer to the Getting Started chapter of this guide for more information on setting up the VMs.
You can configure each of the VMs using the Network Command Line Utility (NCLU) or by editing the
/etc/frr/frr.conf files as the sudo user.
The following configuration uses unnumbered IP addressing, where you use the same /32 IPv4 address on multiple ports. OSPF unnumbered doesn't have an equivalent to RFC-5549, so you need to use an IPv4 address to bring up the adjacent OSPF neighbors, allowing you to reuse the same IP address. You can see some example unnumbered OSPF configurations in the knowledge base.
To configure CumulusVX-leaf1:
Log into the CumulusVX-leaf1 VM using the default credentials:
As the sudo user, edit the
/etc/frr/daemonsfile in a text editor. Set
ospfdto yes, and save the file.
Run the following commands to configure the switch:
These commands configure both
/etc/frr/frr.conf. The output of each file is shown below.
To edit the configuration files directly as the sudo user, copy the configurations below.
Restart the networking service:
Configure the Remaining VMs
The configuration steps for CumulusVX-leaf2, CumulusVX-spine1, and CumulusVX-spine2 are the same as CumulusVX-leaf1; however, the file configurations are different. Listed below are the configurations for each additional VM:
Restart the networking and FRRouting services on all VMs before continuing.
Create Point-to-Point Connections Between VMs
To use the two-leaf/two-spine Cumulus VX network topology you configured above, you need to configure the network adapter settings for each VM to create point-to-point connections. The following example shows how to create point-to-point connections between each VM in VirtualBox. If you are not using VirtualBox, refer to your hypervisor documentation to configure network adapter settings.
Follow these steps for each of the four VMs.
Make sure that the VM is powered off.
- In the VirtualBox Manager window, select the VM.
- Click Settings, then click Network.
- Click Adapter 2.
Click the Enable Network Adapter check box.
From the Attached to list, select Internal Network.
In the Name field, type a name for the internal network, then click OK.
The internal network name must match the internal network name on the corresponding network adapter on the VM to be connected to this VM. For example, in the two-leaf/two-spine Cumulus VX network topology, Adapter 2 (swp1) on CumulusVX-leaf1 is connected to Adapter 2 (swp1) on CumulusVX-spine1; the name must be the same for Adapter 2 on both VMs. Use the internal network names and the connections shown in the illustration and table below.
- Click Adapter 3 and repeat steps 4 thru 6. Use the internal network names and the connections shown in the illustration and table below.
|Switch||swp||VirtualBox Interface||VirtualBox Network Type||Name|
Adapter 4 (disabled)
Adapter 4 (disabled)
Test the Network Topology Connections
After you restart the VMs, ping across VMs to test the connections:
Run the following commands from CumulusVX-leaf1: