Hi there,
Thank you for using Wazuh.
Ass you are using the OVA image, there is a CentOS 7 OS so you should do the following:
1. Make a backup of the original configuration file:
# sudo mv /etc/sysconfig/network-scripts/ifcfg-NAME /etc/sysconfig/network-scripts/ifcfg-NAME.bak
Where NAME is the name of your network interface.
2. Create a new configuration file with the following command:
# sudo nano /etc/sysconfig/network-scripts/ifcfg-NAME
Where NAME is the name of your network interface.
3. In that file, you can paste the content of the backup file and change the desired fields or paste the following:
TYPE=Ethernet
BOOTPROTO=none
NAME=NAME
IPADDR=IP_ADDRESS
NETMASK=255.255.255.0
GATEWAY=GATEWAY
EVICE=NAME
ONBOOT=yes
PEERDNS=no
Where:
NAME is the name of the network interface
IP_ADDRESS is the static IP address you want to apply to the interface
GATEWAY is the gateway address for your network. To check the gateway type in your machine (not in your VM):
# ip route
4. Save and close the file.
5. Restart the VM
After this you can check your new IP by typing:
# ip addr
I hope this information helps you
Regards