Skip to main content
Version: 2.18.1

Disable DHCP and Set a Static IP

By default, the DHCP client is set to active within the Single Node virtual appliance, and it will allocate an IP address when deployed to a network with an active DHCP server.

However, we understand there are certain scenarios where disabling DHCP and configuring your system with a static IP address is required.

Disable DHCP

To disable DHCP within the Glasswall Single Node virtual appliance, follow the steps outlined below:

  1. Create an additional configuration file in the following area path: /etc/cloud/cloud.cfg.d/ and append the following to it: network: config: disabled
  • Create new file to disable cloud-init from overwriting configuration:
sudo touch /etc/cloud/cloud.cfg.d/99_disable_net_config.cfg
  • Append settings to your new cloud-init config file:
sudo echo "network: config: disabled" >> /etc/cloud/cloud.cfg.d/99_disable_net_config.cfg
  • Or to manually edit the config file:
sudo vi /etc/cloud/cloud.cfg.d/99_disable_net_config.cfg
  1. Modify the network configuration and DHCP configurations by following the Network Manager configuration guide.
  • Clean cloud-init:
sudo cloud-init clean
  • Reboot the system with:
sudo reboot now
  1. Log back in to the system and confirm your network settings:
ip route | grep default
(i.e. default via <address> dev ens32 proto static metric 100 )
  1. Confirm all Glasswall pods are operational
kubectl get pods -w