Questions tagged [netplan]

Netplan is a utility for easily configuring networking on a linux system. You simply create a YAML description of the required network interfaces and what each should be configured to do. From this description Netplan will generate all the necessary configuration for your chosen renderer tool.

Filter by
Sorted by
Tagged with
0
votes
1answer
116 views

Issues setting up netplan with 2 NICs, one with ppp

I use netplan with 2 NICs, one for the LAN enp0s31f6 and one for the internet enp6s0. Firstly I can't get systemctl to launch iptables successfully. It says it does in the logs - but when I check, ...
0
votes
1answer
58 views

I know the command line so what's the netplan yaml?

in Ubuntu 18.04 (and 18.10) we're finding (on proxmox host) that Ubuntu VM's are losing the lan IP route on restart. We know the command to make them re-add it. But we don't want to have it run it ...
0
votes
1answer
161 views

Set the nameserver in ubuntu with netplan

I'm working on an ansible playbook to set the dns server addresses in my Ubuntu Bionic 18.04.2 server. I don't want to use resolv.conf cause I learned it's deprecated in the new Ubuntu. My question ...
0
votes
0answers
114 views

Ubunutu 19.04 Networking Question

I am currently trying to debug a networking issue with dns and openvpn. I am finding it confusing to work out how ubuntu is currently handling networking in general. Can anyone explain the precedence, ...
-1
votes
1answer
212 views

Ubuntu 18.04.2 netplan basic wired network configuration

Struggling tonight to find basic information on getting a machine back on the network. Wired dhcp no longer works and I can't figure out how to even do a static assignment. I have a wired and wireless ...
0
votes
0answers
65 views

Ubuntu 19 in VMware 15 player (Windows 10): ping get stuck after a few seconds

I have installed the last Ubuntu version (19) in a VMware Workstation 15 player, in bridge mode. I'm experiencing problems with DNS and ping. Looks like the DNS resolution works for a few seconds and ...
0
votes
0answers
49 views

Porting transparent proxy routing configuration to netplan

How can I translate the following ip commands, which divert traffic for the purpose of transparent proxying to the local machine, to a netplan configuration for Ubuntu 18.04? ip route add local 0.0.0....
2
votes
3answers
881 views

make netplan write resolve.conf

I have an Odroid C2 - a single board computer running 18.04 minimal for ARM. Originally, it was using NetworkManager + systemd-resolved to manage network connections, but since I use only Ethernet and ...
0
votes
1answer
87 views

IP Range using Netplan

Is it possible to configure Netplan with Static IP range? Or do you need to specify each IP like in old ifupdown configuration. Basically I want to do something similar to RedHat: IPADDR_START=192....
0
votes
1answer
278 views

Ubuntu server 18.04 with two interfaces set default gateway interface

