How-To Guides
Litmus Edge Manager Admin Cons...

Set a Static IP Address

6min

You can set a static IP address for Litmus Edge Manager instead of using DHCP.

If you have installed Litmus Edge Manager on ESXi and there is no IP address shown to access the interface, you must set a static IP address.

If you would like to change the current IP address used to access Litmus Edge Manager, see Change the IP Address of Litmus Edge Manager.

Depending on your version of Litmus Edge Manager, refer to the appropriate steps.

Litmus Edge Manager Version 2.16.0 and Later

These steps are for Litmus Edge Manager 2.16.0 and later on Ubuntu 22. Network configuration is managed by Netplan https://netplan.io/.

To set a static IP address:

  1. Login to the VM console.
  2. Use the following command to get the filename in the NetPlan config directory. Depending on the Linux distribution NetPlan configuration, the file can have different filenames. sudo ls -l /etc/netplan

The default configuration looks like the following:

YAML


You will need to update this configuration. As an example, you will disable DHCP and set the static IP address of 10.17.8.146/22 with the default router of 10.17.8.1. The configuration will be updated to the following:

YAML


Apply the configuration with the following command.

sudo netplan apply

Once the new IP address is set, if the base domain name was set as an IP address, log in to the Litmus Edge Manager Admin Console (https://[LEM IP address]:8446) and update the base and remote domain names. See Domain Settings to learn more.

If you get an error message that the network interface configuration failed, see Static IP Address Error to resolve it.

Litmus Edge Manager Version 2.15.0 and Earlier

These steps are for Litmus Edge Manager 2.15.0 and earlier on Ubuntu 18.

To set a static IP address:

1. From a command prompt, enter the following:

NEW_IP=xxx.xxx.1.222 sudo /opt/lem/bin/lem-update-domain-names.sh $NEW_IP $NEW_IP sudo /opt/lem/bin/stop-all-nomad-jobs.sh sudo vi /etc/netplan/01-netcfg.yaml

The .yaml file opens.

Note: The .yaml file is located in /etc/netplan/01-netcfg.yaml.

2. Enter the following lines in the .yaml file while substituting x with the relevant numbers:

YAML


3. From a command prompt, enter the following:

sudo netplan apply sudo reboot