This article will guide you on the how to set up a static IP configuration in #Debian 10. Using either the command line or #GUI method, you can easily configure the static IP address on your system.
The ifconfig utility is used to change the IP address of a network interface.
To change your #IP address on #Linux, use the “ifconfig” command followed by the name of your network interface and the new IP address to be changed on your computer.
To assign the subnet #mask, you can either add a “netmask” clause followed by the subnet mask or use the CIDR notation directly.
To Configure static IP address on Ubuntu 16.04 LTS Server:
- Edit the /network/interfaces file. sudo nano /etc/network/interfaces.
- Restart the networking service (or reboot) Once you are confident the change has been made, and if you don't want to reboot you can just restart the networking service.
To Display Available Network Interfaces in Linux:
i. ip #command – It is used to show or manipulate routing, devices, policy routing and tunnels.
ii. #netstat command – It is used to display network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.
iii. #ifconfig command – It is used to display or configure a network interface.