Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
122 views

Route traffic between two interfaces using NetPlan

I have an Ubuntu Laptop that has an ethernet interface and a wireless interface. The Ethernet interface is connected to the corporate network while the wireless network is open. All the machines/...
0
votes
1answer
469 views

What is my option if I deleted my netplan yaml file?

I have deleted the yaml config file. Now, what could I do to restore back? the yaml file resides in cat /etc/netplan/
2
votes
1answer
2k views

Convert /etc/network/interfaces to netplan

I'm following this tutorial for making an Ubuntu active directory domain controller with Samba. The problem I have run into, is that he is using Ubuntu Server 13.10, and I am using the latest, 18....
1
vote
1answer
2k views

Ubuntu 18.04: How to create a persistent dummy network interface

I am trying to create a dummy network interface on a Ubuntu 18.04 server. Here is how I would do it on my previous Ubuntu 16.04 servers: In /etc/network/interfaces.d/dummy.cfg, write: auto dummy0 ...
0
votes
1answer
2k views

netplan - expected scalar on ip-address

Every time, when I entered my ip-address of my server, the message "Scalar expected" appears during applying my netplan config. My server has a - static ipv4 address: x.x.126.104 - gateway: x.x....
1
vote
0answers
1k 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 ...
0
votes
1answer
91 views

Network connectivity issue with virtualbox and static ip addressing

I wanted to install and configure openstack to learn it, so i installed two ubuntu servers as virtualbox virtual machines (on my arch linux host) and then i did the configuration based on the ...
1
vote
1answer
795 views

convert ip route add to netplan

I'm following an answer I found on Serverfault located here https://serverfault.com/a/487911/141509 I created the following routing table in rt_table 10 wlx74da388c32c7 Below is my full rt_table # ...
0
votes
2answers
215 views

How can I disable LLMNR in Netplan?

I found How can I disable LLMNR in systemd-resolved? useful for demonstrating how to disable LLMNR in systemd-networkd. However, ubuntu 18.04 uses netplan to configure the network rather than systemd-...
0
votes
2answers
233 views

Netplan ignoring .network file

I have Ubuntu 18.04 (downgraded to server) installed and can't get internet working on my Ethernet adapter. Sorry for no files content pasted but I'm writing from different PC. I'm attaching ...
4
votes
1answer
455 views

netplan gateway6 seems to have no effect

I'm trying to configure static IPv6 with netplan on a cloud server (public cloud from OVH) running Ubuntu 18.04 I have created a /etc/netplan/66-ipv6.yaml yaml file in addition to the existing /etc/...
0
votes
2answers
3k views

Why is Netplan/Networkd not bringing up a static ethernet interface?

I have a machine running Ubuntu Server 18.04. The network is configured using Netplan, so I have this config in /etc/netplan/01-netcfg.yaml: network: version: 2 renderer: networkd ethernets: ...
1
vote
0answers
3k 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 ...
0
votes
0answers
396 views

how to set ip address use netplan on ubuntu 18.04 while more than 24bit?

how to set ip address use netplan on ubuntu 18.04 while more than 24bit? ip:10.10.8.8 netmask :255.255.240.0 gateway:10.10.0.1 my conf like this: network: version: 2 renderer: networkd ...
0
votes
0answers
116 views

With netplan, how do I get DHCP addr from router in VM?

My router runs DDWRT, and manages a mix of static and dynamic addresses. A VirtualBox VM is configured to use one of the MAC addresses I've bound. However, with a default netplan, the VM winds up ...
0
votes
1answer
2k views

Ubuntu 18.04 Server Static IP issues

I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1 has been disabled. After re-enabling ...
0
votes
2answers
3k views

Ubuntu Server Netplan for Wifi and Ethernet

I'm new to Ubuntu server and want set up my netplan so that I can use two different IP addresses for two separate interfaces (Wifi and Ethernet). So far, Ethernet works fine, but I can't get the wifi ...
3
votes
2answers
6k views

