Configuring a gateway
Oliver Grawert
ogra at ubuntu.com
Thu Sep 17 00:17:50 UTC 2020
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20200917/ef73f6da/attachment.sig>
More information about the ubuntu-users
mailing list