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.

164 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
6
votes
1answer
3k views

How do I stop netplan from binding a default gateway on every interface

I have a fresh install of ubuntu server 17.10, however the problem may affect previous versions, but this is the first time I have encountered this situation. The server is running 2 separate network ...
4
votes
1answer
2k views

Can “netplan” be used with OpenVPN

I'm using Kubuntu 17.10, and use OpenVPN to connect to my corporate network. Since Ubuntu moved over to the new "netplan" way of doing network related things, I have found that several things in ...
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....
3
votes
0answers
399 views

How to force a bridge to clone mac-address from first added physical port

I'm configuring KVM/QEMU on Ubuntu 18.04 using netplan. There is corporative dhcp-server that provide a lot of mandatory data in addition to ip/netmask. The issue is that a bridge on setup generates ...
3
votes
1answer
1k views

Ubuntu 18 Server GRE tunnel with netplan?

How do I create a GRE tunnel with netplan? Previously in /etc/network/interfaces, I would do.. iface gr0 inet manual pre-up ip tunnel add gr0 mode gre remote 10.10.10.10 local 10.20.10.10 dev ens33 ...
3
votes
0answers
1k views

Network setup with Netplan and bridges

I'm having an issue where any bridge I create with netplan doesn't get an address. The following starts my NIC and I get a DHCP address: network: version: 2 ethernets: enp0s3: ...
2
votes
0answers
40 views

Ubuntu 18.04: Host name changes spontaneously from FQDN to PQDN in DNS

We are running Ubuntu 18.04 LTS with networking configured by Netplan. The network has a Windows DHCP server and a Windows DNS server. The Ubuntu 18.04 machine uses this Netplan cfg file to obtain a ...
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 ...
2
votes
0answers
375 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 ...
2
votes
1answer
941 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 ...
2
votes
0answers
1k views

Netplan - Bridging over a bond on Ubuntu 18.04 KVM host

Sorry in advance for the long post, this has been rattling me days. I've got a server with 4 NIC (eno1, eno2, eno3, eno4). I'm trying to establish the following setup: Host - Ubuntu Server 18.04 ...
2
votes
1answer
2k views

netplan issue with Ubuntu 18.04.1 Server. No network connectivity (no routes either)

I've been using Ubuntu since inception and have recently found out about Ubuntu's switch to using netplan vs it's traditional/better /etc/network/interfaces method. I'm attempting to get this to ...
2
votes
0answers
555 views

Port Forwarding Ubuntu Server 18.04 with netplan and ufw I have a server with 2 network interfaces

I have an Ubuntu server 18.04 with 2 network interfaces. enp1s0 has ip address 192.168.0.1/24 enp2s0 is connected to DHCP I am looking to forward port 8080 from any incoming traffic connected to ...
2
votes
1answer
512 views

How can I override netplan's per-interface nameservers, rather than appending to them?

I have an DigitalOcean server that's being configured via cloud-init. With Ubuntu Bionic Beaver, this creates a netplan file in /etc/netplan/50-cloud-init.yaml that contains nameserver addresses. ...
2
votes
0answers
1k views

Setting up PPPoE wired connection in Ubuntu 18.04.1 Bionic Beaver (Desktop Version)

My ISP provides PPPoE connection with username, password and service name and binds my MAC Address. Since I have connected my router to the WAN, the MAC Address of the router has been bound in their ...
2
votes
2answers
2k views

How to add static route with preferred source via Netplan in 18.04?

I want to use loopback alias IP for all outcome IP traffic from my Ubuntu server directed to some subnets. In /etc/network/interfaces that can be done by post-up statement with something like: /sbin/...
2
votes
2answers
6k views

Bring up but don't assign address with Netplan

