User Tools

Site Tools


настройка_сети_в_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
настройка_сети_в_linux [2023/06/14 10:19]
val [Файлы конфигурации Ubuntu >= 18]
настройка_сети_в_linux [2023/06/14 10:34]
val [Файлы конфигурации Ubuntu >= 18]
Line 231: Line 231:
 </​code>​ </​code>​
  
-=== netplan ​===+=== Настройка Netplan ​===
  
   * [[Формат YAML]]   * [[Формат YAML]]
Line 258: Line 258:
 # netplan apply # netplan apply
 </​code>​ </​code>​
-=== systemd-resolved ===+ 
 +=== Отключение Netpaln === 
 + 
 +  * [[https://​linuxconfig.org/​how-to-switch-back-networking-to-etc-network-interfaces-on-ubuntu-20-04-focal-fossa-linux|How to switch back networking to /​etc/​network/​interfaces on Ubuntu 20.04 Focal Fossa Linux]] 
 + 
 +<​code>​ 
 +# apt install ifupdown net-tools 
 + 
 +ubuntu20/​22#​ rm /​etc/​netplan/​00-installer-config.yaml 
 +</​code>​ 
 + 
 +=== Настройка ​systemd-resolved ===
  
   * [[https://​wiki.archlinux.org/​title/​Systemd-resolved_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)|archlinux systemd-resolved (Русский)]]   * [[https://​wiki.archlinux.org/​title/​Systemd-resolved_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)|archlinux systemd-resolved (Русский)]]
Line 280: Line 291:
 </​code>​ </​code>​
  
-=== Без systemd-resolved === +=== Отключение systemd-resolved ===
-<​code>​ +
-# systemctl disable systemd-resolved+
  
-# systemctl stop systemd-resolved +  ​* [[https://gist.github.com/zoilomora/​f7d264cefbb589f3f1b1fc2cea2c844c|How to disable systemd-resolved in Ubuntu]]
- +
-# rm /​etc/​resolv.conf +
-</​code>​ +
- +
-=== Без Netpaln === +
- +
-  ​* [[https://linuxconfig.org/how-to-switch-back-networking-to-etc-network-interfaces-on-ubuntu-20-04-focal-fossa-linux|How to switch back networking to /​etc/​network/​interfaces on Ubuntu ​20.04 Focal Fossa Linux]]+
  
 <​code>​ <​code>​
-apt install ifupdown net-tools+systemctl disable systemd-resolved
  
-# echo '​network:​ {config: disabled}'​ > /​etc/​cloud/​cloud.cfg.d/​99-disable-network-config.cfg 
- 
-ubuntu18# rm /​etc/​netplan/​50-cloud-init.yaml 
- 
-ubuntu20/​22#​ rm /​etc/​netplan/​00-installer-config.yaml 
-</​code>​ 
- 
-=== Без systemd-resolved === 
-  * [[https://​gist.github.com/​zoilomora/​f7d264cefbb589f3f1b1fc2cea2c844c|How to disable systemd-resolved in Ubuntu]] 
- 
-<​code>​ 
-# systemctl disable systemd-resolved.service 
 # systemctl stop systemd-resolved # systemctl stop systemd-resolved
  
 # rm /​etc/​resolv.conf ​   # this is link # rm /​etc/​resolv.conf ​   # this is link
 </​code>​ </​code>​
 +
 ==== Файлы конфигурации CentOS/​SL/​RHEL ==== ==== Файлы конфигурации CentOS/​SL/​RHEL ====
  
настройка_сети_в_linux.txt · Last modified: 2024/03/16 05:13 by val