Set static IP address to Graylog server

0
2900

If you don’t have a working DHCP server for your virtual machine, you will get the error message: “Your appliance came up without a configured IP address. Graylog is probably not running correctly!”. To solve this issue you need to open console and login to graylog server to set static IP address.

Or If you have DHCP server and You just need to set static IP addres to your Graylog server then you can use one of ssh tools to connect to graylog server.

Here I will use Putty to connect graylog server and set static IP address by editing 01-netcfg.yaml file:

ubuntu@graylog:~$ vi /etc/netplan/01-netcfg.yaml

Before update your 01-netcfg.yaml file looks like as below:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: yes
    ens160:
      dhcp4: yes

You need to change that as below:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: yes
    ens160:
      dhcp4: no
      addresses: [172.16.10.51/24]
      gateway4: 172.16.10.51
      nameservers:
              addresses: [172.16.10.5]

After change that you need to this command to apply setting:

ubuntu@graylog:~$ sudo netplan apply

That’s all. I hope, this article will help you to get information about how to set static IP address to Graylog log management server and You can look at other articles about graylog from here Graylog log management

LEAVE A REPLY

Please enter your comment!
Please enter your name here