Netplan: Difference between revisions

From DWIKI
(Created page with "Ubuntu network configuration new style =Links= *[https://netplan.io/ Homepage]")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Ubuntu network configuration new style
Ubuntu network configuration new style


=Links=
 
*[https://netplan.io/ Homepage]
= Links =
 
*[https://netplan.io/ Homepage]  
*[https://netplan.io/examples/ Netplan examples]
 
= FAQ =
 
== 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

Latest revision as of 16:06, 25 March 2024

Ubuntu network configuration new style


Links

FAQ

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