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:

>```sh
>sudo touch /etc/cloud/cloud.cfg.d/99_disable_net_config.cfg
>``` 

- Append settings to your new cloud-init config file:

>```sh
>sudo echo "network: config: disabled" >> /etc/cloud/cloud.cfg.d/99_disable_net_config.cfg
>``` 

- Or to manually edit the config file:

>```sh
>sudo vi /etc/cloud/cloud.cfg.d/99_disable_net_config.cfg
>``` 

2. Modify the network configuration and DHCP configurations by following the <a href="/halo/network-manager-configuration" target="_blank" rel="noopener noreferrer">Network Manager configuration guide</a>.

- Clean cloud-init:

>```sh
>sudo cloud-init clean
>```

- Reboot the system with:

>```sh
>sudo reboot now
>```

3. Log back in to the system and confirm your network settings:

>```sh
>ip route | grep default
>(i.e. default via <address> dev ens32 proto static metric 100 )
>```

4. Confirm all Glasswall pods are operational

>```shell
>kubectl get pods -w
>```