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
1 vote
2 answers
2k 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-...
codemonkey's user avatar
6 votes
1 answer
3k 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: ...
codemonkey's user avatar
6 votes
3 answers
5k 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 ...
Tom's user avatar
  • 264
0 votes
2 answers
740 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 ...
CarloV's user avatar
  • 3
3 votes
0 answers
2k 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....
mrjayviper's user avatar
  • 1,555
0 votes
2 answers
146 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 ...
rory toma's user avatar
  • 347
2 votes
2 answers
5k 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: ...
Ayrat's user avatar
  • 21
2 votes
1 answer
3k 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] ...
dMatija's user avatar
  • 313
1 vote
0 answers
340 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 ...
Justin Francis's user avatar
2 votes
2 answers
2k 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:...
Edwin's user avatar
  • 49
0 votes
1 answer
834 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 ...
firestorm.v1's user avatar
5 votes
2 answers
9k 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 ...
rory toma's user avatar
  • 347
1 vote
1 answer
5k 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 /...
Croll's user avatar
  • 639
10 votes
0 answers
2k views

Ubuntu 18.04.2 LTS server - network configuration problem during setup

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 interface. With the ubuntu-18.04.2-...
anodhi's user avatar
  • 101
0 votes
2 answers
13k 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 ...
Rick's user avatar
  • 5
5 votes
2 answers
12k 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 ...
Phillip Remaker's user avatar
2 votes
2 answers
3k 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 ...
user1691247's user avatar
1 vote
1 answer
3k 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 ...
raphael.glon's user avatar
28 votes
1 answer
52k 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) ...
pkaramol's user avatar
  • 2,121
1 vote
0 answers
304 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 ...
Phi's user avatar
  • 141
2 votes
3 answers
10k 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: ...
coolbuntu's user avatar
1 vote
1 answer
9k 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 ...
Georg's user avatar
  • 43
5 votes
2 answers
13k 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 ...
Michael Hampton's user avatar
0 votes
0 answers
777 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 ...
kasper's user avatar
  • 1
2 votes
2 answers
1k 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 ...
matty0501's user avatar
2 votes
1 answer
5k 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 ...
Tom Hsiung's user avatar
0 votes
2 answers
5k 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 ...
Saurabh Nanda's user avatar
1 vote
1 answer
2k 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 ...
João Pimentel Ferreira's user avatar
0 votes
0 answers
6k 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 ...
CNorlander's user avatar
10 votes
2 answers
16k 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: ...
Tom's user avatar
  • 264
1 vote
1 answer
5k views

How to use netplan to do the same as was being done using iptables?

I am setting up a new server with 18.04 based on instructions written for 14.04. I have got as far as these steps: /sbin/iptables -A FORWARD -p tcp --destination-port 80 -j ACCEPT /sbin/iptables -t ...
Matthew Taylor's user avatar
0 votes
1 answer
240 views

How to configure two static interfaces in virtuabox ubuntu server 18.04 guest using netplan

I'm running an ubuntu server 18.04 under VirtualBox with 2 network adapters: NAT Network (enp0s3) and a Host-only Adapter (enp0s8). I use the NAT to access the internet and the Host-only Adapter to ...
Wildland Dolphin's user avatar
1 vote
0 answers
1k views

Disable netplan in install iso

