Score:0

Ubuntu 20.04.3 server install networking issues

cn flag

I have installed Ubuntu server a lot of times, mostly versions prior to 20.04 obviously, but still. I have done this exact thing in the past on earlier version (versions 16 and 18 most predominately with this exact setup) and never had issues. 20.04.3 breaks this and badly for some reason.

I have created a VM with two network interfaces, one on a DMZ with a static public internet IP address.
The second interface is on a private Class C network.

Using the installation wizard, I leave one interface in "DHCP" and the other I configure manually.

In previous iterations this would result in traffic over both interface - traffic going to the Class C network over it's interface and anything else going over the static interface.

It's been improved to the point it no longer works.

I can ssh in over the public static IP address with both interfaces up. I can't ssh into the Class C interface (from the Class C network) at all. that is until bring down the public interface - then it works with no issue. Bring up the public interface and I lose access from the Class C.

If I down the public interface, ssh in on the Class C and then bring up the public interface, the session on the Class C address is immediately locked up.

Will creating two statically addressed interfaces make this work sanely again?

Side rant to vent some frustrations -- Seems like the best approach is simply go back to version 16 or 18 where networking is somewhat sane. Who the heck came up with yaml cr@p for networking? The different directory structures for configuration files and for the most part which file and in which order of precedence they are used is at best random -- will any give value replace a previous one or is this the magic one that concatenates with the previous one?
I want some of that drink -- that's some powerful stuff to make anyone think that's even remotely a good idea.

Terrance avatar
id flag
You can go away from Netplan if you want. My server is actually using the old ifupdown for bonding. You can see: https://askubuntu.com/questions/1293208/cant-disable-local-addresses-on-network-interfaces/1293486#1293486
cn flag
Is that the correct approach, just ditch netplan?
cn flag
ifupdown and ifenslave are apparently no longer available in the repo -- ifupdown reports "no installation candidate" and ifenslave "unable to locate target".
Terrance avatar
id flag
They are available, but you have to have the `Universe` repository enabled. `sudo add-apt-repository universe` then `sudo apt update`
Terrance avatar
id flag
I am not saying that it is the correct approach, but in my opinion the older way is much more stable and I know people will argue with me over it, but for my hardware I have not had any issues dumping netplan.
cn flag
ok, thanks. I always used Ubuntu because it was so easy to setup a functioning server out of the server install image. If I'm going down the route of massive customization just to make it function, the appeal is certainly lacking. Time to look elsewhere I suppose. Been a good run. Sad.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.