autoinstall network section

Tom H tomh0665 at gmail.com
Fri Jan 29 15:37:52 UTC 2021


On Tue, Jan 26, 2021 at 10:47 PM Jerry Geis <jerry.geis at gmail.com>
wrote:
>
> I have not seen an example of a network section that just "does
> it". Do you have to name each possible network device ?
>
> My section is this:
>   network:
>     network:
>       version: 2
>       ethernets:
>         eth0:
>           dhcp4: yes
>           dhcp-identifier: mac
>         eno1:
>           dhcp4: yes
>           dhcp6: no
>           dhcp-identifier: mac
>         eno2:
>           dhcp4: yes
>           dhcp6: no
>           dhcp-identifier: mac
>         eno3:
>           dhcp4: yes
>           dhcp6: no
>           dhcp-identifier: mac
>         ens1:
>           dhcp4: yes
>           dhcp6: no
>           dhcp-identifier: mac
>         ens2:
>           dhcp4: yes
>           dhcp6: no
>           dhcp-identifier: mac
>         ens3:
>           dhcp4: yes
>           dhcp6: no
>           dhcp-identifier: mac
>         enp1s0:
>           dhcp4: yes
>           dhcp6: no
>           dhcp-identifier: mac
>
> How do simply say. Yes I want networking and make it happen
> without listing every possible name?

Can you use "en*" for all of the NICs that start that way?




More information about the ubuntu-users mailing list