I recently installed Ubuntu desktop: Ubuntu 18.04.3 LTS bionic:
root@UBUNTU-DESKTOP:/home/tokunbo# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
I gathered that the method of configuring/setting up manual IPs on Ubuntu 18.04 has changed / is very different from other Ubuntu versions. Here is a sample tutorial: how to configure IP-address in Ubuntu 18.04 LTS.
I decided instead to configure manual IPs the normal Ubuntu way and holla its working. Here is a sample from my /etc/network/interfaces file:
--------8888888888--------
auto lo
iface lo inet loopback
auto enp1s0
iface enp1s0 inet static
address a.b.c.d2
netmask 255.255.255.0
gateway a.b.c.d1
---------888888888-----------
Static route setup in /etc/network/interfaces:
up route add -net <network address> netmask <subnet-mask> gw <gateway-IP-address>
---------888888888-----------
I setup my DNS-Ip addresses in /etc/resolv.conf as follows(below):...instead of in /etc/network/interfaces
nameserver 8.8.4.4
nameserver 8.8.8.8
I saved all the above and did a reboot on the desktop.
Thats all folks.
My desktop is reachable via other computers in my LAN and internet access is possible as well. I have about 30-static routes and things(reachability to devices in my routed networks) are working fine.
Back to this tutorial: how to configure IP-address in Ubuntu 18.04 LTS:
I can't find any default configuration file "50-cloud-init.yaml" in my /etc/netplan/ directory; I chose not to configure IP-addresses during the desktop installation; the manual-IP configuration I used format is same as former Ubuntu versions.
If you have any idea why the above is working, kindly share.