This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
настройка_сети_в_linux [2026/04/06 13:29] val [Файлы конфигурации ifupdown] |
настройка_сети_в_linux [2026/08/09 19:24] (current) val [Динамическая настройка ip параметров] |
||
|---|---|---|---|
| Line 50: | Line 50: | ||
| # ip a | # ip a | ||
| + | |||
| + | # pkill dhclient | ||
| # dhcpcd -k enp0s3 | # dhcpcd -k enp0s3 | ||
| Line 232: | Line 234: | ||
| 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 250: | ||
| * [[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 311: | ||
| nameservers: | nameservers: | ||
| + | search: [isp.un] | ||
| addresses: [172.16.1.254] | addresses: [172.16.1.254] | ||
| </code><code> | </code><code> | ||