This is not a discussion about netplan, I just want to craft an iso that has netplan disabled. The FAQ (https://netplan.io/faq#how-to-go-back-to-ifupdown) says "[...]This is done by adding the ...
Fabian Dellwing's user avatar
2 votes
2 answers
14k views

UBUNTU 18.04 Server: multiple netplan route-policy rules, but only one works

UBUNTU SERVER 18.04 LTS with 2 GE NICs eno1: 172.22.1.1/20 eno2: 10.11.1.34/30 netplan yaml: network: version: 2 renderer: networkd ethernets: eno1: addresses: [ 172.22.1.1/20 ] ...
TerryR01's user avatar
  • 481
12 votes
2 answers
20k views

How do I use cloud-init to apply netplan?

After I manually edit /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg, how do I tell cloud-init to update /etc/netplan/50-cloud-init.yaml? In other words, it doesn't make sense to manually update both ...
Reinderien's user avatar
14 votes
2 answers
8k views

What does "changes to it will not persist across an instance" actually mean in 50-cloud-init.yaml

In recent Ubuntu, netplan is the default way of configuring network adapters. I want a static IP on one of mine, and there are some guides on how to do that. Some point you to editing 50-cloud-init....
aggieNick02's user avatar
0 votes
1 answer
3k views

Bridging, bonding and netplan

I'm trying to set up a bridge over a bond for LXD using netplan. This is my current configuration: network: version: 2 renderer: networkd ethernets: id0: match: {name: "eno[1-2]"} ...
devster's user avatar
  • 151
3 votes
1 answer
2k views

How can I use netplan for DNS domains?

I am wondering if I actually need dnsmasq or Bind to apply the following simple DNS server rule: Forward DNS lookups for *.mydomain.com to 10.0.0.2; Forward DNS lookups for anything else to 8.8.8.8 ...
jsstuball's user avatar
  • 267
0 votes
1 answer
2k views

Policy Routing with NetPlan on TUN interfaces

I am trying to set up an OpenVPN server on Ubuntu 18.04 in AWS in routed mode, using a tun interface (not tap). The server sits in a public subnet, with an attached ENI in a private subnet. All is ...
Taff's user avatar
  • 1
1 vote
1 answer
2k views

Netplan - Multiple ssids with different static IP on the same interface

I have successfully set up a wifi network configuration like this: network: version: 2 renderer: networkd wifis: wlxf8d1111b0d78: addresses: [10.0.0.69/24] gateway4: 10.0.0.138 ...
WizMeister's user avatar
2 votes
3 answers
13k views

LXD: how to avoid double default gateway in ubuntu 18.04?

UPDATE 2 Top posting because it is needed to apply the suggested solution. Found on second answer to this question: Can netplan configured nameservers supersede (not merge with) the DHCP nameservers: ...
Mirto Busico's user avatar
0 votes
1 answer
2k views

Can't SSH to Raspberry Pi via wired connection with static IP

My Raspberry Pi 3B+ is running on Ubuntu Server 18.04. I have it connected to my PC via ethernet dongle in link-local mode. I tried adding a static IP on the Pi with netplan, but I couldn't connect ...
YamiYukiSenpai's user avatar
0 votes
1 answer
672 views

Serving DHCP Under Ubuntu 18.04 [duplicate]

Problem Summary I have two network interfaces in the machine, and need them to behave in the following way: enp3s0: Main network interface for the machine. Receive over DHCP an IP address (will be ...
Rgaddi's user avatar
  • 121
1 vote
1 answer
5k views

Invalid YAML for netplan: mapping values

So, I am trying to set a static IP address for my Ubuntu Server 18.04.1 LTS. I took the ethernet config from this site. network: version: 2 renderer: networkd ethernets: enp3s0: dhcp4:...
Kevin's user avatar
  • 204
0 votes
1 answer
3k views

Unable to connect using wifi on Ubuntu server 18.04 LTS using netplan, wired works fine

Newbie Ubuntu user here, I'm trying to connect wirelessly using netplan, but for the life of me can't work out why it's not working, I have no problem connecting through Ethernet. I'm on a newly ...
Maikol's user avatar
  • 121
1 vote
1 answer
2k views

networkd status - wlp1s0: Could not join netdev: Operation not supported

I'm struggling on using the wlan on a server 18.04. this is my 01-netcfg.yaml: network: version: 2 renderer: networkd ethernets: enp2s0: dhcp4: yes optional: true enp3s0: ...
gipsea's user avatar
  • 11
0 votes
1 answer
508 views

Netplan directly connected gateway

I'm trying to set up a server with 192.... addresses that is able to access the outside world using the gateway provided by my colo. I'm looking at the "Directly connected gateway" example at https://...
Robert A. Decker's user avatar
1 vote
1 answer
8k views

Netplan configuration doesn't seem to be taking effect

After configuring a static ip address in /etc/netplan/01-network-manager-all.yaml for my wlan interface, the ip address nor the dns changed. I used sudo netplan generate and sudo netplan apply, but ...
AlexDude7's user avatar
  • 187
1 vote
1 answer
14k views

Netplan - configuring 2 vlan on same bonding

On my Ubuntu servers (16.04) I used to create a bonding between 2 interfaces and set 2 adresses on it from 2 different vlan. I can't manage to create the same configuration with Netplan for my new ...
Ludw's user avatar
  • 71
3 votes
1 answer
8k views

How do I configure DHCP bridge with netplan for KVM on Ubuntu 18.04 LTS?

I recently installed KVM on Ubuntu 18.04 with requisite tools like virt-manager, libvirt, and qemu. My problem is that the VMs I spin up are not connected to internet. Some give me an error message ...
Justin Brunkow's user avatar

1
14 15
16
17 18
21