Article 6NVPG netplan apply no longer setting static ip address

netplan apply no longer setting static ip address

by
Shaggy1
from LinuxQuestions.org on (#6NVPG)
system info:
Code:$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammyI am using Ubuntu 20.0.4 and originally set up a static ip address using a netplan yaml file like this:
Code:$ cat /etc/netplan/01-network-manager-all.yaml
network:
renderer: networkd
ethernets:
eno1:
addresses:
- 10.168.17.200/24
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
routes:
- to: default
via: 10.168.17.1
version: 2This worked fine.

At some point I unplugged the cable, then later connected it again and realised that eno1 no longer had an ip address

I suspect in between times there had been an (auto probably - I can't remember explicitly doing one, but I may have done) update, but I cannot be certain.

I executed the command:
$ sudo netplan apply
which came up with a Warning about yaml file permissoins, so I changed the permissions to 600 and ran the netplan apply command again.

This came up with a warning:
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.

So I managed to connect (bit of a checken and egg issue this) to the internet via wireless and install opwnvswitch-switch-dpdk.

Now when I run netplan apply there are no warnings or errors, but the ip address on eno1 is not set.

Anyone know what might be happening here ?
Any ideas on how I can go about debugging the issue ?
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