Страница 1 из 1

Статический адрес

Добавлено: 21 окт 2023, 10:17
ya
Отпедактировать:
/etc/network/interfaces

Код: Выделить всё

# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
auto enp0s5
iface enp0s5  inet static
 address 192.168.2.236
 netmask 255.255.255.0
 gateway 192.168.2.254
 dns-domain sweet.home
 dns-nameservers 192.168.2.254 1.1.1.1 8.8.8.8
systemctl restart networking.service

ip -c addr show

https://www.cyberciti.biz/faq/add-configure-set-up-static-ip-address-on-debianlinux/