This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
настройка_сети_в_linux [2026/04/01 12:54] val [Команды для диагностики] |
настройка_сети_в_linux [2026/05/16 16:48] (current) val [Использование NetworkManager] |
||
|---|---|---|---|
| Line 146: | Line 146: | ||
| === Статическая настройка параметров === | === Статическая настройка параметров === | ||
| <code> | <code> | ||
| - | # apt install ifupdown | + | # ###apt install ifupdown |
| # cat /etc/network/interfaces | # cat /etc/network/interfaces | ||
| Line 232: | 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 241: | 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 | ||
| - | |||
| - | # rm /etc/network/interfaces | ||
| - | |||
| # apt install network-manager | # apt install network-manager | ||
| Line 305: | Line 309: | ||
| nameservers: | nameservers: | ||
| + | search: [isp.un] | ||
| addresses: [172.16.1.254] | addresses: [172.16.1.254] | ||
| </code><code> | </code><code> | ||