Netplan: Difference between revisions

From DWIKI
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:


Ubuntu network configuration new style
Ubuntu network configuration new style


= Links =
= Links =


*[https://netplan.io/ Homepage]  
*[https://netplan.io/ Homepage]  
*[https://netplan.io/examples/ Netplan examples]
=HOWTO=
==Verify netplan config==
netplan try
==Update netplan settings==
*[https://netplan.readthedocs.io/en/stable/netplan-set/ netplan-set]


 
= FAQ =


= FAQ =
== Cannot call Open vSwitch ==
apt install openvswitch-switch-dpdk


== An error occurred: 'NetplanApply' object has no attribute 'state ==
== An error occurred: 'NetplanApply' object has no attribute 'state ==
Line 15: Line 23:


  netplan try --state /etc/netplan
  netplan try --state /etc/netplan
== `gateway6` has been deprecated, use default routes instead ==
Use:
  routes:
    - to: default
      via: fe80::1
==Error in network definition: expected mapping (check indentation)==
It seems to prefer list of addresses in square brackets
==`gateway4` has been deprecated, use default routes instead.==
Try
routes:
  - to: default
    via: 192.168.10.1
==Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.==
chmod 0600 /etc/netplan/00-installer-config.yaml

Latest revision as of 14:53, 30 January 2025

Ubuntu network configuration new style


Links

HOWTO

Verify netplan config

netplan try

Update netplan settings

FAQ

Cannot call Open vSwitch

apt install openvswitch-switch-dpdk

An error occurred: 'NetplanApply' object has no attribute 'state

That's because netplan is broken, try:

netplan try --state /etc/netplan


`gateway6` has been deprecated, use default routes instead

Use:

 routes:
   - to: default
     via: fe80::1


Error in network definition: expected mapping (check indentation)

It seems to prefer list of addresses in square brackets


`gateway4` has been deprecated, use default routes instead.

Try

routes:
  - to: default
    via: 192.168.10.1


Permissions for /etc/netplan/00-installer-config.yaml are too open. Netplan configuration should NOT be accessible by others.

chmod 0600 /etc/netplan/00-installer-config.yaml