How to Set a Static IP on SimpleRisk VM


Introduction


This short FAQ will explain the steps required to set a static IP on your SimpleRisk virtual machine appliance. Since Ubuntu 17 you will now use netplan to configure Ubuntu’s network settings. Following this FAQ should be straight forward but ensuring the formatting is correct will be key to success. 


Configuring a Static IP


This section will be broken into steps, each step will need to be followed to the letter for this process to be successful.

1) Identify the name of your adapter using “ip addr” in terminal. The interface name you need is circled in the screenshot below.


2) Now we to configure netplan to use a static IP. Open the netplan configuration using:

sudo vi /etc/netplan/01-netcfg.yaml”


3) You should now be looking at the following:



You will now need to edit your netplan to reflect the following:

network:

  version: 2

  renderer: networkd

  ethernets:

    ens3:

      dhcp4: no

      addresses:

        - 192.168.121.199/24 (This will be your chosen static IP)

      gateway4: 192.168.1.1 (This is the IP this machine uses to connect to the internet.

      nameservers:

          addresses: [8.8.8.8, 1.1.1.1]


This is a screenshot of what it should might look like when completed, be sure your spacing and indents remain consistent with the example.



4) The final step will be to apply the netplan using “sudo netplan apply”. If the terminal reports nothing and just moves down a line confirm the IP has been changed by running “ifconfig” you should see your new IP listed.



Summary

These steps will have guided you through setting a static IP on a SimpleRisk provided VM. If you have found any instructions to be incorrect or lacking detail please contact us at support@simplerisk.com