How to Configure Static IP Configuration on DEBIAN 10/11/12

Open the configuration file with an editor. Type this command.

nano /etc/network/interfaces

Edit the configuration file, and set the IP address that you received via email.

iface lo inet loopback
auto lo

auto ens192
iface ens192 inet static
address 192.198.1.5
netmask 255.255.255.0
gateway 192.192.13.1
metric 0 

Press "Ctrl + X" to start the exit sequence. If you've made changes, nano will prompt you to save them. Press "Y" for "Yes" to confirm.

For Network updates type the following:

systemctl restart networking 

 

<< Назад

Наверх