Re: ifupdown: dhcp & static ip

Dmitrii Semenov <[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <CAGUoffCfdn73fNDcMwJEHDt8AVOmXPc=Or1cm_Ude-wPLfeXAg@mail.gmail.com>
On Wed, 11 Jan 2023 at 10:50, Maksim Dmitrichenko wrote:
>
>> auto eno2
>> iface eno2 inet dhcp
>>
>> auto eno2:0
>> iface eno2:0 inet static
>>         address 1.1.1.1/32
>
> Сие из эпохи sarge-зоя или около того. На настоящий момент инстансы не требуется указывать.

Попробовал как-то не указывать в 2015 году... (Лет этак 10 после
выпуска Sarge.) В итоге оставил такое предупреждение на wiki[1] по
поводу нового метода:

"Note however that this method is *dangerous*! Certain driver/hardware
combinations may sometimes fail to bring the link up if no labels are
assigned to the alias interfaces. (Seen this on Debian Wheezy and
Jessie with RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
(rev 01) auto-negotiating to 10/full. A similar warning from another
person exists in the history of this page.)"

С тех пор старый добрый legacy метод ни разу не подвёл.

[1]https://wiki.debian.org/NetworkConfiguration#Multiple_IP_addresses_on_one_Interface

-- 
...Bye..Dmitrii.
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.