Quick and Dirty – How to add a static route to Nutanix CVM

Background

My use case is that I have two Nutanix CE clusters connected with a VPN link. I have no ability to modify the routes on a router, so the next best thing is to set a static route on each Controller Virtual Machine (CVM). This will allow communication between clusters over the VPN.

How to do it

SSH onto the CVM management IP address. Default credentials are U: nutanix / P: nutanix/4u

Run an IFCONFIG and ensure that the CVM management IP address is associated with eth0. If it’s a different NIC, adjust accordingly.

Run the following.

Hit the INSERT key to start to enter text in the VI session.

Add your remote network details like so, replace gateway and subnet as appropriate:

The press ESC followed by :wq and return to save the file.

Then run the following to restart network services.

And you are done.

I followed the same procedure and created a route file for eth0:1 as well which is the cluster IP address. Repeat the above process on each CVM in the cluster

 

Ian

You may also like...

1 Response

  1. 23rd April 2018

    […] Want to learn more? Read the source post! […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.