Re: ifupdown: dhcp & static ip

Andrey Lu <[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <[email protected]>
10.01.2023 20:26, sergio пишет:
> 
> Хочу dhcp адрес и статический, на одном и том же интырфейсе.
> 
> Вот так работает, но изредка статический адрес слетает (наверное 
> dhclient сносит). Так делать не правильно? А как правильно?
> 
> % cat /etc/network/interfaces.d/eno2
> 
> auto eno2
> 
> iface eno2 inet dhcp
> 
> iface eno2 inet static
>      address 1.1.1.1/32
> 
> 
у тебя стоит ifupdown или ifupdown2?
Я последнее время (со времен, когда бастер был тестингом) всегда 
устанавливаю ifupdown2, но причину - хоть убей, не помню :-)
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.