If you are encountering issues with static IP configuration on the OpsRamp Gateway, follow these steps to manually configure and verify network settings. This process ensures that the network configuration is correctly applied and persists after reboots.
- Login to the Gateway using
ruser
. - Take the root access:
- Switch to root by running the command:
sudo su -
- Enter the password when prompted.
- Switch to root by running the command:
- Configure the network settings:
- Navigate to the network configuration directory:
cd /etc/netplan
- Check the current network configuration by displaying the contents of the configuration file:
cat 00-installer-config.yaml
- Navigate to the network configuration directory:
- Ensure that all required network settings are present in the output from the above command.
- If any configurations are missing, update the network settings using the admin login.
- Delete all unnecessary files from
/etc/netplan
except00-installer-config.yaml
. - To disable automatic DHCP IP updates by cloud-init, run the following commands:
mkdir -p /etc/cloud/cloud.cfg.d/ echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg sed -i '/\/usr\/bin\/grep/s/^#\?/#/' /etc/rc.local
- To apply the network configuration changes manually, run the following command:
netplan apply
- Verify the IP address using following command.
ip addr
- Verify the network configuration by rebooting the VM.