Using Ubuntu 18.04 Server LTS for an embedded application. Two physical network interfaces are present, one ethernet and one a PCI Athros wifi card. I can use netplan .YAML and ifconfig up/down to manually control and switch between interfaces.
I have added the 99-disable-network-config.cfg file with the contents:
network: {config: disabled}
to the /etc/cloud/cloud.cfg.d directory. Netplan apply has been run (multiple times)
I have one 01_xx.YAML file present in /etc/netplan that sets the Wifi adapter up to DHCP. The expectation is that the ethernet interface will remain down on a reboot. When I reboot I see the startup message that it is attempting to initialize the network and it times out after 2 minutes as failing. However as soon as I am at the CLI prompt I check the interfaces and I have both the ethernet and Wifi interfaces up and connected.
Is there a way to actually keep one of the interfaces down at startup? I want to only have one adapter being started based on the 01_xx.YAML I have set.
And then to keep the startup networking timeout from running to 2 minutes? I suspect this is part of systemd but I can't find it. This doesn't seem to be related to the dhclient.conf timeout parameter as I already have it set to 30 seconds.