T
T
Tylen2020-10-19 17:32:21
linux
Tylen, 2020-10-19 17:32:21

How to make a static ip linux?

In general, the essence of the question is this, I wanted to make a static ip on the debian machine, with the nat network card configured, nothing happens, I disable the dhcp server for nat in the vmworkstation settings, please tell me what settings to put on the machine and on the adapter

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Drno, 2020-10-19
@Drno

well, as an option -
disable the network manager (if it exists)
sudo systemctl disable NetworkManager.service
Prescribe the necessary settings in /etc/network/interfaces
Example
auto enp3s0
allow-hotplug enp3s0
iface enp3s0 inet static
address 10.41.249.143
gateway 10.41.249.1
netmask 255.255. 255.0
dns-nameservers 1.1.1.1 8.8.8.8
Where - enp3s0 - the name of your network adapter - you can see it with the command - ip a
What specific numbers to write - depends on your network settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question