How to configure a static ip address on Debian 11 in command line and with the gnome interface
Вставка
- Опубліковано 27 лип 2024
- This video will show you how to configure a static ip address on Debian 11 in command line and with the gnome interface too.
Version francaise, french version:
• Debian - Configurer un...
-------
If one of my videos saved your life, I don't know... maybe you were blocked with a computer problem and everything was to explode. One of my videos helped you solve the problem.
You can support my work to thank me if you want:
ko-fi.com/benlinux
-------
00:00 Intro
00:30 Note your current network config
02:10 Connect to the root account and create a backup for the network config file
02:45 Config the network interface with a static ip address in command line
03:23 Explication of the config
04:48 How to using the DNS server specified in the config file
05:35 Restart the network service to apply the new config
05:58 Test the new config
06:30 What to check if you have a problem with your new network config
08:39 How to configure a static ip address in gnome interface
11:41 Thank you and some humor with gif
-------------------
Here all commands I used in this video
su -
cp -a /etc/network/interfaces /etc/network/interfaces.backup
nano /etc/network/interfaces
An excerpt from my config file
auto ens18
iface ens18 inet static
address 10.0.0.8
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 10.0.0.1 8.8.8.8
systemctl restart networking.service
ip add
ping www.google.ca
about DNS
Method 1:
apt install resolvconf
systemctl restart networking.service
Note: If resolvconf is installed, it will use dns-nameserver entries in the the /etc/network/interfaces file.
Or Method 2:
apt install openresolv
nano /etc/resolvconf.conf
Note: You can tell it to do nothing whenever some daemon tries to modify resolv.conf, by putting resolvconf=NO in the /etc/resolvconf.conf file. (Note: this is not the /etc/resolv.conf file!) - Наука та технологія
good video thanks a lot
1° video que funciona a la 1° Gracias