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
3k 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 ...
2
votes
2answers
4k 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
688 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
828 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 ...
2
votes
1answer
2k 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
1answer
740 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 ...
1
vote
1answer
1k 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
4k 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 ...
2
votes
2answers
1k 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: ...
0
votes
1answer
1k 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 ...
0
votes
1answer
100 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 ...
0
votes
0answers
448 views

create a vlan bond with netplan fails to get ip

So i have a server with 2 nics which i linke to have a bond for redundancy. The switch only accepts vlans, so they need to be present. I created the following yaml: network: version: 2 renderer: ...
1
vote
0answers
582 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 ...
1
vote
2answers
2k 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 ] ...
4
votes
1answer
3k 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 ...
7
votes
2answers
3k 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....
0
votes
1answer
1k 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]"} ...
1
vote
1answer
791 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 ...
0
votes
1answer
810 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 ...
0
votes
1answer
693 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 ...
2
votes
1answer
3k 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: ...
0
votes
1answer
977 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 ...
0
votes
1answer
522 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 ...
1
vote
1answer
2k 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:...
0
votes
1answer
2k 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 ...
0
votes
1answer
639 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: ...
0
votes
1answer
215 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://...
1
vote
1answer
4k 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 ...
0
votes
1answer
3k 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 ...
2
votes
1answer
3k 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 ...
3
votes
1answer
2k views

Netplan not connecting to hidden SSID Server 18.04.1 LTS

I've a problem with Netplan not connecting to WiFi network with hidden SSID. It works great if I'll make this network visible. But no chance with hidden one. Any options to configure that?
0
votes
1answer
213 views

Long bootup time with bridge configured in netplan in 18.04

In Ubuntu 18.04 the default network configuration is done with netplan. I have a setup which creates a bridge interface at startup, see below. It all works great, except that during startup it runs ...
0
votes
1answer
474 views

Does apt upgrade trigger netplan apply in 18.04?

I did apt-get update; apt upgrade on a remote server over SSH. netplan.io and some systemd packages were upgraded. I switched to a different screen window, but after just a few seconds the SSH ...
1
vote
0answers
183 views

Netplan configuration leads to low network speed

With Ubuntu 18.04. I want to configure my eth0 as wakeonlan thx to the following yaml file in/etc/netplan : network: version: 2 renderer: networkd ethernets: eth0: dhcp4: yes ...
1
vote
0answers
416 views

Destination Host Unreachable on Ubuntu Netplan, same subnet, same routes

I've been banging my head against this problem for days and can't find a solution. I have a network with a server with two interfaces, one for normal traffic and one with an address 10.72.0.23/12 (...
1
vote
1answer
708 views

mixed up network configuration in 18.04

Recently upgraded to 18.04 from 14.04 (in steps of course) Just about everything works. Have network access, and remote access via ssh. Desktop sharing (VNC) however doesn't work and can't be ...
3
votes
1answer
345 views

Is /etc/network/interfaces still working with newer Ubuntu?

I know newer Ubuntu are using Netplan to manage the network and it will replace the traditional /etc/network/interfaces way of network configuration. I have to configure some Ubuntu machines this ...
0
votes
1answer
813 views

Ubuntu 18.04 Server no remote access

Hi I have a fresh install of Ubuntu 18.04 server. I have installed the LAMP stack and Nextcloud. It is working well except I can not access the server remotely with firefox or ssh. On the LAN both ...
0
votes
0answers
615 views

netplan network configuration with vlans and bridges

I'm trying to move a network configuration with vlans and bridges from Ubuntu 16.04 to Ubuntu 18.04 (netplan). I've read a few similar questions and answers on here but still cannot get it to work. ...
0
votes
1answer
47 views

Automatic route deleting in a specific network

I'm on Ubuntu 18.04 and I try to learn more on netplan. When I'm in school's network I need to access to the LAN but I don't want my internet traffic goes by their gateway. I can connect to network ...
3
votes
0answers
1k views

Netplan wireless bridge Ubuntu 18

I am trying to create a bridge for my wireless NIC (wlp4s0) with the intention to provide direct access to it from a KVM. I also intend to share the ethernet NIC the same way, but am only having ...
0
votes
1answer
497 views

Destination unreachable when setting up host-only networking

Ubuntu 18.04 I have read many other posts about this and tried various solutions but I still cannot get this to work. I have two interfaces configured. The first is host-only and the second is NAT ...
1
vote
0answers
302 views

Find out netplan duid before starting the system

is there a way to find out the duid netplan is using to request the dhcp lease before starting the system. Can it be calculated or triggered from outside? Use case: Before netplan, I used the ...
2
votes
1answer
3k views

18.04 - How to disable temporary/privacy IPv6 addresses?

I have 18.04 installed and I'm using it as jump box to reach other things. Some of the things I need to access are only reachable via IPv6 and expect me to connect from a specific IPv6 address so my ...
17
votes
2answers
15k views

How do I reload network configuration with cloud-init?

I've installed Ubuntu Server 18.04, and instead of the old /etc/network/interfaces, it seems that my network configuration now lives in a series of YAML files in /etc/netplan, of which the only one I ...
0
votes
2answers
1k views

How to create multiple addresses using netplan in Ubuntu 18.04?

How to create multiple addresses using netplan in Ubuntu 18.04? I want to assign 50 addresses using notation like 192.10.23.1/24-192.10.23.50/24. Is it possible?
1
vote
2answers
899 views

Netplan on Ubuntu 18.10 (Cosmic Cuttlefish): DHCP4 + static routes

I'm using fresh Ubuntu Server 18.10 (Cosmic) installation with netplan. What I'm trying to achieve is to setup network interface via DHCP and add some static routes. With static IP settings things ...
0
votes
1answer
730 views

Cannot ping across a bridge (netplan, qemu)

I cannot ping a virtual image running as a qemu guest in Ubuntu 18.04. The default yaml file in /etc/netplan/ is: network: version: 2 renderer: networkd ethernets: eno1: dhcp4: yes ...
0
votes
2answers
3k views

Convert /etc/network/interfaces to netplan for floating IP

I am new to the netplan on Ubuntu 18.04, just discovered it exists today. I have an interface that I am trying to add to create a floating IP on google cloud. It is based on this example: https://...
0
votes
1answer
998 views

Rocky Release using Ubuntu 18.04 with netplan

I am currently using Newton with ubuntu 16.04 and would like to migrate to Rocky over Ubuntu 18.04. But I discovered that Ubuntu 18.04 is using netplan instead of ifupdown to manage the network ...

1
5 6
7
8 9
11