Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
xandergomez
New Contributor

Configure IP for foritclient ems

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
1 Solution
xandergomez
New Contributor

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.

View solution in original post

11 REPLIES 11
AEK
SuperUser
SuperUser

AEK
xandergomez
New Contributor

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

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

 

AEK
AEK
xandergomez

it does not. 

xandergomez_0-1757609248510.png

 

xandergomez
New Contributor

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 Contributor

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

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"
"jack of all trades, master of none"
xandergomez

AEK
SuperUser
SuperUser

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

AEK
AEK
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors