Technical Tip: How to add static IP address in Rocky Linux
| Description | This article describes how to proceed with the static IP setup. Before the installation of a FortiSIEM system on a virtual machine (VM) or physical server, it is essential to configure a static IP address on Rocky Linux or CentOS system. This configuration ensures reliable network connectivity and allows the FortiSIEM to function properly within the infrastructure. |
| Scope | FortiSIEM. |
| Solution | To set up the static IP address in VM or physical server, follow the below guide. Rocky Linux: The network-scripts file is deprecated in RHEL 8+. It is necessary to use the nmcli or nmtui command.
Step 1: Before starting with IP configuration, identify the network device name from the below command.
nmcli d
Step 2: For the configuration to set up a static IP address for a network device, use the below commands:
nmcli con mod [connection_name] ipv4.method manual ipv4.address [IP]/[prefix] ipv4.gateway [gateway] ipv4.dns [DNS1,DNS2] connection.autoconnect yes
Example: nmcli con mod eth0 ipv4.method manual ipv4.address 10.132.252.61/24 ipv4.gateway 10.132.252.1 ipv4.dns 8.8.8.8,8.8.4.4 connection.autoconnect yes.
Step 3: To restart the network manager service, use the below command:
sudo systemctl restart NetworkManager
Step 4: To check the static IP setup, use the below command:
ifconfig
This is a process to set up a static IP address. |