I have an interface I want to bring up at boot but otherwise leave unconfigured. No DHCP, no static IP. Is there a way to do this with Netplan in 18.04? I tried the following (where enp10s0f1 is the ...
2
votes
0answers
1k views

Server 18.04: netplan, avahi and DHCP combination

For a long time now I have been looking for a means to replicate Window's IPv4 assignment behaviour. That is, first try DHCP and on failure switch to link-local addressing. So far I failed to find ...
2
votes
1answer
1k views

Ubuntu Server 18.04.1 Cannot Keep Static IP Address After Assigned

I am trying to assign a series of static IP addresses to my homelab server so that I can run a media service. I edited /etc/netplan/ with the following: 01-netcfg.yaml: network: version: 2 renderer:...
1
vote
0answers
27 views

acces denied. static IP. netplan. ssh

I have an old computer, and I decided to make a server out of it, install Ubuntu 19.04 server on it, and everything was fine until I tried to configure a static interface. I ordered it from the ...
1
vote
1answer
26 views

Ubuntu 18.04, Network Manager is not able to manage network devices (still broken)

I have installed Ubuntu 18.04.2 server and then installed ubuntu-unity-desktop, and Network Manager is hosed. This problem has been reported more than once (Ethernet device not managed) and I am sure ...
1
vote
0answers
34 views

Cloning an Ubuntu 18.04 physical server

I am working on cloning an Ubuntu 18.04.2 physical server, I use clonezilla for cloning, however, when I apply that image to any other servers (and of course I change the hostname and static IPs), I ...
1
vote
3answers
664 views

Ubuntu 19.04 bind not resolving locally

Just trying the newest Ubuntu 19.04 and it has some differences with resolv.conf when running my own bind locally. Previously in 18.04 resolv.conf looks like this nameserver 127.0.0.1 nameserver 127....
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
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 ...
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 ...
1
vote
0answers
74 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
221 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
324 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 ...
1
vote
0answers
154 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 ...
1
vote
0answers
97 views

Ubuntu Server 18.04 no IPV4 after resume

I fail to get ipv4 working on an ubuntu server 18.04 after it was suspended and resumed. The only way I get ipv4 running again is reboot. The system is installed as a guest in a vmware virtual machine....
1
vote
0answers
1k views

netplan + WiFi: link is not ready (18.04 Server)

I'm trying 18.04 Server with this fancy new netplan and can't get my WiFi to work. Doing it the old-fashioned way (e.g. configuring wpa_supplicant.service and using dhclient), everything is fine. But ...
1
vote
0answers
740 views

18.04.1 LTS systemd-network not applying [RoutingPolicyRule]

I have a server instance with two interfaces, and I have created a rule to ensure traffic that comes in ens160 goes out ens160 despite matching the default route for ens192. The routes and rules work ...
1
vote
1answer
605 views

No default gw from dhcp in ubuntu server 18.04 with netplan

I have an issue with network configuration in ubuntu server 18.04. My host does not apply default gateway route from dhcp server. My netplan config is: network: version: 2 ethernets: enp0s8: ...
1
vote
0answers
507 views

How do I configure Kickstart network settings with Ubuntu 18.04?

I saw that in Ubuntu Server versions 16.04 and prior, there used to be a way to auto-configure the SystemV networking part of the Ubuntu OS in unattended installs via Kickstart files. However it seems ...
1
vote
1answer
919 views

Ubuntu 18.04 desktop: netplan.io+NetworkManager: wrong default route mask (0.0.0.0/24)

My yaml file is: network: version: 2 renderer: NetworkManager ethernets: enp2s0: dhcp4: no dhcp6: no enp3s0: dhcp4: no dhcp6: no addresses: [192.168.245.50/...
1
vote
1answer
731 views

How to route IP net to interface using netplan

The VLAN of eth0 holds 2 IP nets, from the machine with IP 10.64.0.101/27 (eth0@machine-1) I used to connect to the openVPN server at 10.0.0.41/27 (eth0@machine-2) with the IP range 192.168.0.0/24. ...
1
vote
0answers
2k views

18.04 server used netplan to setup WiFi, Now WiFi has same Mac address as Lan

Not sure if this is a bug in netplan or is expected behavior. I have tried this using a bare metal computer and also VMware Workstation 14.x and both USB and a PCI WiFi cards have the same Mac ...
1
vote
3answers
2k views

How to configure bridge network through WiFi with 18.04 host with netplan in order for bridge adapter to work with VirtualBox?

I'm trying to connect the Ubuntu 18.04 guest machine to the network on my Kubuntu 18.04 host laptop via bridge adapter. The Ubuntu guest won't recognize it, however. I read about how I should be ...
1
vote
0answers
2k views

Ubuntu server 18.04 - No IP address with Netplan

Background: Hardware: Thinkpad X301 In the installation of Ubuntu 18.04.1 Server (64-bit) the installation was stuck at the network setup portion of the installation. The network setup timed out and ...
1
vote
0answers
87 views

netplan+networkd portable/usb setup

I have a number of bootable USB drives with Ubuntu 18.04 which had been upgraded from past versions of Ubuntu. Now I am looking for the most proper and concise config for netplan to express a rule ...
1
vote
1answer
322 views

Netplan source route through script

I was using Ubuntu 14.04 and 16.04 but now when installing new ones or upgrading servers to 18.04, netplan has shown up. The machines work with DHCP and I currently have a couple of network scripts ...
1
vote
0answers
69 views

Print netplan config

Does netplan have any options available for writing how it interprets its config files to stdout, an arbitrary directory, or something similar? The context for my question is that I'm updating a ...
1
vote
0answers
421 views

Netplan / systemd-networkd VLAN is missing

I tried to add a additional virtual VLAN Interface, but it is not visible in ifconfig. Netplan Config: network: version: 2 renderer: networkd ethernets: ...
1
vote
2answers
7k views

How to add additional IP to new interface on ubuntu 18.04?

I have an ubuntu 18.04 VPS with 2 additional IPs, this is the config file I'm using which config all IPs on ens3: network: version: 2 renderer: networkd ethernets: ens3: dhcp4: no ...
1
vote
0answers
804 views

Netplan renderers

I'm trying to locate the configuration files netplan creates on the back end (depending on the renderer used). Example: network: version: 2 renderer: **networkd** ethernets: ens160: ...
1
vote
1answer
88 views

Can not SSH into machine from local network when gateway route is added to netplan config

Ok, so to SSH into this machine from the local network, I have had to set a route with the default gateway of the IP of the machine, I am sure this is wrong, my current config looks like this network:...
1
vote
1answer
2k views

netplan bridge: no connection to/from virtual machine

I'd like to setup a bride on my host(ubuntu 18.04 server) to get a connection to the internet from/to my virtual machine (also ubuntu 18.04 server), both with netplan. The host is a dedicated machine ...
1
vote
0answers
4k views

Static IP config for Ubuntu Server 18.04 LTS w/ netplan

We are trying to get a new server running 18.04 LTS to connect to the internet, but no luck thus far. The router doesn't distribute DHCP, so we have a static IP assigned to the port the server is ...