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
Next revision
Previous revision
настройка_сети_в_linux [2024/03/16 05:13]
val [Команды для диагностики]
настройка_сети_в_linux [2025/01/13 06:08] (current)
val [Настройка сети в Linux]
Line 3: Line 3:
   * [[https://​wiki.debian.org/​ru/​NetworkConfiguration]]   * [[https://​wiki.debian.org/​ru/​NetworkConfiguration]]
   * [[http://​help.ubuntu.ru/​wiki/​%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_%D1%81%D0%B5%D1%82%D0%B8_%D0%B2%D1%80%D1%83%D1%87%D0%BD%D1%83%D1%8E|Настройка сети вручную]]   * [[http://​help.ubuntu.ru/​wiki/​%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_%D1%81%D0%B5%D1%82%D0%B8_%D0%B2%D1%80%D1%83%D1%87%D0%BD%D1%83%D1%8E|Настройка сети вручную]]
 +  * [[https://​it-lux.ru/​tcp-queue-syn-flooding/​|Ошибка в логах ядра. request_sock_TCP:​ Possible SYN flooding]]
  
 ===== Команды для настройки ===== ===== Команды для настройки =====
Line 79: Line 80:
 # ss -anptu # ss -anptu
 # ss -lnp | grep ':​80'​ # ss -lnp | grep ':​80'​
 +
 +# количество подключений с каждого адреса (https://​serverfault.com/​questions/​421310/​check-the-number-of-active-connections-on-port-80)
 +# ss -tn src :80 or src :443 | tr -s ' ' | cut -d ' ' -f5  | cut -d ':'​ -f1 | sort | uniq -c | sort -n
 </​code>​ </​code>​
  
Line 226: Line 230:
   * [[https://​www.linuxtechi.com/​assign-static-ip-address-ubuntu-20-04-lts/​|How to Assign Static IP Address on Ubuntu 20.04 LTS]]   * [[https://​www.linuxtechi.com/​assign-static-ip-address-ubuntu-20-04-lts/​|How to Assign Static IP Address on Ubuntu 20.04 LTS]]
   * [[https://​unix.stackexchange.com/​questions/​588658/​override-ubuntu-20-04-dns-using-systemd-resolved|Override Ubuntu 20.04 DNS using systemd-resolved]]   * [[https://​unix.stackexchange.com/​questions/​588658/​override-ubuntu-20-04-dns-using-systemd-resolved|Override Ubuntu 20.04 DNS using systemd-resolved]]
 +
 +=== Использование cloud-init ===
 +
 +  * [[https://​cloudinit.readthedocs.io/​en/​latest/​tutorial/​qemu.html|Core tutorial with QEMU]]
  
 === Отключение cloud-init === === Отключение cloud-init ===
 <​code>​ <​code>​
 # apt purge cloud-init # apt purge cloud-init
 +</​code>​
 +
 +=== Отключение ifupdown ===
 +<​code>​
 +apt purge ifupdown
 </​code>​ </​code>​
  
Line 239: Line 252:
  
 <​code>​ <​code>​
 +# netplan status --all
 +
 # cat /​etc/​netplan/​01-netcfg.yaml # cat /​etc/​netplan/​01-netcfg.yaml
 </​code><​code>​ </​code><​code>​
Line 268: Line 283:
  
 ubuntu20/​22#​ rm /​etc/​netplan/​00-installer-config.yaml ubuntu20/​22#​ rm /​etc/​netplan/​00-installer-config.yaml
 +
 +ubuntu24# rm /​etc/​netplan/​50-cloud-init.yaml
 </​code>​ </​code>​
  
настройка_сети_в_linux.1710555208.txt.gz · Last modified: 2024/03/16 05:13 by val