Description | This article provides instructions on how to set a static IP address manually on the Ubuntu VM. Starting from version 7.4.1, FortiClient EMS is also available as a VM image for different hypervisor platforms (Vmware, KVM, Hyperv, and ...). By default, the VM's ethernet interfaces are configured to get IP address details from DHCP. |
Scope | Linux-based FortiClient EMS v7.4. |
Solution |
The VM image is a preinstalled EMS on an Ubuntu v22.04 LTS which utilizes Netplan for interface management (Canonical Netplan).
There are two methods for configuring the networking settings:
Example commands to use netplan to configure the static IP address, default GW, and DNS: Use the 'ip a command to find the interface name, enp0s3 in the following example. More about Linux systemd interface naming is available at systemd.net-naming-scheme.
sudo netplan set ethernets.enp3s0.addresses=[192.168.1.10/24] sudo netplan set ethernets.enp3s0.nameservers.search=[test1.local,test2.local,test3.local] --> Use this command to include local domains to resolve anything ending with e.g. test1.local The gateway4 has been decrypted, however it works! It is easier to simply use gateway4. The new notation uses Default Routes. It is easier and faster to use gateway4 in the console window and update the YAML file later when SSH access is available over IP:
More information on how to configure network settings in Ubuntu is available in Configuring networks | Ubuntu Example YAML configuration for Netplan: Examples - Netplan documentation
To configure the VM IP address by modifying Netplan configuration files, see Deploying EMS as a VM image | FortiClient 7.4.1 | Fortinet Document Library |