netplan does not bring up local bridges

Asked by ad

Hello

I'm migrating from Ubuntu20.04 -> Ubuntu22.04 and there are netplan changes:

0.104-0ubuntu2~20.04.6 to 0.106.1-7ubuntu0.22.04.4

The local bridges don't bring up after netplan apply with following config:

network:
  version: 2
  renderer: networkd
  bridges:
    consul0:
      dhcp4: no
      dhcp6: no
      accept-ra: no
      interfaces: [ ]
      addresses:
        - 169.254.1.1/32

I can see netplan passed and an new consul0 interface is created but it's down and no ip attached:

consul0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 5e:e4:62:91:98:fe brd ff:ff:ff:ff:ff:ff

It works in netplan 0.104

Regards,
Angel

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu netplan.io Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Don't you need to specify the interfaces? Currently you have an empty array in that section.

Revision history for this message
ad (angelotepollote) said :
#2

Hello, it's a local bridge and didn't need specify any interface in that section.

With this config the consul0 interface is up with address in netplan 0.104
Same config doesn't apply in newer version

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Maybe it needs an interface in the new version.... Worth a try wouldn't you say....? Costs nothing....

Revision history for this message
ad (angelotepollote) said :
#4

Hello, I tried following definition:

network:
  version: 2
  renderer: networkd
  ethernets:
    consul0:
      dhcp4: false
      dhcp6: false
      optional: true
  bridges:
    consul0:
      dhcp4: no
      dhcp6: no
      accept-ra: no
      interfaces: [consul0]
      addresses:
        - 169.254.1.1/32

It didn't work, I got

/etc/netplan/02-consul.yaml:10:5: Error in network definition: Updated definition 'consul0' changes device type
    consul0:

Can you help with this problem?

Provide an answer of your own, or ask ad for more information if necessary.

To post a message you must log in.