Questions tagged [netplan]

42 questions
0
votes
1 answer

How remove metaclasses info when writing to yaml?

import netifaces import netaddr import yaml class Ethernet(yaml.YAMLObject): def __init__(self, addresses, gateway4, mtu, nameservers): self.nameservers = nameservers self.mtu = mtu self.gateway4 = gateway4 …
Diem
  • 101
  • 4
0
votes
0 answers

How to add a Google static IP address to Linux and make it work with docker

I've purchased a static IP address from Google Cloud. The problem is, I don't know how to properly add it to netplan. I've tried multiple different things, but none seem to work. Well, I am able to connect to the server and do stuff, but Docker does…
0
votes
1 answer

can't connect to postgres in ipv6 using docker

My scenario is the following: I have a postgres 12 installed on ubuntu 20.04 server and a docker container running in another host with ipv6 enabled. I can't reach postgres server from inside docker container using ipv6. these commands works from…
jguilhermeam
  • 121
  • 1
  • 1
  • 10
0
votes
1 answer

NetworkManager does not support non-default routing tables

I configure the netplan of Ubuntu as below, with different routing tables. However, I cannot apply the netplan, and the error information is: "NetworkManager does not support non-default routing tables" I cannot find any feasible method to solve…
0
votes
0 answers

Yaml / Puppet - Get interface name only with nameservers in the yaml config

How to get interface name which has nameservers defined? I want to get the interface name so I can pass it to netplan puppet module. But I only want to get the interface name (ens160) which has nameservers in it. The Yaml file I want to refer is the…
user630702
  • 2,529
  • 5
  • 35
  • 98
0
votes
1 answer

Create netplan bridge at Azure Ubuntu

My ubuntu18 hosted in Azure cloud. I tried setup bridge in netplan, but fail. original 50-cloud-init.yaml network: ethernets: eth0: dhcp4: true addresses: - 10.0.20.6/24 dhcp6: false match: …
Andrey Rubanko
  • 181
  • 1
  • 6
0
votes
1 answer

c++ netplan ubuntu yaml read and create

i have create a c++ app and need to read Ubuntu Netplan yaml files. I found many websites with a lot of helpful information. mostly everything just does not work with netplan files. it crashes every time, usually when I set the root node to network.…
Aktony
  • 1
  • 3
-1
votes
1 answer

ubuntu 2004 netplan error:Error in network definition: unknown key 'nameservers'

ubuntu 2004 I assign network with netplan,then error comes: /etc/netplan/00-installer-config.yaml:8:3: Error in network definition: unknown key 'nameservers' nameservers: the 00-installer-config.yaml file below: # This is the network config…
Dai Wen
  • 13
  • 1
  • 3
-1
votes
1 answer

Delete an IP address to the loopback interface on netplan

I needed to add a new IP to the loopback interface (besides the usual localhost 127.0.0.1) On my Ubuntu server running Netplan I've added on the .yaml file the code lo: addresses: [50.1.0.1/16] I applied and everything was cool. The issue came…
NicoCaldo
  • 1,171
  • 13
  • 25
-1
votes
2 answers

List all IP's using the command "ip" and not "ifconfig"

I am trying to find a command that can list all the IPs (only the ip's) using the "ip" command in ubuntu 20.04. Ip a outputs way too much, so I tried to output only a bit of it without success using ip -c -6 -o a or ip -c -4 -o a for ipv4. Does…
Poli
  • 113
  • 14
-1
votes
1 answer

Netplan ipv6 "No route to host"

I've clearly misconfigured my ipv6 listener addresses. Question 1: I need someone to spot the error. And a bonus Question 2: is there any risk to removing the "/sbin/ip address add" command below? This is on a ubuntu 18.04 virtual machine. …
thebiggestlebowski
  • 2,610
  • 1
  • 33
  • 30
-2
votes
1 answer

How to use netplan to connect to EAP wifi

I can't find any good guides online on how to connect to eap wifi using netplan. I currently have tried to create a file named config.yaml with the following network: wifis: wlp1s0: dhcp4: true access-points: …
urd00m
  • 1
  • 2
1 2
3