Wazuh Manager Default IP Address (OVA)

4,928 views
Skip to first unread message

Reuben Gonzales

unread,
Apr 22, 2022, 11:59:54 AM4/22/22
to Wazuh mailing list
Is there a way on the OVA to change the default IP Address when starting the manager? For instance, my OVA starts with 10.10.10.8/24 each time. I would like it to default to 10.10.10.23/24.

I have been manually changing the IP address each time the VM is started. This gets old haha

Federico Pacher

unread,
Apr 22, 2022, 3:54:31 PM4/22/22
to Wazuh mailing list

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

Reuben Gonzales

unread,
Apr 22, 2022, 4:06:51 PM4/22/22
to Wazuh mailing list
Thank you for your reply. I am running the OVA ISO through VMware Workstation. The "mv" and "nano" commands cause this error "command not found". Any other suggestions?

Federico Pacher

unread,
Apr 25, 2022, 5:16:48 PM4/25/22
to Wazuh mailing list

Hi there,

The OVA image should have installed nano editor. Please check it is installed by typing 

nano –version

in case you get the message command not found you can install it by typing 

yum install -y nano

Regarding the mv command, Centos provide this command to be used and it is for moving folder and files, you can type 

mv --help

and share the output.

Please note that in the previous email I sent you, in each command, it is added the # character, you should remove this character of your console. So, you should copy and paste the following commands:

sudo mv /etc/sysconfig/network-scripts/ifcfg-NAME /etc/sysconfig/network-scripts/ifcfg-NAME.bak

sudo nano /etc/sysconfig/network-scripts/ifcfg-NAME

Where NAME is the name of your network interface.


I hope this information helps you

Regards

Reuben Gonzales

unread,
May 5, 2022, 9:51:54 AM5/5/22
to Wazuh mailing list
Amazing! Thank you for your help. Everything is working correctly now each time I boot. This is great! :-)
Reply all
Reply to author
Forward
0 new messages