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/06/18 10:48]
val [Файлы конфигурации Ubuntu >= 18]
настройка_сети_в_linux [2025/06/24 17:41] (current)
val [Команды для диагностики]
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 82: Line 83:
 # количество подключений с каждого адреса (https://​serverfault.com/​questions/​421310/​check-the-number-of-active-connections-on-port-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 # ss -tn src :80 or src :443 | tr -s ' ' | cut -d ' ' -f5  | cut -d ':'​ -f1 | sort | uniq -c | sort -n
 +
 +# отправка UDP пакета
 +# echo -n "​hello"​ >/​dev/​udp/​195.19.40.152/​5060
 </​code>​ </​code>​
  
Line 229: Line 233:
   * [[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 ===
Line 247: Line 255:
  
 <​code>​ <​code>​
 +# netplan status --all
 +
 # cat /​etc/​netplan/​01-netcfg.yaml # cat /​etc/​netplan/​01-netcfg.yaml
 </​code><​code>​ </​code><​code>​
Line 412: Line 422:
 # cat /​etc/​network/​interfaces # cat /​etc/​network/​interfaces
 </​code><​code>​ </​code><​code>​
-...+auto lo 
 +iface lo inet loopback 
 iface eth0 inet manual iface eth0 inet manual
  
настройка_сети_в_linux.1718696886.txt.gz · Last modified: 2024/06/18 10:48 by val