RE: ifupdown: dhcp & static ip

<[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <[email protected]>
Вот так точнее.
Должно работать.

auto eno2
iface eno2 inet dhcp

auto eno2:0
iface eno2:0 inet static
	address 1.1.1.1/32

-----Исходное сообщение-----
От: sergio <[email protected]> 
Отправлено: 10 января 2023 г. 16:26
Кому: Debian Russian Mailing List <[email protected]>
Тема: ifupdown: dhcp & static ip


Хочу dhcp адрес и статический, на одном и том же интырфейсе.

Вот так работает, но изредка статический адрес слетает (наверное dhclient сносит). Так делать не правильно? А как правильно?

% cat /etc/network/interfaces.d/eno2

auto eno2

iface eno2 inet dhcp

iface eno2 inet static
	address 1.1.1.1/32


--
sergio.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.