Skip to main content
xandergomez
New Member
September 11, 2025
Solved

Configure IP for foritclient ems

  • September 11, 2025
  • 6 replies
  • 3351 views

Hello. I am standing up a FortiClient #EMS ppliance for the first time, and I have somewhat limited experience with Ubuntu. Our platform is Hyper-V.  The vhdx was properly installed and booted.  I was able to login with user 'ems' and successfully changed the password. So far so good. However, it seems to me that after login, I am now in the 'bash shell', and the instructions for configuring an IP, seem to be based on being in the terminal. None of the commands available in bash seem to allow me to do this. And the instructions here don't work, as they are for terminal. 

 

I tried "execute ls /etc/netplan" but it told me "folder /etc/netplan is not accessible"

 

Can you please help me configure IP? I imagine once that's done, we can ssh into the terminal or maybe even a webpage?

 

Deploying EMS as a VM image | FortiClient 7.4.4 | Fortinet Document Library

Configuring the VM IP address by modifying Netplan configuration files

To configure the VM IP address by modifying Netplan configuration files:
  1. On the VM, locate the Netplan configuration files. Ubuntu stores Netplan configuration files in /etc/netplan. The files typically have a .yaml extension, such as 01-netcfg.yaml or 50-cloud-init.yaml. Run the following to list the files:
    ls /etc/netplan/
    1. Use a text editor such as nano or vim to open the yaml file for editing:
      sudo nano /etc/netplan/01-netcfg.yaml
Best answer by xandergomez

I figured out how to set the ip myself. I found the adapter name by using:

 

system get info

 

The adapter name was eth0

 

I used this command to set the ip 

 

system set network ip --adapter eth0 --ip x.x.x.x/24 --gateway x.x.x.x -- dns x.x.x.x

 

it worked. closing ticket and accepting my own solution.

6 replies

AEK
SuperUser
SuperUser
September 11, 2025
xandergomez
New Member
September 11, 2025

Thank you for the quick response. Again, it looks like the immediate login for user 'ems' does not bring me to the needed terminal line in order to run sudo.  I get $> when I login instead of ems@fcems-server.

xandergomez_0-1757607480623.png

I'm sure I'm doing something dumb. Is there a simple command I can put here, that will bring me to the needed 'terminal prompt' ems@fcems-server>

AEK
SuperUser
SuperUser
September 11, 2025

Try use sudo for the privileged commands like described in the tech tip. It should work.

 

AEK
xandergomez
New Member
September 11, 2025

it does not. 

xandergomez_0-1757609248510.png

 

xandergomez
New Member
September 11, 2025

In the emscli shell $> I have system set network ip as an available command.  However, I need the adapter name and have no way of 'listing' or 'showing that' from the other available emscli commands 

xandergomez_0-1757611632126.png

 

xandergomez
New Member
September 11, 2025

I tried using system set network ip --adapter ethernets.enps3s0 --ip x.x.x.x/24 --gateway x.x.x.x -- dns x.x.x.x

 

However it told me "adapter  ethernets.eps3s0 not found on host"

 

That is the name of the adapter in the documentation that was provided above.  I cannot find a name to list the adapters that are currently present.

 

Can anyone help me here?

funkylicious
SuperUser
SuperUser
September 11, 2025

try ip addr show , in oder to give you the nic name or ip a .

if the altname enp3s0 ( beware of the typing ) doesnt work try the ensXXX 

 

"jack of all trades, master of none"
xandergomez
New Member
September 11, 2025
AEK
SuperUser
SuperUser
September 11, 2025

"ip a" is the Linux command to list interfaces.

AEK
xandergomez
New Member
September 11, 2025

I don't think you are understanding. I don't have regular linux commands available to me.  "ip a" is not available in the list of commands. See here:

Commands for EMS virtual appliance template installation | FortiClient 7.4.4 | Fortinet Document Library

 

 

xandergomez
xandergomezAuthorAnswer
New Member
September 11, 2025

I figured out how to set the ip myself. I found the adapter name by using:

 

system get info

 

The adapter name was eth0

 

I used this command to set the ip 

 

system set network ip --adapter eth0 --ip x.x.x.x/24 --gateway x.x.x.x -- dns x.x.x.x

 

it worked. closing ticket and accepting my own solution.