This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
настройка_сети_в_linux [2026/03/31 10:22] val [Общие файлы конфигурации] |
настройка_сети_в_linux [2026/05/16 16:48] (current) val [Использование NetworkManager] |
||
|---|---|---|---|
| Line 52: | Line 52: | ||
| # dhcpcd -k enp0s3 | # dhcpcd -k enp0s3 | ||
| + | |||
| + | # pkill -KILL dhcpcd | ||
| </code> | </code> | ||
| Line 101: | Line 103: | ||
| # ss -anptu | # ss -anptu | ||
| - | # ss -lnp | grep ':80' | + | # ss -lnp | grep sshd |
| # количество подключений с каждого адреса (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) | ||
| Line 144: | Line 146: | ||
| === Статическая настройка параметров === | === Статическая настройка параметров === | ||
| <code> | <code> | ||
| - | # apt install ifupdown | + | # ###apt install ifupdown |
| # cat /etc/network/interfaces | # cat /etc/network/interfaces | ||
| Line 230: | Line 232: | ||
| auto eth0 | auto eth0 | ||
| iface eth0 inet dhcp | iface eth0 inet dhcp | ||
| + | </code> | ||
| + | |||
| + | === Отключение ifupdown === | ||
| + | <code> | ||
| + | # apt purge ifupdown | ||
| + | |||
| + | # rm /etc/network/interfaces | ||
| </code> | </code> | ||
| Line 239: | Line 248: | ||
| * [[https://linuxconfig.org/rhel-8-configure-static-ip-address|How to configure a static IP address on RHEL 8 / CentOS 8 Linux]] | * [[https://linuxconfig.org/rhel-8-configure-static-ip-address|How to configure a static IP address on RHEL 8 / CentOS 8 Linux]] | ||
| - | * Не работает с net.ifnames=0 | + | * ??? Не работает с net.ifnames=0 |
| + | * [[#Отключение ifupdown]] | ||
| <code> | <code> | ||
| - | # apt purge ifupdown | ||
| - | |||
| # apt install network-manager | # apt install network-manager | ||
| Line 301: | Line 309: | ||
| nameservers: | nameservers: | ||
| + | search: [isp.un] | ||
| addresses: [172.16.1.254] | addresses: [172.16.1.254] | ||
| </code><code> | </code><code> | ||