Created on
11-14-2024
06:58 AM
Edited on
01-14-2026
04:40 AM
By
Jean-Philippe_P
| 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, Hyper-V, 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 22.04 LTS or 24.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 deprecated; 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. Example YAML configuration for Netplan: Examples.
To configure the VM IP address by modifying Netplan configuration files, see Deploying EMS as a VM image.
Procedure to modify network settings has been updated for FortiClient EMS 7.4.4 and above, consolidating Netplan configuration from emscli, using 'system set network ip' command:
system set network ip --adapter=<adapter name> --ip=<IP/subnet> --gateway=<gateway IP> --dns=<dns address>
Use the 'system get info' command to find the network configuration and interface name, ens6, in the following example.
To restore configuration to DHCP, use the following command:
system set network ip --adapter=<adapter name> --reset.dns --dynamic
More information on how to configure the network in FortiClient EMS v7.4.4 is available in Deploying EMS as a VM image. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.