SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
Список вопросов ПечатьRemiZOffAlex Создано: 2019-01-18 17:14:41.049106 Обновлено: 2019-01-18 17:14:41.049106 |
---|
auto eth0 iface eth0 inet static address 192.168.0.10 gateway 192.168.0.1 netmask 255.255.255.0 dns-nameservers 77.88.8.8 77.88.8.1 iface eth0 inet6 static address 2345:2345::10 gateway 2345::1 netmask 48 dns-nameservers 2a02:6b8::feed:0ff 2a02:6b8:0:1::feed:0ff Ubuntu 18.04/etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: ens18: dhcp4: no addresses: - 10.0.0.10/32 # gateway4: 10.0.0.1 nameservers: addresses: - 8.8.8.8 - 77.88.8.8 routes: - to: 0.0.0.0/0 scope: link Применить настройки netplan apply |