I have a question. I have a ubuntu 18.04 Server there need to connect to two networks ( My network and my neighbors network ). The main network there shall be the default gateway is 192.168.88.0/24 (...
0
votes
1answer
271 views

apt package `netplan` vs `netplan.io`

I see two packages in apt: netplan.io - YAML network configuration abstraction for various backends netplan - network server for `plan' I presume netplan.io is the one for dealing with /etc/netplan/...
0
votes
0answers
79 views

Making access point Ubuntu server 18.04.02 LTS for ARM using netplan

My problem seams simple and clean, but now the server is apparently set up using netplan to override network interfaces. for me that mean that every description, solution and howto is hart to follow. /...
0
votes
0answers
33 views

DRBD8 with Systemd-Networkd (Netplan)

This is the first time I am configuring DRBD(drbd-utils 8.9.10-2) on a Ubuntu 18.04 with systemd-networkd (using netplan). Generally the setup seems successful. I have one resource that is being ...
0
votes
1answer
50 views

Ethernet interface changes name

My ethernet interface changed name from enp6s0 to enp4s0 after a power loss. Something like this has happened before, but don't recall exact details. I modified /etc/netplan/50-cloud-init.yaml to get ...
0
votes
1answer
33 views

Add startup dependency from netplan to ssh

By default, ssh binds to 0.0.0.0:22 which obviously works without problem. But now, I added a gitlab docker container to my system (which uses port 22) and so I had to restrict my host ssh service to ...
0
votes
1answer
162 views

How to configure two segment's IP addresses' gateway use netplan?

How to configure two segment's IP addresses' gateway use netplan ? #!/bin/bash network: version: 2 renderer: networkd ethernets: enp1s0f1: addresses: - 22.95.140.1/24 ...
1
vote
1answer
132 views

Ubuntu Server DNS Problem with Static IP

I am running an Ubuntu Server on my VMBox and need to set static IP. By following the steps described in https://www.techrepublic.com/article/how-to-configure-a-static-ip-address-in-ubuntu-server-18-...
5
votes
1answer
309 views

Malformed Address '10.10.21.08/24', must be X.X.X.X/NN or

I am trying to set a static IP for my ubuntu server by creating a yaml file on /etc/netplan/ as follows: network: version: 2 renderer: networkd ethernets: enp0s3: ...
2
votes
2answers
170 views

netplan: usage by command line (without manually editing this annoying yaml file)?

It looks like netplan is the future, but compared to this simple command: ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up it's much more work to edit the annoying yaml file (the yaml parser feels ...
0
votes
2answers
145 views

Port a working /etc/network/interface set into /etc/netplan/name.yml

I'm using two boards, one running ubuntu desktop 18.04 and one running ubuntu server 18.04. In the desktop board, I have set a vlan by writing the /etc/network/interfaces file as described below (I ...
0
votes
0answers
157 views

Can I remove NetworkManager when using netplan with networkd renderer?

I've just installed Ubuntu 18.04 x86-64 with the Mate environment. When I found that the fancy new way to configure your network is netplan, I gave it a try and created a config like below: network: ...
3
votes
0answers
691 views

Ubuntu Bionic Server edition + Netplan: Not getting static IP on a ethernet connection

Problem: I cannot get a static IP on the ethernet port. Aim: Trying to setup a static IP on the Realtek built-in ethernet (enp3s0) port so I can connect the server to my desktop via a crossover cable....
0
votes
2answers
60 views

Fragile netplan file

I have a kvm server that has several vlans on it, and I want to create a bridge for each vlan. Putting together docs from several sites, I've come up with something that sometimes works, and sometimes ...
1
vote
1answer
312 views

bond0: interface ens192 is not defined

I installed ubuntu 18.04, I trying to configure bond interface network: bonds: bond0: addresses: [10.11.6.119/24] gateway4: 10.11.6.1 nameservers: ...
1
vote
1answer
246 views

Ubuntu 18.04 netplan wifi VPN config

On my test-laptop I set up my netplan like this network: version: 2 renderer: networkd ethernets: enp4s0f1: dhcp4: yes dhcp6: no addresses: [192.168.178.30/24] ...
1
vote
0answers
171 views

Wake On Lan Remote Times Out 18.04

So I have wol working almost perfectly, after I shut down my pc I have approx a one-minute window where my desktop is detected as inactive by my routers 'connected devices' menu and I can send a magic ...
0
votes
0answers
31 views

Netplan, DHCP, class option and devices monitoring a “magic bit” to update firmware

After reading through the Netplan docs a few times, I still don't think I found this specific situation addressed. I have a number of hardware devices with their own DHCP class, these devices are ...
1
vote
2answers
247 views

frustration in netplan

I've been scratching my head the whole day. I have the following netplan yaml file: (with mac address & ip addresses masked out for privacy) network: version: 2 renderer: networkd ethernets:...
0
votes
1answer
98 views

Netplan interfering with IP assignments?? Ubuntu 18.10

I've got a simple testbed for Ubuntu that I've hit a very unusual issue on. For some reason it appears that my IP addresses are changing between interfraces without any intervention from the user and ...
0
votes
2answers
204 views

Netplan generates the same mac address for bridges on two different machines

The two machines in question have different MAC addresses for eth0. However, when I apply the following netplan file, I end up with the same mac address on both machines, which, of course, is kind of ...
0
votes
0answers
149 views

Netplan: second interface does not work

I have two network interfaces, both on separate networks. I want to be able to route traffic between them, and I followed the Netplan example documentation for this use case. However, only the primary ...
-1
votes
1answer
298 views

Netplan - Ethernet when available, wifi when not. Reconnect if needed

Note: this question has changed while investigating problem to stay up to date. Note 2: This question is invalid, the described problem is gone. Askubuntu prevents me from deleting it. Here is my /...
7
votes
0answers
1k views

Ubuntu 18.04.2 LTS server - network configuration problem during setup

Has anyone had the same problem? When installing from current server iso's in a VMWare VM and without a DHCP Server present, both Ubuntu installers are not able to manualy configure a ethernet ...
0
votes
2answers
1k views

yaml expected mapping

I am setting up my static ip but i keep getting the error: Error in network defenition etc/netplan/01-netcfg.yaml line 0 collumn 8: expected mapping. Here is my config: network: version: 2 ...
4
votes
2answers
753 views

How do you configure Netplan on Ubuntu to store 802.1x credentials securely?

In an 802.1x enterprise network, I can use NetworkManager to configure 802.1x parameters, including the password. This all works, but requires storing the password in cleartext. We are trying to use ...
0
votes
2answers
396 views

Port 53 use by Netplan

I like working with Ubuntu but today I have a problem. With 18.04 LTS arrived Netplan and systemd-resolve. I want to deploy CoreDNS on a 18.04 server. If Netplan is the future then I would like to ...
0
votes
0answers
99 views

How to run `arp-scan` on an interface that's modified by netplan?

I have a link-local address set up for an ethernet dongle via netplan: # For USB eth dongle network: version: 2 renderer: NetworkManager ethernets: enx00249b1ec202: dhcp4: no ...
0
votes
1answer
449 views

Netplan: ipv6 route on link

I'm trying to declare a static ipv6 route on the link using netplan (more precisely I'm trying to setup a default gateway whose address is not on my interface subnet) Basically what I'm trying to do ...
2
votes
1answer
3k views

netplan vs NetworkManager on Ubuntu 18.04 and above

What is the concept of renderer in a netplan configuration file? What practical difference does it make between choosing a networkd and a NetworkNamager renderer? Can anyone (in the second case) ...
1
vote
0answers
142 views

ubuntu 18.10 how to setup static ip network with local domain search post install

I just tried an install ubuntu 18.10 desktop on my intranet. I did a regular install, then I got a DHCP networking setup, that is ok with me for a fresh install. Then I am on an intranet with our ...
0
votes
2answers
690 views

netplan - two interfaces

I would like to set up two interfaces in one config file of netplan. Currently I am using this one: network: version: 2 renderer: networkd ethernets: ens18: dhcp4: ...
0
votes
1answer
550 views

MACVLAN Bridge in netplan

I configured LXD containers in Ubuntu 18.04 with MACVLAN interfaces so they can DHCP addresses on my LAN. This all works fine, the containers are reachable on my LAN and they can reach each other, but ...
0
votes
2answers
1k views

Error in network definition: unknown key dhcp4-overrides

I am trying to set up Ubuntu 18.04 LTS, which appears to be using netplan to configure networking. In this case I need to override the DNS servers provided by DHCP and use manually assigned ...
0
votes
0answers
272 views

Can't resolve hostnames ubuntu 18.04

Since earlier today i can't resolve any hostname anymore. apt-get update/upgrade fail because of this for example. I have tried to lookup the IP for some of the sources in /etc/apt/sources/list on ...
2
votes
2answers
404 views

Routing IP addresses in Ubuntu 18.04

I have been scratching my head about this all day. Basically, I have several servers on a private network, each with a private IPv6 address assigned and a public IPv4 and IPv6 assigned. I want the ...
1
vote
1answer
314 views

How to load saved iptables rules on rebooting [duplicate]

I used pre-up in /etc/network/interfaces. It's strange, I have two Ubuntu server, one a PC and another a VPS. This method works on my PC but not on my VPS. This is the /etc/network/interfaces on my ...
0
votes
0answers
196 views

How to permanently disable TSO & GSO in Ubuntu 18.04

I'm upgrading my production servers from Ubuntu 14.04 => 18.04 and running into a lot of surprising changes. For example, I'm trying to permanently disable TSO & GSO using ethtool and can't find ...
0
votes
1answer
388 views

apt not working on ubuntu 18.04

Since I've installed 18.04 my network has been a totally nightmare to debug. I'm with this for one day. I really don't know what's going on. I can access some websites and others not. ping ubuntu.com ...
0
votes
0answers
1k views

Issues setting static IP using netplan Ubuntu Server 18.04 LTS

Having some major issues with networking on Ubuntu 18.04 LTS. Fresh install. I set a static IP during install which worked for a couple days and remained set after multiple reboots. Now the interface ...
1
vote
2answers
395 views

50-cloud-init.yaml, optional: true - will the network interface get initialized if it gets online after the boot sequence?

Good evening Unfortunately, the Man Page: https://netplan.io/reference is not precise in the description for the optional (bool) property. If one interface has this setting: ethernets: eth0: ...