Last active
September 9, 2022 19:25
-
-
Save YPermitin/692471f27dff94ddf65ffbbb83324b37 to your computer and use it in GitHub Desktop.
Ubuntu. Netplan. Пример присвоения статического IP-адреса
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Файл конфигурации в /etc/netplan/00-installer-config.yaml | |
# Интерфейсе на хосте проверить командой "ip a" | |
# После изменения конфигурации сети проверить корректность с помощью команды "netplan-try" | |
# Применить настройки сразу можно командой "netplan apply" | |
network: | |
ethernets: | |
ens33: | |
dhcp4: no | |
addresses: | |
- 192.168.233.162/24 | |
gateway4: 192.168.88.1 | |
nameservers: | |
addresses: | |
- 192.168.88.1 | |
search: | |
- 192.168.88.1 | |
ens34: | |
dhcp4: true | |
version: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment