2
There are a number of places that suggest adding a couple of lines to /etc/network/interfaces
, and restarting the networking daemon sudo /etc/init.d/networking restart
. [1] [2]
However, this is something of a pain for a virtual machine for which I only know the desired configuration of the second nic at runtime, and may not want the changes to persist. Is there some way to only temporarily use a second nic, without having to add and then delete lines from the configuration file?
1
yes it's possible to do that with the command line but if you reboot your machine all the configuration will be lost. https://help.ubuntu.com/community/NetworkConfigurationCommandLine/Automatic
– D'Arcy Nader – 2018-04-16T18:06:55.633That is exactly the behavior I was desiring. I will accept your comment as an answer, if it were to somehow become one. – Scott – 2018-04-16T18:09:51.367