Configure a static IP address

To configure a static IP address for the Bitnami virtual machine:

  • Log in to the server console.
  • Obtain the network interface name using the command below. Typically, the interface name is of the form enXXXX.

    $ sudo ifconfig
  • Create a configuration file for the network interface by copying an existing configuration file and placing it in the /etc/systemd/network directory. In this example, assume that the new configuration file is named

    $ cd /etc/systemd/network
    $ sudo cp
  • Edit the new configuration file and update it to look like the configuration below. Replace the INTERFACE-NAME placeholder with the actual name of the network interface and update the example IP address, gateway and DNS server with values that reflect your local network

  • Save your changes and restart the virtual machine for the changes to take effect.

Last modification August 21, 2019