This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
настройка_сети_в_linux [2022/11/02 11:51] val [Файлы конфигурации Ubuntu >= 18] |
настройка_сети_в_linux [2022/11/15 10:40] val [Файлы конфигурации Ubuntu >= 18] |
||
---|---|---|---|
Line 229: | Line 229: | ||
<code> | <code> | ||
- | hostnamectl set-hostname server2 | + | # hostnamectl set-hostname server2 |
# cat /etc/netplan/01-netcfg.yaml | # cat /etc/netplan/01-netcfg.yaml | ||
Line 264: | Line 264: | ||
[Resolve] | [Resolve] | ||
DNS=172.16.1.254 | DNS=172.16.1.254 | ||
+ | </code><code> | ||
+ | # systemctl restart systemd-resolved | ||
</code> | </code> | ||