Debian IP Address Configuration
Check the current IP address with:
1
ip a
The default Debian setup uses DHCP for the IP address. To assign a static IP, edit /etc/network/interfaces:
1
2
3
iface [ifname] inet static
address 192.168.99.1/24
gateway 192.168.99.254
Save and restart the networking service to apply the new IP:
1
sudo systemctl restart networking.service
This post is licensed under CC BY 4.0 by the author.