Configuring a gateway
david
david at daku.org
Thu Sep 17 00:58:17 UTC 2020
At 05:17 PM 9/16/2020, Oliver Grawert wrote:
>hi,
>Am Mittwoch, den 16.09.2020, 15:11 -0700 schrieb david:
> > ens9:
> > addresses: [192.168.100.1/24]
> > dhcp4: no
> > dhcp6: no
> > gateway4: 192.168.100.1
>
>dhcp4/6: are boolean values so you want true/false insead of yes/no
>...
>
>they also both default to being off so you do not explicitly set them
>at all, if you do not want the system to wait for the interface you can
>use "optional: true" just try:
>
>--
> ens9:
> addresses:
> - 192.168.100.1/24
> gateway4: 192.168.100.1
> optional: true
>--
>
>you probably also want to set up some routing eventually, take a look
>at:
>
>https://netplan.io/reference/
>
>ciao
> oli
Thanks for the 'optional' clue. I entered wnat you suggested and
rebooted. The command "ip addr" shows the internal controller but no
IP addresses. Physically, it's a lightning-to-ethernet dongle with
nothing plugged into the ethernet side. So there's no way to confirm
that the internal address was indeed assigned.
David
More information about the ubuntu-users
mailing list