Article 53ZQV Netplan file for static wifi IP is ignored

Netplan file for static wifi IP is ignored

by
qajaq
from LinuxQuestions.org on (#53ZQV)
I have recently installed Kubuntu 20.04 after having successfully used earlier LTS versions for over 10 years, and have set up static IP addresses (in order to use openSSH on my home network) for most of that time. In earliest versions, I configured the /etc/network/interfaces file manually. In later versions, that didn't work, but I was able to configure the static IP using WICD. But now WICD apparently is no longer available for Kubuntu 20.04 -- at least, I haven't been able to find how to install it.

Now I've learned that the CLI file /etc/netplan/01-network-manager-all.yaml is what I have to use to configure a static IP address for my wireless connections. I've written the file according to several sources I've found online, but the static IP assignment is ignored.

The result of running ifconfig is (in part):
Quote:
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
....inet 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255
My /etc/netplan/01-network-manager-all.yaml file is:
Quote:
network:
....version: 2
....renderer: NetworkManager
....wifis:
........wlp2s0:
............dhcp4: no
............dhcp6: no
............addresses: [192.168.0.20/24]
............gateway4: 192.168.0.1
............nameservers:
................addresses: [8.8.8.8,8.8.4.4]
............access-points:
................"Tustumena2.4":
....................password: "mypassword"
[I'm using dots, here, to simulate the indentations in the actual file, but which are ignored in this posting environment.]

I can run netplan generate without getting any error messages, and running netplan apply shuts down my current wifi connection, then brings it back up. However, the IP address remains the same as before (102, when I'm trying to assign it as 20).

FWIW, the wifi on another machine (running Lubuntu 18.04) on my network will still successfully log on at the static IP assigned to it with WICD.latest?d=yIl2AUoC8zA latest?i=VGTkkm-0dME:Dlkbpesp7NI:F7zBnMy latest?i=VGTkkm-0dME:Dlkbpesp7NI:V_sGLiP latest?d=qj6IDK7rITs latest?i=VGTkkm-0dME:Dlkbpesp7NI:gIN9vFwVGTkkm-0dME
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments