Re: ifupdown: dhcp & static ip

Maksim Dmitrichenko <[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <CAMRqRqwqQx7LhVK_bfQckjgvvACgYjEfd=g7N1e34fQ-Gf0A3w@mail.gmail.com>
Выглядит валидно. Пока юзал стационарный комп, много лет жил с похожим
конфигом. Чё-то не припомню, чтобы слетал айпишник.

вт, 10 янв. 2023 г. в 17:49, sergio <[email protected]>:

>
> Хочу 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.
>
>

-- 
With best regards
  Maksim Dmitrichenko
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.