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

Ответить
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

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

Сообщение 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/
Ответить