How to set default route with netplan, Ubuntu 18.04 server, 2 NIC

I have two NIC, both is controled over DHCP. One have public IP, second private. Both interfaces have static IP reserved in DHCP and both interfaces get right IP, but somethimes when reboot server I ...
2
votes
0answers
274 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 ...
2
votes
2answers
1k 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/...
0
votes
2answers
3k views

Netplan complains “unknown key bridges”

I'm trying to set up a network bridge for KVM but I keep getting a the error Error in network definition //etc/netplan/50-cloud-init.yaml line 5 column 0: unknown key bridges. The funny thing is, ...
0
votes
1answer
582 views

netplan during boot

From all that I have been able to find so far, I am quite puzzled why anyone would ever want to use netplan on a serious machine such as a server when you want the network up during the boot process. ...
0
votes
1answer
726 views

How to configure IPVS loopback address with netplan in Ubuntu 18.04?

Previously, I configured IPVS loopback addresses in /etc/network/interfaceslike this: auto lo:0 iface lo:0 inet static address 12.34.56.78 netmask 255.255.255.255 pre-up sysctl -q -p On 18.04, ...
0
votes
0answers
317 views

Share Internet to Ethernet network from wireless connections with netplan

A computer 1 (on Ubuntu server 18.04) is connected through wireless to an access point and through Ethernet to a switch. A computer 2 (resp. 3) is connected to 1 through the switch (resp. the wireless ...
1
vote
1answer
2k 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 ...
0
votes
1answer
66 views

netcfg.yaml question

hello I just upgraded to ubuntu 18 and looking for help on converting this to work with netplan. auto ens192 iface ens192 inet static address 10.0.0.2 netmask 255.255.255.0 up route add -...
0
votes
1answer
1k views

Ubuntu 17.10 - OpenVPN TAP - Help

I am desperate at this point. I have been trying to configure a bridge networking on Ubuntu 17.10 and it has been hell. I can’t find any documents online to assist with install. All of the ones I have ...
6
votes
2answers
1k views

What is the most authoritative file/process for managing IP addresses on an 18.04 server?

The 18.04 server installation process creates /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg, which, in turn, seems to generate /etc/netplan/50-cloud-init.yaml. I can't seem to find exactly how 50-...
2
votes
1answer
1k views

Ubuntu Server 18.04 waiting for Network at startup although the network is ok

I have fresh installation of Ubuntu Server 18.04. Until it is all set up and tested, I want it to be connected to both wired and wifi network. My /etc/netplan directory contains two files: 01-netcfg....
2
votes
2answers
4k views

netplan: nameservers in netplan yaml. What effect?

What is the effect of the nameservers/addresses field in the yaml configuration file? Any application I've tried uses the /etc/resolv.conf nameservers. This happens even with resolvconf stopped. ...
1
vote
1answer
544 views

Server 18.04: netplan and link-local addressing

I have begun experimenting with Ubuntu Server 18.04 and I ran into a problem with configuring the network. I have a PC with two network ports and one of those two ports has to get an IPv4 link-local ...
2
votes
0answers
494 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
1answer
5k views

How to enable netplan on ubuntu server upgraded from 16.04 to 18.04

I recently upgraded my 16.04 server system to 18.04, and then tried to use netplan to set up networking. Unfortunately, now my network settings are broken and I don't know which files belong to which ...
1
vote
1answer
837 views

How to get Asus XG-C100C 10G ethernet card working on Ubuntu 18.04

Is there anything you need to do to get this network card working in 18.04? It was working fine in 16.04 with the “atlantic” driver built from sources provided by Asus. After upgrading to 18.04, I can ...
0
votes
2answers
355 views

systemd resolve doesn't respond to queries

I'm getting dns failures on some of the servers with Ubuntu Server 17.10 or 18.01. I can't resolve addresses unless I go direct to the nameservers (ie with dig @1.2.3.4 ...) It can't resolve the ...
6
votes
1answer
705 views

Reproducing a set of ip commands in netplan

I recently upgraded to ubuntu 18.04 from 16.04 and am trying to figure out how to get my ip route and ip rule commands that I used to put in /etc/network/interfaces working under netplan. These are ...
2
votes
1answer
3k views

Static IP with NetPlan

I have a dev server with a Comcast static ip that has worked wonderfully for 10 years...went to upgrade to Ubuntu 18.04 and whats this NetPlan biznezz and why will it not accept my subnet? Followed ...
1
vote
1answer
4k views

Configure bonded 802.3ad network using netplan on Ubuntu 18.04

I am running into some issues configuring netplan on Ubuntu 18.04 server to bond my four hardware ethernet ports named eno1, eno2, eno3, eno4 using the 802.3ad protocol. I've consulted the netplan man ...
5
votes
1answer
567 views

/etc/network/interfaces and ifup/ifdown still present. Why?

netplan is now the default network configurator on 18.04 But on a freshly installed 18.04 system, I am still finding /etc/network stuff with interfaces file and other directories. the ifup/ifdown ...
1
vote
2answers
5k views

Ubuntu 18.04 Network card with two IP addresses

I would like to learn how to setup my network card with two IP addresses I tried as bellow, but now network: version: 2 renderer: NetworkManager ethernets: enp0s3: dhcp4: no ...
1
vote
1answer
318 views

Configure an interface with no IP

I need to configure an interface so that it has no IP on 18.04 with Netplan. Right now with dhcp4 set as false it's forcing the interface into a down state. How can I do this without changing back ...
2
votes
1answer
968 views

Detecting whether netplan is managing network config (shell)

I would like to figure out in a shell script in an LXD container, whether the container is being managed by Netplan. This can be a bit of an unknown as I have a mix of 16.04 systems 18.04 systems and ...
7
votes
1answer
5k views

How can I create a bond interface in Ubuntu 18.04?

I'm trying to reinstall an Ubuntu server to 18.04. I discovered that 18.04 uses Netplan, and I'm having trouble creating a bond interface using this. Updated configuration: ############# BOND - ...
1
vote
2answers
833 views

How to setup netplan with additional loopback addresses but mainly use NetworkManager?

I have recently installed Kubuntu 18.04 which uses netplan instead of the old networking subsystems. In the past I have set up a few extra loopback addresses for a variety of reasons using /etc/...
0
votes
1answer
395 views

permanently set txqueuelen in 18.04

In 16.04, I would change the txqueuelen on a network adapter with: ifconfig eth0 txqueuelen 10000 To make it permanent, I'd put that command into /etc/rc.local. What's the preferred method for this ...
0
votes
0answers
2k views

Ubuntu 18.04 using Netplan with dhcp and static DNS settings seems totally broken

In Ubuntu 18.04 configured to use DHCP on a wired connection, there does not seem to be a setting to have it use static DNS settings. Netplan seems to have no setting equivalent to "ipv4.ignore-auto-...
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 ...
4
votes
1answer
2k views

How to execute post-up scripts with netplan

My nic crashes in high bandwidth scenarios unless TSO offloading is disabled. It is a I217-LM (e1000e driver). I used to do this in interfaces: auto eno1 iface eno1 inet dhcp post-up /sbin/ethtool -...
5
votes
1answer
5k views

How to set up IPv6 with netplan on Ubuntu 18.04?

I purchased a dedicated server installed with Ubuntu 18.04 which was given an IPv6 Block. I used the guide How to set up IPv6 on Ubuntu 16.04 before. Since Ubuntu 18.04 uses netplan instead of /etc/...
16
votes
5answers
29k views

Ubuntu 18.04: switch back to /etc/network/interfaces

Starting sometime around Ubuntu 18.04, the Ubuntu devs stopped using the classic /etc/init.d/networking and /etc/network/interfaces method of configuring the network and switched to some thing called ...