CloudVision eXchange (CVX)
CloudVision eXchange (CVX) provides a single access point for real-time provisioning, orchestration and integration with third-party controllers. CVX aggregates and distributes operational state information across a set of eos switches to support applications that provide network services. See the CloudVision User Guide, https://www.arista.com/en/support/product-documentation, for additional information.
Upgrading CVX
You can upgrade CVX from a previous version to the current version by performing a few simple tasks. You can use the following procedure to upgrade any previous version of CVX to the current version.
Requirements
- If you have CVP, CVX and client switches in your environment, make sure you
upgrade each component in the following order:
- Upgrade CVP first.
- Upgrade the CVX cluster.
- Upgrade the client switches. the reason for this is to ensure backward compatibility.
- You must upgrade the CVX cluster before you upgrade the client switches.
- If the CVX cluster is a three node cluster, make sure that only one node of the cluster is down at any one time during the upgrade process. (the order in which you upgrade the nodes does not matter.)
Pre-requisites
- You perform a backup to ensure that you can restore data if needed.
- You download the latest version of CVX from Arista's Software Download page (https://www.arista.com/en/support/software-download).
- Login to the cluster to be upgraded. (You can login to any node.)
- Upgrade the node. You must deploy a new image to perform the upgrade.
- Wait for the node you are upgrading to rejoin the cluster. Once the node has rejoined, go to the next step. (the node automatically rejoins the cluster as a follower node.)
- Repeat steps 1 through 3 to upgrade the two remaining nodes one node at a time. It does not matter the order in which you upgrade the remaining nodes.
CVX Overview
A CVX deployment includes CVX and a set of CVX clients to which CVX provides services. CVX is not part of the data plane, nor does it receive data-path traffic. All CVX components exist as agents that run on eos instances.
System Requirements
Certain hardware and software is required to be able to use CloudVision eXchange in your CloudVision virtual appliance implementation.
the CloudVision eXchange should be installed on a single system along with CloudVision Portal.
the following table lists the minimum hardware and software required to use CloudVision eXchange.
Required Hardware
- CPU: 4 cores (base), 8 cores (recommended)
- RAM: 4G (base), 8G (recommended)
- Disk: 4G
Required Software
- eos switches: Recommend 4.16.8M or laterNote: It is a best practice and highly recommended that the version of CVX should match the version running on the switches.
- CloudVision Portal: version 2016.1(CloudVision Portal software is required if you want to use it in conjunction with CloudVision eXchange. If you plan to use only CloudVision eXchange, CloudVision Portal software is not required.)Note: CVX supports live vMotion.
CVX Infrastructure
CVX provides a single integration point into network-wide services running across CVX clients. CVX is typically deployed as an eos instance running on a VM (veos). the CVX infrastructure consists of a CVX instance functioning as a server and a set of CVX clients. the CVX server uses a heartbeat keepalive (KA) mechanism to maintain contact with its clients.
When de-configuring or shutting down CVX, client services should be shut down first.
CVX Features
CVX manages communications among the network CVX clients, and provides an integration point for services to those clients. CVX also discovers the physical network topology by aggregating topology information it receives from its client devices.
CVX Clients
CVX client is the agent that allows a switch to interact with a CVX server to access CVX services. Enabling the CVX client includes providing the IP address or host name of the device running CVX. the CVX client can then access services that are enabled on the CVX server.
the CVX client must be enabled to access the CVX server and the services it offers. Individual services may require additional configuration statements.
Services should be shut down or de-configured on clients before shutting down or de-configuring CVX. CVX-controlled switch features may continue to run after shutting down CVX if they are not explicitly shut down or de-configured prior to shutting down CVX.
CVX Services
CVX services are applications that run on top of the CVX infrastructure, and are accessed by CVX clients through the CVX server. All CVX services are maintained by version level; client switches negotiate the version they use when connecting to the server. This allows multiple switches that run different eos versions to connect to the same CVX server.
the following sections briefly describe some of the services available to CVX clients through CVX:
OpenStack Service
the OpenStack service on CVX allows the networking component of an OpenStack deployment (also known as Neutron) to share state with CVX.
When deployed, this integration allows CVX to send state about the logical networks created in the OpenStack cloud to the CVX clients that configure the network.
More information on OpenStack software can be found in its online documentation at http://docs.openstack.org/. .
VXLAN Control Service
the VXLAN control service allows hardware VXLAN Tunnel End Points (VTEPs) to share state with each other in order to establish VXLAN tunnels without the need for a multicast control plane. Configuration is required both on the client switches and in CVX.
Hardware switch Controller (HSC) Service
Traffic between virtual machines which share a physical host (or between virtual machines and the rest of the network) is forwarded by virtual switches. the management and configuration of virtual switches uses the Open Vswitch DataBase (OVSDB) management protocol, as described in RFC 7047.
the Hardware switch Controller (HSC) service provides an integration point between OVSDB controllers and the VXLAN control service, allowing exchange of state information among virtual and hardware switches.
Network Topology Service
the network topology service gathers information from CVX clients to provide a view of the physical topology of the network. Aggregated information gathered by the network topology service is used by other CVX services, and can be viewed on the CVX server.
Static Topology Service
Static Topology addresses cases where the deployment infrastructure in an OpenStack setup that manages Virtual Machines and Bare Metal servers does not enable LLDP on interfaces connecting hosts to switches. As a result, the topology information does not appear on CVX.
An example of this case is some deployments of OpenStack that do not enable LLDP for DPDK interfaces. Even with the manual configuration of LLDP on hypervisors, the configuration does not persist after OpenStack redeployment.
Static Topology enables the topology configuration statically using the service topology command on CVX without running LLDP on the servers connected to switches.
To view the aggregated topology information, use the show network physical-topology command on the switch running the CVX server instance.
Deploying CVX
CloudVision Exchange (CVX) can be deployed on KVM and ESXi. the required eos version and Aboot version vary depending on whether you are deploying CVX on KVM or ESXi.
Deploying CVX on Kernel-based Virtual Machine (KVM)
- eos (version 4.16.8M or later).
- Aboot-veos-serial-8.0.0.iso (located in the veos section of the download).
Pre-requisites
- Install qemu-kvm, libvirt*, and all related dependencies using yum (RHEL7/CentOS7) and apt-get (Ubuntu).
- Two bridges are configured for use by the KVM VM, and that you have the
names of the bridges. (Steps are included in the procedure to add bridges,
if they are not already configured.) Note: the bridges must be configured to persist (brctl commands do no persist across reboots). You can use Network Manager (or another application available to you) to complete this configuration.
- You have both generateXmlForKvm.py and cvpTemplate.xml. they are required to complete the procedure. You can find them in the CVP tarball for Ubuntu.
- Download the Aboot and eos files from: https://www.arista.com/en/support/software-download/.
- Use sudo su to acquire superuser privileges, which are required to complete some of the installation steps.
- Confirm that KVM is running on the server by entering the following command:
virsh -c qemu:///system listAb
the command output should match this example:Id Name State ------------------------------- $
- If the output does not look correct (previous step) go to for additional assistance: https://help.ubuntu.com/community/KVM/Installation.
- Use the following command to convert the vmdk
file to qcow2:
qemu-img convert eos_4_16_8M.vmdk -O qcow2 eos.qcow2
.Note: Step 6 and 7 are required if you do not already have 2 bridges defined in different subnets. If the bridges exist, go directly to step 8. - Use brctl to add bridges for the KVM VM to use
(br1 and br2 can be any names you
choose).
brctl addbr br1 brctl addbr br2
ifconfig can be used to identify Ethernet ports to be bridged. Once you identify the ports, add them to the bridges.
Example
brctl addif br1 enx803f5d086eae
- Confirm that the bridges are up using brctl
show.
- Enter:
ifconfig br1 up
- And:
ifconfig br2 up
Note: the following step uses a number of input parameters (the number required vary depending on your server setup). To ensure the command executes successfully, we recommend that you type it into a scratch pad and edit as needed before typing it into the Linux Terminal. - Use the following command to generate
cvx.xml, which will be used to
setup the CVX
VM.
generateXmlForKvm.py
Examplepython generateXmlForKvm.py -n cvx --device-bridge br1 --cluster-bridge br2 -e /usr/bin/kvm -i cvpTemplate.xml -c /home/myname/Downloads/Aboot-veos-serial-8.0.0.iso -x /home/myname/Downloads/eos.qcow2 -b 8192 -p 2 -t -n cvx: VM name. --device-bridge br1: This is the name you gave the bridge - br1 or anything else. --cluster-bridge br2: Cluster bridge if clustering servers. -i cvpTemplate.xml: Path to XML file input template. -k: VM ID number used by virsh. If not entered, a random number is assigned. -b 8192: 8G of RAM. -p 2: # of CPU cores. -c: Path to Aboot file. -x: Path to qcow2 file created in step 3. -t: This parameter indicates the file defined by -x is for CVX. -e ‘/usr/bin/kvm: Ubuntu path to KVM. (for RHEL KVM this is: -e ‘usr/libexec/qemu-kvm) -o: XML file used by virsh to define the KVM VM.
- Enter:
- Run the following commands:
virsh define cvx.xml virsh start cvx virsh console cvx
- (Optional) To configure CVX to start automatically, enter:
virsh autostart cvx
You are now ready to begin the CVX configuration (see CVX Configuration).
Deploying CVX on VMware ESXi
- Go to: https://www.arista.com.
- Select Support > Software Download.
- From the software download page, expand Active Releases > 4.21 > eos-4.21.0F to download eos-4.21.0F.vmdk.
- Load the files you downloaded into a filestore location within the VMware vSphere environment.
- Right-click the filestore location you selected, and choose New
Virtual Machine. the New Virtual Machine dialog appears.
- In the New Virtual Machine dialog, select Create a new virtual
machine, then click Next.
the dialog refreshes, showing options for the new Virtual Machine.
New Virtual Machine dialog (naming and selecting the location). - the dialog refreshes, showing options for selecting the datastore.
- Enter a name for the new Virtual Machine.
- Select a location for the new Virtual Machine, then click
Next.
Figure 5. New Virtual Machine Dialog (Selecting the Datastore) - Select the datastore for the new Virtual Machine configuration files and all of the virtual disks. Click Next.the dialog refreshes, showing operating system selection options.
- Click Next. the dialog refreshes, showing compatibility options.
Figure 6. New Virtual Machine Dialog (Compatibility Options) - Using the Compatible with menu, select the ESXi compatibility for the
new Virtual Machine.Note: When adding the VMDK to ESX6, it treats this as sparse by default, whereas in ESX 5 it is thick. Converting the veos VMDK file from thin to thick would allow it to boot properly in ESX6: vmkfstools -i veos-lab-4.18.5M.vmdk -d eagerzeroedthick veos-lab-4.18.5M-thick.vmdk.Go to https://arista.my.site.com/AristaCommunity/s/ and refer to the following topics for the issue and solution:
- Tip for Arista veos on VMware ESX 6..
- Common Issues When Deploying CVX.
- 4.18.2F on vCenter 6 or 6.5. Note: If the VM keeps rebooting and showing “This is not a bootable disk. Insert a bootable floppy and press any key to try again", then go to https://arista.my.site.com/AristaCommunity/s/ and refer to the Common Issues When Deploying CVX 4.18.2F on vCenter 6 or 6.5 topic.
- Click Next. the dialog refreshes, showing operating system selection
options.
Figure 7. New Virtual Machine Dialog (Operating System Options) - Using the Guest OS Family menu, choose Linux.
- Using the Guest OS Version menu, choose Other Linux (64-Âbit).
- Click Next. the dialog refreshes, showing options for customizing hardware.
Figure 8. New Virtual Machine Dialog (Hardware Configuration Options) - Change the default settings for the following options:
CPU Set to 4 (number of CPUs) Memory Set to 8 GB New Hard Disk Delete the current setting (leave this option empty). New Network Specify connection to Network LAN segment with connectivity to CVX client devices (the Management LAN). Choose VMXNET3 network adapter type. This connection is used for CVX client / server communications. Existing Hard Disk Specify the eos-4.21.0F.vmdk you downloaded in step 3. - (Optional) Delete the floppy drive and SCSI controller.
- Click Next. You are now ready to begin the CVX configuration (seeCVX Configuration).
CVX Configuration
Ports Used by CVX
- Controller database (Controllerdb): Port 9979.
- Client-server out-of-band connection: Port 50003.
- CVX cluster peer out-of-band connection: Port 50004.Note: All of these connections are TCP.
CVX Server Configuration
Enabling CVX on the CVX Server
CVX parameters for the server infrastructure are configured in CVX configuration mode. CVX configuration mode is not a group-change mode; running-config is changed when commands are entered, and exiting the mode does not modify running-config. the cvx command places the switch in CVX configuration mode.
CVX is disabled by default. the no shutdown (CVX) command enables CVX on the switch.
Example
switch(config)# cvx
switch(config-cvx)# no shutdown
switch(config-cvx)#
CVX Heartbeat Configuration
CVX synchronizes with its client devices by exchanging heartbeat signals. the heartbeat transmission frequency and timeout period determine when a client's access to the server is disrupted.
the interval between heartbeat messages that the server transmits is specified by the heartbeat-interval (CVX) command. the CVX timeout period is specified by the heartbeat-timeout (CVX) command. When CVX does not receive a subsequent heartbeat message from a CVX client before the timeout expiry, the server discontinues CVX services to that client.
Best practices dictate that CVX and its client applications configure identical heartbeat interval and heartbeat timeout values.
Example
switch(config-cvx)# heartbeat-interval 30
switch(config-cvx)# heartbeat-timeout 90
switch(config-cvx)#
Disabling CVX on the CVX Server
When disabling the CVX service, service VXLAN configuration may be retained or erased. Be sure to disable or shut down client services prior to disabling the CVX service.
- these commands shut down the CVX service while retaining the CLI
configuration for service VXLAN.
localhost(config)# cvx localhost(config-cvx)# service VXLAN localhost(config-cvx-VXLAN)# shutdown
- these commands shut down the CVX service and also erase service VXLAN CLI
configuration.
localhost(config-cvx-VXLAN)# localhost(config)# cvx localhost(config-cvx)# no service VXLAN
CVX Client Configuration
- Enabling CVX on the CVX Client
CVX client parameters are configured in Management-CVX configuration mode. Management-CVX configuration mode is not a group-change mode; running-config is changed when commands are entered, and exiting the mode does not modify running-config. the management cvx command places the switch in Management-CVX configuration mode.
CVX client is disabled by default. the no shutdown (Management-CVX) command enables CVX client on the switch.
For the CVX network topology service to create an inventory of all CVX clients, ensure that LLDP is enabled on each client switch using the lldp run command.
Example
these commands enter Management-CVX-configuration mode and enable the CVX client.switch(config)#lldp run switch(config)#management cvx switch(config-mgmt-cvx)#no shutdown switch(config-mgmt-cvx)#
- CVX Client Heartbeat Configuration
A CVX client synchronizes and maintains contact with CVX by exchanging heartbeat signals. the heartbeat transmission frequency and timeout period define when communication with CVX will be considered down.
the interval between heartbeat messages that the CVX client transmits is configured by the heartbeat-interval (Management-CVX) command.
the CVX client timeout period is specified by the heartbeat-timeout (Management-CVX) command. When a CVX client does not receive a subsequent heartbeat message from CVX within this timeout period, the client assumes that services provided by CVX are no longer available.
Best practices dictate that a CVX client's heartbeat interval and heartbeat timeout values are identical to those of the CVX server to which it connects.
Example
This command configures a CVX client heartbeat interval of 30 seconds and client timeout period of 90 seconds.
switch(config-mgmt-cvx)# heartbeat-interval 30 switch(config-mgmt-cvx)# heartbeat-timeout 90 switch(config-mgmt-cvx)#
- Connecting the CVX Client to a Server
the server host (Management-CVX) command identifies the location of the CVX server that the client accesses. the source-interface (Management-CVX) command specifies the interface from which the client derives the IP address it uses as the source in CVX packets that it transmits. And the no shutdown (Management-CVX) command enables CVX on the client switch.
Example
these commands configure the switch as a CVX client, connecting to a CVX server at IP address 10.1.1.14 and using IP address 10.24.24.1 as the source address for its outbound packets.switch(config)# interface loopback 5 switch(config-if-Lo5)# ip address 10.24.24.1/24 switch(config-if-Lo5)# management cvx switch(config-mgmt-cvx)# server host 10.1.1.14 switch(config-mgmt-cvx)# source-interface loopback 5 switch(config-mgmt-cvx)# no shutdown switch(config-mgmt-cvx)#
CVX Client Services Configuration
switches running eos must be configured as CVX clients to access the network services running on CVX. Individual services may require additional configuration.
Configuring OpenStack Service
the OpenStack service is enabled from CVX-OpenStack configuration mode, which is accessed
by the service openstack
command. the
no shutdown (CVX-OpenStack) command enables CVX
OpenStack services on the CVX server. Additional configuration is necessary to deploy
OpenStack (http://docs.openstack.org/).
Example
switch(config-cvx)# service openstack
switch(config-cvx-openstack)# no shutdown
switch(config-cvx-openstack)#
Configuring VXLAN Control Service
the VXLAN control service is enabled on CVX by the no shutdown (CVX-VXLAN) command and on the client switches by enabling CVX and configuring the VXLAN as a controller client. When VXLAN control service is enabled, CVX functions as a VXLAN controller for its clients.
For information about configuring VXLAN on the client switch, see the VXLAN chapter of the User Manual .
- these commands enable VXLAN control service on the CVX server.
switch(config-cvx)# service VXLAN switch(config-cvx-VXLAN)# no shutdown switch(config-cvx-VXLAN)#
- these commands enable VXLAN Control Service on the CVX client. (This example
assumes that the VXLAN has already been configured on the client switch. For
information about configuring VXLAN, see the VXLAN chapter of the User
Manual).
switch(config)# interface VXLAN 1 switch(config-if-Vx1)# VXLAN controller-client
Configuring Hardware switch Controller Service (HSC)
Certificate Requirements for CVX Interoperability with VMware NSX 6.2.2 and Higher
- At the eos prompt of CVX, use the following
commands.
switch(config)# cvx switch(config-cvx)# service hsc switch(config-cvx-hsc)# shut
- Acquire superuser privileges and edit the
default.
switch(config)# bash switch(config)# sudo su switch(config)# vi /usr/bin/ovs-pki
- Find and replace default_md with
sha512 (from md5).
default_md =md5 default_md =sha512
- Delete all files and folders from
/persist/secure/openvswitch/.
cd /persist/secure/openvswitch/bash-4.1#sudo rm -r *
- Generate the new
certificate.
[admin@CVX ~]$ exit logout CVX(config-cvx-hsc)#no shutdown CVX(config-cvx-hsc)#end
- Verify the change using the
command.
CVX# show nsx status
Example
these commands enable the CVX-HSC service.switch(config)# cvx switch(config-cvx)# no shutdown switch(config-cvx)# service hsc switch(config-cvx-hsc)# no shutdown
the HSC service sends flood lists to each VTEP through CVX. Some controllers (such as VMware NSX's Service Nodes) implement replication nodes for head-end replication of unknown packets. For these controllers, BUM packets should be sent to a single replication node (send-to-any replication), and the flood list sent by the HSC service is a list of replication nodes. Other controllers (such as Nuage VSP) require each VTEP to perform its own head-end replication. For these, BUM packets should be sent to every known VTEP, and the flood list sent by the HSC service is the list of VTEPs.
the default behavior is to use a send-to-any replication list of VTEPs. If the required behavior is send-to-all replication of, use the all option of the VTEP (CVX-HSC) command.
Example
This command configures the CVX-HSC service to connect to an OVSDB controller at IP address 192.168.2.5, using the default port 6632.switch(config-cvx-hsc)# manager 192.163.2.5 switch(config-cvx-hsc)#
Example
This command configures the CVX-HSC service to use send-to-any replication.switch(config-cvx-hsc)# vtep flood list type all switch(config-cvx-hsc)#
Having established a connection to the OVSDB controller, the HSC service will publish the inventory of switches managed by CVX to OVSDB. For the inventory to succeed, LLDP must be enabled on each CVX client switch with the lldp run command.Note: HSC also makes use of the VXLAN control service; ensure that VXLAN control service is enabled and properly configured (see VXLAN Control Service for details).Note: LLDP is enabled by default on Arista switches.Example
This command enables LLDP.switch(config)# lldp run switch(config)#
Configuring Network Topology Service
A network topology agent runs on each Arista switch whether or not the switch is connected to a CVX server. It requires no configuration. the network topology service on the CVX server is also enabled by default and requires no configuration.
To view the aggregated topology information, use the show network physical-topology command on the switch running the CVX server instance.
- This command displays all visible
hosts.
switch# show network physical-topology hosts Unique Id Hostname -------------------- ------------------------------ 001c.7385.be69 cvx287.sjc.aristanetworks.com 0000.6401.0000 cvc1 0000.6402.0000 cvc2 0000.6403.0000 cvc3 0000.6404.0000 cvc4 bcf6.85bd.8050 dsj14-rack14-tor1
- This command displays all connections in the
topology.
switch# show network physical-topology neighbors cvx287.sjc.aristanetworks.com Interface Neighbor Intf Neighbor Host ------------------ ------------------ -------------------- Ethernet1 Ethernet7 cvc4 Ethernet2 Ethernet7 cvc2 Ethernet9 Ethernet7 cvc1 Ethernet10 Ethernet7 cvc3 Management1 27 dsj14-rack14-tor1 OUTPUT OMITTED FROM EXAMPLE dsj14-rack14-tor1 Interface Neighbor Intf Neighbor Host ------------- ------------------ ----------------------- 27 Management1 cvx287.sjc.aristanetwork
Configuring Static Topology Service
Use the service topology command to configure the topology statically on CVX without running LLDP on the servers connected to switches. It is configured under CVX configuration mode.
- the following command configures topology statically on the
switch.
switch# config switch(config)# cvx switch(config-cvx)# service topology
- the topology information can be specified using the following
command:
switch(config-cvx-topology)# network physical-topology switch switch interface INTERFACE neighbor NEIGHBOR-HOST neighbor-interface NEIGHBOR-INTERFACE
the format of the hostname in this command could depend on services running on the host. As an example, in OpenStack use cases, it should match the hostname used by openstack services (For example, neutron server and agents) which is an FQDN format. the hostname in the command is case sensitive.
Optional Parameter
the neighbor interface is an optional parameter in the above configuration however setting it helps to understand the physical network connectivity between switches and hosts. It also helps in troubleshooting any issue that may arise in the network.
Limitations
To avoid mis-configuration in a topology consisting of a switch with a connected host, where LLDP is enabled and static topology is used to configure the physical topology it is recommended to use only one source of configuration, not both. As a mismatch in the configuration can cause wrong configuration on the switch by a feature consuming the topology information.
CVX Secure out-of-band Connection
This feature adds support for securing out-of-band connection between CVX server and CVX clients by SSL/TLS transport protocol. SSL/TLS is an application-layer protocol that provides secure transport between client and server through a combination of authentication, encryption and data integrity. SSL/TLS uses certificates and private-public key pairs to provide this security. We will use the term SSL to mean SSL/TLS.
By default, CVX server and CVX clients communicate over insecure transport (there is no authentication and encryption between CVX server and CVX clients). This poses the possibility of security risks, such as communicating with untrusted CVX server and CVX clients, or eavesdropping CVX server/client communications. This feature can be used to secure the out-of-band connection between CVX server and CVX clients.
For more information, see Show Commands
s
Configuring the CVX Secure out-of-band Connection
- On CVX server, copy the server certificate and key and also the CA certificate
to verify CVX clients.
switch(config)# !Copy the PEM encoded certificate and RSA key files for CVX server switch(config)# !Lets call them server.crt and server.key switch(config)# copy <url> certificate:server.crt switch(config)# copy <url> sslkey:server.key switch(config)# !Copy the PEM encoded CA certificate to verify the certificate of CVX clients.Lets call it ca.crt switch(config)# copy <url> certificate:ca.crt
- On CVX server, configure SSL profile with the certificates and key as below.
Lets call the SSL profile as serverssl.
switch(config)# management security switch(config-mgmt-security)# ssl profile serverssl switch(config-mgmt-sec-ssl-profile-serverssl)# certificate server.crt key server.key switch(config-mgmt-sec-ssl-profile-serverssl)# !You can trust multiple CA certificates switch(config-mgmt-sec-ssl-profile-serverssl)# trust certificate ca.crt
Note: If you are using intermediate certificates to build a 'Chain of Trust' (such as server.crt -> intermediate1.crt -> intermediate2.crt -> ca.crt), then you need to configure the intermediate certificates as part of the SSL profile using the following commands:switch(config-mgmt-sec-ssl-profile-serverssl)# chain certificate intermediate1.crt switch(config-mgmt-sec-ssl-profile-serverssl)# chain certificate intermediate2.crt
- On CVX server, configure to use the serverssl SSL profile. With this
configuration, the CVX server starts listening on a secure port. the CVX server
will continue to listen on the default port. i.e., the CVX server will accept
connections from CVX clients over both SSL and default non-SSL transports.
During a SSL negotiation, the CVX server will authenticate itself to the CVX
clients by presenting server.crt and it verifies the authenticity of the CVX
client by checking if the CVX client certificate is signed by the trusted
certificate ca.crt.
switch(config)# cvx switch(config-cvx)# ssl profile serverssl
- On CVX client, copy the client certificate and key and also the CA certificate
to verify CVX server.
switch(config)# !Copy PEM encoded certificate and RSA key files for CVX client switch(config)# !Lets call them client.crt and client.key switch(config)# copy <url> certificate:client.crt switch(config)# copy <url> sslkey:client.key switch(config)# !Copy PEM encoded CA certificate used to verify the switch(config)# !certificate of CVX server. Lets call it ca.crt switch(config)# copy <url> certificate:ca.crt
Note: If you are using intermediate certificates to build a 'Chain of Trust' (such as client.crt -> intermediate1.crt -> intermediate2.crt -> ca.crt), then you need to configure the intermediate certificates as part of the SSL profile using the following commands:switch(config-mgmt-sec-ssl-profile-clientssl)# chain certificate intermediate1.crt switch(config-mgmt-sec-ssl-profile-clientssl)# chain certificate intermediate2.crt
- On CVX client, configure SSL profile with the certificates and key as below.
Lets call the SSL profile as clientssl.
switch(config)# management security switch(config-mgmt-security)# ssl profile clientssl switch(config-mgmt-sec-ssl-profile-clientssl)# certificate client.crt key client.key switch(config-mgmt-sec-ssl-profile-clientssl)# !You can trust multiple CA certificates switch(config-mgmt-sec-ssl-profile-clientssl)# trust certificate ca.crt
- On CVX client, configure to use the SSL profile clientssl. With this
configuration, the CVX client will connect to the secure port of the CVX server
over SSL transport. During SSL negotiation, the CVX client will authenticate
itself to the CVX server by presenting client.crt and it verifies the
authenticity of the CVX server by checking if the CVX server certificate is
signed by the trusted certificate ca.crt.
switch(config)# management cvx switch(config-mgmt-cvx)# ssl profile clientssl
Show Commands
For information regarding show commands of SSL certificate, key and profile, please refer to SSL Certificate and Key Management.
switch# show cvx
CVX Server
Status: Enabled
UUID: beb19142-dfaa-11e4-b996-001c73105347
Heartbeat interval: 20.0
Heartbeat timeout: 60.0
SSL profile: serverssl
Status: Enabled
the Enabled SSL status means that the SSL profile is enabled for CVX server and the CVX clients can connect to CVX server over SSL transport. If there are any errors, then the status will show Disabled and the reason will be listed. In Disabled state, the CVX clients wont be able to connect to CVX server over SSL transport.
switch# show cvx connections
switch 00:1c:73:10:53:48
Hostname: sq302
Status: up
Last heartbeat sent: 0:00:04 ago
Last heartbeat received: 0:00:10 ago
Clock offset: -0.00201620385865
Out-of-band connection: SSL secured
In-band connection: Not secured (SSL not supported)
the out-of-band connection shows as SSL secured, which means that the CVX client has connected to CVX server over SSL transport. the in-band connection is another connection between CVX server and CVX client. the SSL is not yet supported for this connection and hence it shows as SSL not supported. there is already some level of protection for the in-band connection. the CVX server and CVX client opens up the access to in-band connection only if the out-of-band connection is successful. Since the out-of-band connection is configured to use SSL, the in-band connection access is granted only for authentic CVX client and CVX server.
switch# show management cvx
CVX Client
Status: Enabled
Last connected time: 2015-04-14 11:16:19
Connection status: Connected
Out-of-band connection: SSL secured
In-band connection: Not secured (SSL not supported)
Negotiated version: 2
Controller UUID: 0e7dee2e-e2cf-11e4-880f-001c73105347
Controller: 127.0.0.1
Last heartbeat sent: 0:00:00 ago
Last heartbeat received: never
Clock offset: 0.0
SSL profile: clientssl
Status: Enabled
the Enabled SSL status means that the SSL profile is enabled and the CVX client can connect to CVX server over SSL transport. If there are any errors, then the status will show as Disabled and the reason will be listed. In Disabled state, the CVX client wont be able to connect to the CVX server.
Similar to the CVX server, the out-of-band connection shows as SSL secured and the SSL is not yet supported for in-band connection.
- SSL profile does not exist: If the SSL profile configured under CVX server/client is not configured under management security, you will see this message. Configure the SSL profile with required certificates and key under management security.
- Invalid SSL profile: If the SSL profile configured under CVX server/client is in invalid state, you will see this message. Check show management security ssl profile <name> command to see the errors on the SSL profile and fix them.
- Trusted certificates not configured in SSL profile: If the SSL profile configured under CVX server/client does not have trusted certificates configured, you will see this message. Configure trusted CA certificates in the SSL profile.
- Certificate not configured in SSL profile: If the SSL profile configured under CVX server/client does not have certificate key pair configured, you will see this message. Please configure certificate and key pair in the SSL profile.
Diffie-Hellman parameters not yet ready: When eos is booted, a Diffie-Hellman parameters file is auto generated by the system if one does not exist. This Diffie-Hellman parameters file is used for symmetric key exchange during SSL negotiation. Only the CVX server uses this file and hence this message can be seen only on show cvx command output. If the file is not yet generated, you will see this message. When the file is ready, this message automatically goes away and the SSL profile will become enabled.
CVX High Availability
CVX provides high availability by enabling you to use multiple (redundant) CVX Controllers in the same cluster. Each Controller in the cluster has its own dedicated machine so that if a Controller fails, the failure is isolated to a single machine.
Within a cluster, one of the Controllers is a primary (leader), and the other Controllers are backup (follower) Controllers. If the primary Controller fails, one of the backup Controllers automatically assumes the role of the primary Controller.
CVX high availability does not prevent or compromise the detection of software failures or link failures that may cause Controllers to be unreachable on the network.
- Configuring the CVX cluster.
- Configuring the CVX clients.
CVX Clusters
CVX clusters are sets of CVX Controllers (usually 3 Controllers). Within a cluster, each Controller runs on its own dedicated machine, and all of the Controllers run the same version of CVX. Each Controller in the cluster functions as either the primary (leader) Controller, or a backup (follower) Controller.
One of the CVX Controllers is elected by the group of Controllers to be the primary Controller. Once a Controller is elected to be the primary, the other Controllers in the cluster are automatically assigned the role of backup Controllers. Cluster members maintain an out-of-band connection amongst themselves, which is used for the leader election protocol.
CVX Controllers in a cluster that are not the primary Controller always function as backup Controllers. Within the same cluster, only one CVX Controller can assume the role of a primary at any time.
Required Number of Controllers to Support High Availability
A cluster must have enough Controllers so that in the case of a failure of the primary Controller, there are enough remaining Controllers for the election process to be completed. the election process is used by clusters to select a new primary Controller in the case of failure.
Examples
In a cluster with only two Controllers (one primary and one backup), a simple majority of backup Controllers does not exist after a failure of the primary Controller. A simple majority of two backup Controllers is required for the leader election process.
Cluster Configuration Options
- Cold followers mode - Only the Controllerdb of the primary (leader) CVX Controller mounts from the client switches.
- Warm followers mode - the Controllerdb of every (all) CVX Controllers in the cluster mount from the client switches.
Advantages and Disadvantages of the Modes
the advantage of the warm follower mode is that if the primary CVX Controller fails, the switchover to the new primary is faster than a switchover in cold follower mode. the reason for this is that the state of the new primary does not have to be rebuilt from scratch. the disadvantage of the warm follower mode is that serialization from the switch is slower compared to cold follower mode.
Handling of CVX Controller Failures
CVX Controllers can fail because of hardware or software faults. Because eos agents are designed to be software fault-tolerant, an agent that fails is automatically restarted and resumes operation statefully. the most recent saved state in Sysdb for the agent is used to restore the state of the agent.
CVX Support for eos Failure Modes
- Fail-stop
- Fail-recover
- A crash of the agent or machine running CVX.
- the CVX controller or dedicated machine it runs on is removed (partitioned) from the cluster.
Client Interaction
Client switches maintain an out-of-band connection to all members of the cluster. the connection is used to determine liveness and for communications. the connection is also used to signal a change in leadership (switchover) to the client switches. switchovers that are changes in leadership within a cluster are executed similarly to CVX Graceful Reboot switchovers.
the ControllerClient agent on the switch is responsible for maintaining liveness with the Controllers and for exchanging metadata. the ControllerClient agent registers with all cluster members. Each Controller's ControllerStatus has an additional flag to record whether the Controller is a leader within the cluster.
If there is more than one leader, the switch automatically waits until only one Controller is designated as the leader in the cluster. Once a single Controller is designated as the leader, the switch executes a graceful switchover to the new leader Controller.
Service Agents Interaction
One change to Service Agents is required to support CVX high availability. Service Agents must be modified to include the leader flag (this flag identifies the leader CVX Controller in the cluster). On a leader switchover, Service Agents are deactivated on the old leader Controller and activated on the new leader Controller. the client switches will perform a graceful switchover to the new leader Controller.
Leader Election
Leader election is an internal, system-run process that is essential to CVX high availability. the leader election process is used to safely elect a new leader Controller within a cluster following the failure of the current leader Controller, or a network configuration change that results in the loss of the current leader Controller in the cluster.
the leader election process is designed to ensure stability of leader Controllers within clusters. the process is based on an algorithm that provides the mechanism for the backup (follower) Controllers to elect (by consensus), the new leader Controller in the cluster.
Configuring CVX Clusters for High Availability
Configuring CVX clusters for high availability is a simple process that involves pointing each cluster member to the other cluster members using the peer host command. the objective of this task is to successfully register each cluster member with the other cluster members. Successful registration of the cluster members with each other ensures that the members can communicate with each other to elect a new leader member if the original leader member fails.
Once you complete the process, the cluster members will be successfully registered with each other. In addition, the cluster members will automatically elect a leader member and assign the leader to that member. the non-leader members are automatically assigned the role of follower.
Requirements
- the number of CVX Controllers in a cluster is 3.
- An odd number of CVX instances (CVX Controllers) are required to form a
cluster.Note: If an even number of CVX Controllers are configured in a cluster, a CVX instance will automatically refuse to participate in the cluster.
- All cluster members must point to each other. This is essential for clusters to operate normally. (the steps required to complete this task are included in the following procedure.)
-
cvs1 (10.0.0.1)
- cvs2 (10.0.0.2)
- cvs3 (10.0.0.3).
- Using the peer host command, configure one of the cluster members to point to
every other cluster member. This example shows the configuration of cluster
member cvs1 to point to the other cluster members
(cvs2 and cvs3).
cvs1(config-cvx)# peer host 10.0.0.2 (connects cvs1 to cvs2) cvs1(config-cvx)#peer host 10.0.0.3 (connects cvs1 to cvs3)
- Use the show cvx command to check the Mode and
Peer registration state status values for cluster member
cvs1. the status values should be:
- Mode = Cluster
- Peer registration state = Connecting Note: Mode automatically changes from Standalone to Cluster when configuring a CVX cluster. This is because the presence of multiple CVX peers causes the Mode to change to Cluster. Peer registration state remains in Connecting status after you configure the first cluster member. This is because the two peers must register with each other for the registration of the two members to be successful.
- Using the peer host command, configure peer cluster member
cvs2 to point to every other cluster member.
This example shows the configuration of cluster member
cvs2 to point to the other cluster members
(cvs1 and cvs3).
cvs2(config-cvx)# peer host 10.0.0.1 (connects cvs2 to cvs1) cvs2(config-cvx)# peer host 10.0.0.3 (connects cvs2 to cvs3)
- Use the show cvx command to check the Peer
registration state settings for cvs1. This is
done to verify that peers cvs1 and
cvs2 are successfully registered with each
other.
cvs1(config-cvx)# show cvx
Example
This example shows the output of the show cvx command for cvs1. the Peer registration state setting of Registration Complete for peer cvs2 indicates a successful registration between cvs1 and cvs2.cvs1(config-cvx)#show cvx CVX Server Status: Enabled UUID: 6c208fba-7324-11e5-8fef-1d98cdd3b27a Mode: Cluster Heartbeat interval: 20.0 Heartbeat timeout: 60.0 Cluster Status Name: default Role: Standby Leader: 10.0.0.2 Peer timeout: 10.0 Last leader switchover timestamp: 0:00:03 ago Peer Status for 10.0.0.3 Peer registration state: Connecting Peer service version compatibility : Version mismatch Peer Status for 10.0.0.2 Peer Id : 02-01-63-02-00-00 Peer registration state: Registration complete Peer service version compatibility : Version ok
- Using the peer host command, configure peer cluster member
cvs3 to point to every other cluster member.
This example shows the configuration of cluster member
cvs3 to point to the other cluster members
(cvs1 and cvs2).
cvs3(config-cvx)# peer host 10.0.0.1 (connects cvs3 to cvs1) cvs3(config-cvx)# peer host 10.0.0.2 (connects cvs3 to cvs2)
- Use the show cvx command to check the Peer registration state settings for
cvs1. This is done to verify that peers
cvs1 and cvs3 are
successfully registered with each other.
cvs1(config-cvx)# show cvx
Example
This example shows the output of the show cvx command for cvs1. the Peer registration state setting of Registration Complete for peer cvs3 indicates a successful registration between cvs1 and cvs3.cvs1(config-cvx)# sh cvx CVX Server Status: Enabled UUID: 6c208fba-7324-11e5-8fef-1d98cdd3b27a Mode: Cluster Heartbeat interval: 20.0 Heartbeat timeout: 60.0 Cluster Status Name: default Role: Standby Leader: 10.0.0.2 Peer timeout: 10.0 Last leader switchover timestamp: 0:05:37 ago Peer Status for 10.0.0.3 Peer Id : 02-01-63-03-00-00 Peer registration state: Registration complete Peer service version compatibility : Version ok Peer Status for 10.0.0.2 Peer Id : 02-01-63-02-00-00 Peer registration state: Registration complete Peer service version compatibility : Version ok
Next Step
You are now ready to configure the CVX clients for high availability (see Configuring CVX Clients for High Availability).
Configuring CVX Clients for High Availability
Once you complete the process, the CVX clients will have established connections with each cluster member (the Connection status for each Controller should be Established). In addition, the clients will be aware of which CVX instance (Controller) is currently the leader in the cluster.
- Using the server host command, configure each of the CVX clients to point to
every cluster member. This example shows the configuration of client
cvc1 to point to all of the cluster members
(the addresses of the cluster members are 10.0.0.1,
10.0.0.2, and
10.0.0.3).
cvc1(config-mgmt-cvx)# server host 10.0.0.1 (connects cvc1 to cluster member 10.0.0.1) cvc1(config-mgmt-cvx)# server host 10.0.0.2 (connects cvc1 to cluster member 10.0.0.2) cvc1(config-mgmt-cvx)# server host 10.0.0.3 (connects cvc1 to cluster member 10.0.0.3)
- Use the show man cvx command to check the status of
client cvc1. the Connection status for each cluster
member should be Established. In addition, the client is also aware that cluster
member 10.0.0.3 is the current Master.
cvc1(config-mgmt-cvx)#show man cvx CVX Client Status: Enabled Source interface: Inactive (Not configured) Controller cluster name: default Controller status for 10.0.0.1 Connection status: established Out-of-band connection: Not secured In-band connection: Not secured (SSL not supported) Negotiated version: 2 Controller UUID: 6c208fba-7324-11e5-8fef-1d98cdd3b27a Last heartbeat sent: 0:00:07 ago Last heartbeat received: 0:00:07 ago Controller status for 10.0.0.3 Master since 0:03:34 ago Connection status: established Out-of-band connection: Not secured In-band connection: Not secured (SSL not supported) Negotiated version: 2 Controller UUID: c64954b8-7324-11e5-9f33-51f8b016cae8 Last heartbeat sent: 0:00:14 ago Last heartbeat received: 0:00:14 ago Controller status for 10.0.0.2 Connection status: established Out-of-band connection: Not secured In-band connection: Not secured (SSL not supported) Negotiated version: 2 Controller UUID: 6a0dbf2c-7324-11e5-94f3-ff17a8a1cdc8 Last heartbeat sent: 0:00:05 ago Last heartbeat received: 0:00:05 ago
CVX VIP
CVX VIP provides the virtual IP address that actively follows the master controller of the CVX cluster.
the virtual IP address of the CVX HA Cluster is configured on a macvlan interface setup on top of a physical management interface of the master controller. the virtual IP and virtual MAC needs to be provided by the customer as part of the controller configuration. This information is available to all controllers as each cluster member has to be configured manually by the user on all controllers.
the macvlan interface created should be designated as `Management0`. `Management0` is currently used for the ManagementActive interface on modular switches. Without explicit configuration of VIP and VMAC, CVX VIP functionality will not work in the CVX HA cluster.
Customers can pick the VMAC from a pool of MAC addresses reserved for use with CVX clusters. the OUI pool, 00:1C:73:00:00:AA “ 00:1C:73:00:00:FF has been reserved for this purpose.
the macvlan interface is setup if all of the following conditions are met:
- VMAC is configured by the user
- the controller instance is a leader
- there are more than one controller instances
- the controller is not being run on a modular system
Configuring VIP
All CLI commands applicable to the management interface of the controller will be allowed onManagement0, with the exception of Layer 1 / phy level commands. So auto-negotiation or flow control cannot be configured on the Management0 interface. Instead these commands can only be run on the physical management interfaces. This makes sense as the phy-level configuration really depends on what the interface is physically wire.
CVX(config)# interface management 0
CVX(config-if-Ma0)# mac-address 00:1C:72:00:00:FF
CVX(config-if-Ma0)# ip address 10.0.0.2
Data Replication
At eos boot time, SSH host keys and Diffie-Hellman parameters are automatically generated and persistently stored on each controller. Multiple SSL profiles / keys / certificates might also be created and used by various agents on the controllers. Since these information contribute to the identity of the master, they will need to follow the master controller for all time.
In case of a controller switchover, the newly elected master controller will need to use the same SSH host keys & SSL profiles / keys / certificates to retain its identity and prevent any kind of network security alarms from being tripped. For example, if an SSH client notices that the host key has changed, it will normally flag an error warning the user of a possible man-in-the-middle type attack. Hence, this data will be replicated from the master to slaves.
SSH Host Key Tagging
SSH host keys are tagged with the chassis MAC address to deal with key regeneration issues when a supervisor module is moved from one chassis to another. This behavior will cause regeneration issues if we replicate the SSH host keys across the cluster resulting in the key fingerprint seen by management tools to be different.
To mitigate this, in addition to the chassis MAC address, the host keys would now be tagged with VMAC of the CVX HA cluster. If CVX VIP and VMAC are configured, SshHostKeysAgent will not regenerate keys if tagged VMAC and configured VMAC are the same, even if there is a mismatch between the chassis MAC and tagged MAC.
CVX Commands
CVX Server Commands
CVX Client Commands
- management cvx
- heartbeat-interval (Management-CVX)
- heartbeat-timeout (Management-CVX)
- server host (Management-CVX)
- source-interface (Management-CVX)
- shutdown (Management-CVX)
CVX OpenStack Commands
- name-resolution force (CVX-OpenStack)
- name-resolution interval (CVX-OpenStack)
- service openstack
- shutdown (CVX-OpenStack)
CVX VXLAN Control Service Commands
CVX Hardware switch Controller (HSC) Commands
CVX Network Topology Service Commands
cvx
CVX (CloudVision eXtension) aggregates and shares status across a network of physical switches running eos. CVX services provide visibility and coordinate activities across a network of switches that are configured as CVX clients.
the cvx command enters CVX configuration mode. CVX configuration mode is not a group-change mode; running-config is changed immediately upon entering commands. Exiting CVX configuration mode does not affect running-config. the exit command returns the switch to global configuration mode.
the no cvx and default cvx commands restore all CVX server defaults by deleting all CVX configuration mode statements from the running-config.
Command Mode
Global Configuration
Command Syntax
cvx
no cvx
default cvx
- port (CVX)
- service openstack
- service VXLAN
- shutdown (CVX)
- heartbeat-interval (CVX)
- heartbeat-timeout (CVX)
Example
switch(config)# cvx
switch(config-cvx)# show active all
cvx
shutdown
port 9979
heartbeat-interval 20
heartbeat-timeout 60
no service VXLAN
service openstack
shutdown
name-resolution interval 21600
switch(config-cvx)#
heartbeat-interval (CVX)
the heartbeat-interval command configures the interval between heartbeat messages that the switch sends as a CVX server. Heartbeat messages are part of the keepalive mechanism between CVX and the CVX clients to which it connects.
the no heartbeat-interval and default heartbeat-interval commands restore the heartbeat interval to the default setting by removing the heartbeat-interval command from running-config.
Command Mode
CVX Configuration
Command Syntax
heartbeat-interval period
no heartbeat-interval
default heartbeat-interval
Parameters
period Interval duration (seconds). Value ranges from 5 through 60. Default value is 20.
- cvx.
- heartbeat-timeout (CVX)
Guidelines
Heartbeat messages flow independently in both directions between CVX and clients. When a client stops receiving heartbeat messages from the server within a specified period, the client assumes that the CVX server is no longer functioning.
Best practices dictate that CVX and its client applications configure identical heartbeat interval values.
Example
switch(config)# cvx
switch(config-cvx)# heartbeat-interval 30
switch(config-cvx)#
heartbeat-interval (Management-CVX)
the heartbeat-interval command configures the interval between heartbeat messages that the switch sends as a CVX client. Heartbeat messages are part of the keepalive mechanism between the CVX client and the CVX server to which it connects.
the no heartbeat-interval and default heartbeat-interval commands revert the heartbeat interval to the default setting by removing the heartbeat-interval command from running-config.
Command Mode
Mgmt-CVX Configuration
Command Syntax
heartbeat-interval period
no heartbeat-interval
default heartbeat-interval
Parameters
period: Interval duration (seconds). Value ranges from 5 through 60. Default value is 20.
GuidelinesHeartbeat messages flow independently in both directions between CVX and clients. When the server stops receiving heartbeat messages from a client within a specified period, the server assumes that the device it is no longer functioning as a CVX client.
Best practices dictate that the CVX client's heartbeat interval value is identical to that of its CVX server.
Related Commands
heartbeat-timeout (Management-CVX) specifies the CVX client timeout interval.
Example
switch(config)# management cvx
switch(config-mgmt-cvx)# heartbeat-interval 30
switch(config-mgmt-cvx)#
heartbeat-timeout (CVX)
the heartbeat-timeout command specifies the CVX timeout period. When a CVX server does not receive consecutive heartbeat messages from a CVX client within the heartbeat timeout period, the server discontinues providing CVX services to the client device. the default timeout period is 60 seconds.
the no heartbeat-timeout and default heartbeat-timeout-timeout commands restore the heartbeat timeout to the default setting by removing the heartbeat-timeout command from running-config.
Command Mode
CVX Configuration
Command Syntax
heartbeat-timeout period
no heartbeat-timeout
default heartbeat-timeout
- cvx places the switch in CVX configuration mode.
- heartbeat-interval (CVX) specifies the CVX heartbeat interval.
Parameters
period heartbeat timeout interval (seconds). Value ranges from 15 to 10800. Default value is 60.
Guidelines
Best practices dictate that CVX and its client applications configure identical heartbeat timeout values.
Examples
switch(config)# cvx
switch(config-cvx)# heartbeat-timeout 90
switch(config-cvx)#
heartbeat-timeout (Management-CVX)
the heartbeat-timeout command specifies the CVX client timeout period. When a CVX client does not receive consecutive heartbeat messages from a CVX server within the period specified by this command, the client assumes that its connection to CVX is disrupted. the default timeout period is 60 seconds.
the no heartbeat-timeout and default heartbeat-timeout commands restore the CVX client heartbeat timeout to the default setting by removing the heartbeat-timeout command from running-config.
Command Mode
Mgmt-CVX Configuration
Command Syntax
heartbeat-timeout period
no heartbeat-timeout
default heartbeat-timeout
Parameters
period heartbeat timeout interval (seconds). Value ranges from 15 to 10800. Default value is 60.
Guidelines
Best practices dictate that the CVX client's heartbeat timeout value is identical to that of its CVX server.
Related Command
heartbeat-interval (Management-CVX) specifies the CVX client heartbeat interval.
Example
switch(config)# management cvx
switch(config-mgmt-cvx)# heartbeat-timeout 90
switch(config-mgmt-cvx)#
lldp run
the lldp run command enables LLDP on the Arista switch.
Command Mode
Global Configuration
Command Syntax
lldp run
no lldp run
default lldp run
- This command enables LLDP globally on the Arista switch.
switch(config)# lldp run switch(config)#
- This command disables LLDP globally on the Arista
switch.
switch(config)# no lldp run switch(config)#
management cvx
the management cvx command places the switch in mgmt-CVX configuration mode to configure CVX client parameters.
Mgmt-CVX configuration mode is not a group-change mode; running-config is changed immediately upon entering commands. Exiting mgmt-CVX configuration mode does not affect the running-config. the exit command returns the switch to global configuration mode.
the no management cvx and default management cvx commands delete all mgmt-CVX configuration mode statements from the running-config.
Command Mode
Global Configuration
Command Syntax
management cvx
no management cvx
default management cvx
exit
- heartbeat-interval (Management-CVX)
- heartbeat-timeout (Management-CVX)
- server host (Management-CVX)
- source-interface (Management-CVX)
- shutdown (Management-CVX)
- This command places the switch in mgmt-CVX configuration
mode.
switch(config)# management cvx switch(s1)(config-mgmt-cvx)#
- This command returns the switch to global management mode:
switch(config-mgmt-cvx)# exit switch(config)#
manager
the manager command configures the IP address of the OVSDB controller for the HSC service, allowing CVX to connect to the controller.
the no manager and default manager commands remove the HSC manager configuration from running-config.
Command Mode
CVX-HSC Configuration
Command Syntax
manager ip_address [port]
- ip_addressIP address of the HSC manager.
- port connection port. Values range from 1 to 65535; default value is 6632.
Related Commands
service hsc places the switch in CVX-HSC configuration mode.
Example
switch(config)# cvx
switch(config-cvx)# service hsc
switch(config-cvx-hsc)# manager 192.163.2.5
switch(config-cvx-hsc)#
name-resolution force (CVX-OpenStack)
the name-resolution force command initiates an OpenStack controller function that communicates with the OpenStack Keystone and Nova services to update names of VMs and tenants mapped by the local OpenStack instance.
the OpenStack controller accesses the Keystone and Nova services in response to various triggering events (such as the creation of a new tenant, network or VM), and also at a regular interval configured by the name-resolution interval (CVX-OpenStack) command (default interval 6 hours). the name-resolution force command is used to force an immediate update without waiting for a triggering event.
Command Mode
CVX-OpenStack Configuration
Command Syntax
name-resolution force
- service openstack places the switch in CVX-OpenStack configuration mode.
- name-resolution interval (CVX-OpenStack) sets the interval for automatic Keystone updates.
Example
switch(config)# cvx
switch(config-cvx)# service openstack
switch(config-cvx-openstack)# name-resolution force
switch(config-cvx-openstack)#
name-resolution interval (CVX-OpenStack)
the name-resolution interval command specifies the period between consecutive requests that the OpenStack controller sends to the Keystone service for VM and tenant name updates. Keystone is OpenStack’s authentication and authorization service.
the default period is 21600 seconds (six hours).
the name-resolution force (CVX-OpenStack) command performs an immediate update, as opposed to waiting for the periodic update.
Command Mode
CVX-OpenStack Configuration
Command Syntax
name-resolution interval period
Parameters
periodKeystone identity service polling interval (seconds).
Related Command
service openstack places the switch in CVX-OpenStack configuration mode.
Example
switch(config)# cvx
switch(config-cvx)# service openstack
switch(config-cvx-openstack)# name-resolution interval 18000
switch(config-cvx-openstack)#
ovsdb-shutdown
the ovsdb-shutdown command shuts down the OVSDB server.
the no ovsdb-shutdown and default ovsdb-shutdown commands enable the OVSDB server by removing the ovsdb-shutdown command from the running-config.
Command Mode
CVX-HSC Configuration
Command Syntax
ovsdb-shutdown
no ovsdb-shutdown
default ovsdb-shutdown
Related Command
the service hsc command places the switch in the CVX-HSC configuration mode.
Example
switch(config)# cvx
switch(config-cvx)# service hsc
switch(config-cvx-hsc)# ovsdb-shutdown
switch(config-cvx-hsc)#
port (CVX)
the port command specifies the TCP port number the CVX server listens on. the default port number is 9979.
the no port and default port commands restore the default port number by removing the port statement from running-config.
Command Mode
CVX Configuration
Command Syntax
port port_number
no port
default port
Parameter
port_number TCP port number. Value ranges from 1 to 65535.Related Command
cvx places the switch in the CVX configuration mode.
- these commands configure 9500 as the CVX server
port.
switch# config switch(config)# cvx switch(config-cvx)# port 9500 switch(config-cvx)#
- these commands restore the default port (9979) as
the CVX server
port.
switch(config-cvx)# no port switch(config-cvx)#
resync-period
the resync-period command configures the grace period for completion of synchronization between the VXLAN control service and clients after a CVX restart. Arista recommends leaving the grace period set to its default of 300 seconds.
the no resync-period command disables VXLAN control service graceful restart. the default resync-period command resets the grace period to its default of 300 seconds.
Command Mode
CVX-VXLAN Configuration
Command Syntax
resync-period seconds
no resync-period
default resync-period
Parameter
seconds synchronization grace period in seconds. Values range from 30 to 4800; default is 300.
Example
switch(config)# cvx
switch(config-cvx)# service VXLAN
switch(config-cvx-VXLAN)# default resync-period
switch(config-cvx-VXLAN)#
server host (Management-CVX)
the server host command configures the IP address or host name of the CVX server to which the CVX client device connects. the configuration of this address is required for the switch to function as a CVX client. By default, no CVX host address is specified.
the no server host and default server host commands remove the CVX host address assignment by removing the server host statement from the running-config.
Command Mode
Mgmt-CVX Configuration
Command Syntax
server host host
no server host
default server host
Parameter
hostIPv4 address (in dotted decimal notation) or FQDN host name of the CVX server.
Example
switch(config)# management cvx
switch(config-mgmt-cvx)# server host 10.1.1.14
switch(config-mgmt-cvx)#
service hsc
the service hsc command enters the CVX-HSC configuration mode where the HSC service is enabled and configured.
CVX-HSC configuration mode is not a group change mode; the running-config is changed immediately upon entering commands. Exiting the CVX-HSC configuration mode does not affect running-config. the exit command returns the switch to global configuration mode.
Command Mode
CVX Configuration
Command Syntax
service hsc
- manager
- ovsdb-shutdown
- shutdown (CVX-HSC)
Related Command
cvx places the switch into the CVX configuration mode.
Example
switch(config)# cvx
switch(config-cvx)# service hsc
switch(config-cvx-hsc)#
service openstack
the service openstack command places the switch in CVX-OpenStack configuration mode.
In order to integrate Arista switches into an OpenStack managed cloud network, OpenStack needs to interact with CVX to configure and maintain VLANs on appropriate physical switch ports that connect to hosts where the VMs reside.
CVX-OpenStack configuration mode is not a group change mode;the running-config is changed immediately upon entering commands. Exiting the CVX-OpenStack configuration mode does not affect the running-config. the exit command returns the switch to global configuration mode.
Command Mode
CVX Configuration
Command Syntax
service openstack
- name-resolution force (CVX-OpenStack)
- name-resolution interval (CVX-OpenStack)
- shutdown (CVX-OpenStack)
Related Command
cvx places the switch into the CVX configuration mode.
Example
switch(config)# cvx
switch(config-cvx)# service openstack
switch(config-cvx-openstack)#
service topology
the service topology command configures the topology statically on CVX without running LLDP on the servers connected to switches.
the no service topology command removes the static topology configuration from the running-config.
Command Mode
CVX Configuration Mode
Command Syntax
service topology
no service topology
- the following command configures topology statically on the
switch.
switch# config switch(config)# cvx switch(config-cvx)# service topology switch(config-cvx-topology)#
service VXLAN
the service VXLAN command enters the CVX-VXLAN configuration mode where the VXLAN control service is enabled and configured.
the CVX-VXLAN configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting theCVX-VXLAN configuration mode does not affect the running-config. the exit command returns the switch to global configuration mode.
Command Mode
CVX Configuration
Command Syntax
service VXLAN
- resync-period
- shutdown (CVX-VXLAN)
- vtep (CVX-VXLAN)
Related Command
the cvx command places the switch into the CVX configuration mode.
Example
switch(config)# cvx
switch(config-cvx)# service VXLAN
switch(config-cvx-VXLAN)#
show cvx
the show cvx command displays the enable status and current configuration of CVX.
Command Mode
EXEC
Command Syntax
show cvx
Example
switch(config)# cvx
cvx
no shutdown
heartbeat-interval 30
heartbeat-timeout 90
switch(config-cvx)# dis
switch> show cvx
CVX Server
Status: Enabled
UUID: 75ce27ce-cc04-11e4-a404-233646319a2c
Heartbeat interval: 30.0
Heartbeat timeout: 90.0
switch>
show network physical-topology
the show network physical-topology command displays the network topology discovered through CVX.
Command Mode
EXEC
Command Syntax
show network physical-topology hosts|neighbors
- hostsDisplays all hosts visible in the topology.
- neighbors Displays all connections in the network topology. Table is sorted by host name, and can be optionally filtered by host.
-
This command displays all visible hosts.
switch# show network physical-topology hosts Unique Id Hostname -------------------- ------------------------------ 001c.7385.be69 cvx287.sjc.aristanetworks.com 0000.6401.0000 cvc1 0000.6402.0000 cvc2 0000.6403.0000 cvc3 0000.6404.0000 cvc4 bcf6.85bd.8050 dsj14-rack14-tor1
- This command displays all connections in the
topology.
switch# show network physical-topology neighbors cvx287.sjc.aristanetworks.com Interface Neighbor Intf Neighbor Host ------------------ ------------------ ----------------------- Ethernet1 Ethernet7 cvc4 Ethernet2 Ethernet7 cvc2 Ethernet9 Ethernet7 cvc1 Ethernet10 Ethernet7 cvc3 Management1 27 dsj14-rack14-tor1 OUTPUT OMITTED FROM EXAMPLE dsj14-rack14-tor1 Interface Neighbor Intf Neighbor Host ------------------ ------------------ ----------------------- 27 Management1 cvx287.sjc.aristanetwork
shutdown (CVX)
the shutdown command, in cvx mode, disables or enables the switch as a CVX server. By default, CVX is disabled on the switch.
Command Mode
CVX Configuration
Command Syntax
shutdown
no shutdown
default shutdown
Related Command
the cvx command places the switch in CVX configuration mode.
-
these commands enable the switch as a CVX server.
switch# config switch(config)# cvx switch(config-cvx)# no shutdown switch(config-cvx)#
- This command disables CVX on the switch.
switch(config-cvx)# shutdown switch(config-cvx)#
shutdown (CVX-HSC)
the shutdown command, in CVX-HSC configuration mode, disables or enables the CVX service on the switch. HSC is disabled by default.
When a CVX server enables HSC, its clients (hardware VTEPs) are able to share state to establish VXLAN tunnels without the need for a multicast control plane. Configuration is also required on the client switches.
the no shutdown command enables the HSC service; the shutdown and default shutdown commands disable the HSC service.
Command Mode
CVX-VXLAN Configuration
Command Syntax
shutdown
no shutdown
default shutdown
Related Command
the service hsc command places the switch into the CVX-HSC configuration mode.
- these commands enable the HSC service.
switch(config)# cvx switch(config-cvx)# service hsx switch(config-cvx-hsc)# no shutdown switch(config-cvx-hsc)#
- these commands disable the HSC service.
switch(config)# cvx switch(config-cvx)# service hsx switch(config-cvx-hsc)# shutdown switch(config-cvx-hsc)#
shutdown (Management-CVX)
the shutdown command, in the mgmt-cvx mode, disables or enables CVX client services on the switch. CVX services are disabled by default.
the no shutdown command enables CVX client services. the shutdown and default shutdown commands disable CVX client services by removing the corresponding no shutdown command from the running-config.
Command Mode
Mgmt-CVX Configuration
Command Syntax
shutdown
no shutdown
default shutdown
- these commands enable CVX client
services.
switch(config)# management cvx switch(config-mgmt-cvx)# no shutdown switch(config-mgmt-cvx)#
- This command disables CVX client services.
switch(config-mgmt-cvx)# shutdown switch(config-mgmt-cvx)#
shutdown (CVX-OpenStack)
the shutdown command, in the cvx-openstack configuration mode, disables or enables CVX-OpenStack on the switch. CVX-OpenStack is disabled by default.
When a CVX server enables OpenStack services, its clients are accessible to the OpenStack network controller (Neutron). Integrating Arista switches into an OpenStack-managed cloud network requires OpenStack to interact with CVX to configure and maintain VLANs on appropriate physical switch ports that connect to the hosts where the VMs reside.
the no shutdown command enables CVX-OpenStack. the shutdown and default shutdown commands disable CVX-OpenStack by removing the corresponding no shutdown command from the running-config.
Command Mode
CVX-OpenStack Configuration
Command Syntax
shutdown
no shutdown
default shutdown
Related Command
service openstack places the switch in CVX-OpenStack configuration mode.
- these commands enable
CVX-OpenStack.
switch(config)# cvx switch(config-cvx)# service openstack switch(config-cvx-openstack)# no shutdown switch(config-cvx-openstack)#
- these commands disable
CVX-OpenStack.
switch(config-cvx-openstack)# switch(config-cvx-openstack)# shutdown switch(config-cvx-openstack)#
shutdown (CVX-VXLAN)
the shutdown command, in CVX-VXLAN configuration mode, disables or enables the CVX VXLAN control service on the switch. VXLAN control service is disabled by default.
When a CVX server enables VXLAN control service, its clients (hardware VTEPs) are able to share state to establish VXLAN tunnels without the need for a multicast control plane. Configuration is also required on the client switches.
the no shutdown command enables the VXLAN control service. the shutdown and default shutdown commands disable the VXLAN control service.
Command Mode
CVX-VXLAN Configuration
Command Syntax
shutdown
no shutdown
default shutdown
Related Command
the service VXLAN command places the switch in CVX-VXLAN configuration mode.
- these commands enable VXLAN control service.
switch(config)# cvx switch(config-cvx)# service VXLAN switch(config-cvx-VXLAN)# no shutdown switch(config-cvx-VXLAN)#
- these commands disable VXLAN control
service.
switch(config)# cvx switch(config-cvx)# service VXLAN switch(config-cvx-VXLAN)# shutdown switch(config-cvx-VXLAN)#
source-interface (Management-CVX)
the source-interface command specifies the interface from where the IPv4 address is derived for use as the source for outbound CVX packets that the switch sends as a CVX client. there is no default source interface assignment.
the no source-interface and default source-interface commands remove the source interface assignment for the CVX client by deleting the source-interface statement from the running-config.
Command Mode
Mgmt-CVX Configuration
Command Syntax
source-interface INT_NAME
no source-interface
default source-interface
Parameters
- ethernet e_num: Ethernet interface specified by e_num.
- loopback l_num: Loopback interface specified by l_num.
- management m_num: Management interface specified by m_num.
- port-channel p_num: Port-Channel Interface specified by p_num.
- vlan v_num: VLAN interface specified by v_num.
Example
switch# config
switch(config)# interface loopback 5
switch(config-if-Lo5)# ip address 10.24.24.1/24
switch(config-if-Lo5)# exit
switch(config)# management cvx
switch(config-mgmt-cvx)# source-interface loopback 5
switch(config-mgmt-cvx)#
vtep (CVX-HSC)
the HSC service sends flood lists to each VTEP through CVX. Some controllers (such as VMware NSX's Service Nodes) implement replication nodes for head-end replication of unknown packets. For these controllers, BUM packets should be sent to a single replication node (send-to-any replication), and the flood list sent by the HSC service is a list of replication nodes. Other controllers (such as Nuage VSP) require each VTEP to perform its own head-end replication. For these, BUM packets should be sent to every known VTEP, and the flood list sent by the HSC service is the list of VTEPs.
the default behavior is to use a send-to-any replication list of VTEPs. If the required behavior is send-to-all replication of, use the all option of the vtep command in the CVX-HSC configuration mode.
Command Mode
CVX-HSC Configuration
Command Syntax
vtep flood list type all | any
no vtep flood list type
default vtep flood list type
- all: send-to-all replication; flood list is the list of VTEPs.
- any: send-to-any replication; flood list is a list of replication nodes. This is the default setting.
Example
switch(config)# cvx
switch(config-cvx)# service hsc
switch(config-cvx-hsc)# vtep flood list type all
switch(config-cvx-hsc)#
vtep (CVX-VXLAN)
the OVSDB management protocol includes provisions for control-plane MAC learning, which allows MAC addresses to be distributed among VTEPs without using the data plane. Some controllers (such as VMware NSX) take advantage of this facility; others (such as Nuage VSP) do not. By default, CVX uses control-plane MAC learning.
To switch to data plane MAC learning, use the vtep command in the CVX-VXLAN configuration mode, as shown below.
Command Mode
CVX-VXLAN Configuration
Command Syntax
vtep mac-learning [control-plane|data-plane ]
Related Command
the service VXLAN command places the switch into the CVX-VXLAN configuration mode.
Example
switch(config)# cvx
switch(config-cvx)# service VXLAN
switch(config-cvx-VXLAN)# vtep mac-learning data-plane
switch(config-cvx)#