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.

1
vote
1answer
404 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 ...
5
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/...
17
votes
5answers
30k 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 ...
2
votes
1answer
3k views

Am I running NetworkManager or networkd?

I am learning to use netplan. When writing a YAML configuration file I need to know which renderer to use, either NetworkManager or networkd. How do I know if I am running NetworkManager or networkd?
3
votes
1answer
3k views

Does netplan support DHCP and static addresses on one interface?

I have a couple Ubuntu Server 16 installations where the NIC gets a static address and a dhcp address using the interface:X syntax in the /etc/network/interfaces file. auto eno1 iface eno1 inet ...
0
votes
0answers
157 views

Second IP via DHCP. Why?

I have a secondary IP on my ens160 interface and I dont know why :) System is Ubuntu 17.10. Any hints where to dig here? 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/...
0
votes
1answer
238 views

netplan - add a mobile hotspot connect

I am using the following netplan config to connect to my home wifi: network: version: 2 renderer: networkd wifis: wlp3s0: dhcp4: yes dhcp6: no access-points: "HOME-...
1
vote
1answer
6k views

multiple NICs under ubuntu 18.04

How to translate what we had to do to have 2 independent stream of traffic on 2 or more NIC interfaces with the new netplan.io + systemd-networkd? auto ens2 iface ens2 inet static address 192.168.5....
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: ...
1
vote
1answer
547 views

fwmark routing policy with netplan

I'm migrating a legacy Debian setup to a new Ubuntu setup. I have previously set, in /etc/network/interfaces: post-up /sbin/ip rule add fwmark 1 table table.tunnel pre-down /sbin/ip rule del fwmark 1 ...
2
votes
1answer
3k views

/etc/netplan: No such file or directory

Upgraded from 16.04 to 18.04 today and want to start using netplan, but it doesn't appear to be installed? I tried to install it with apt install netplan but none of the files/directories listed on ...
1
vote
0answers
3k views

netplan bridge for one static interface not working

I have a static ip address for interface eno1 which should become a bridge for kvm/qemu. My netplan configuration (Ubuntu 18.04) for the static ip looks like this and is working: network: version: ...
1
vote
0answers
251 views

Network not starting when logging into 17.10

I am having to run the following command everytime I login to my Ubuntu sudo netplan apply I am unsure what I have done to make it only start when I run this command and I am wondering how I go ...
1
vote
1answer
775 views

How to use Netplan in Ubuntu 17.10 to add IP addresses for Wireless iface

Being solely wifi connected, I successfully used the following 'etc/network/ifup.d' script in 16.04 to set up extra local IP addresses when my wireless interface came up. In 17.10 I'm being told to ...
2
votes
1answer
814 views

How do you multihome with netplan - bind multiple IPs to one network adapter?

How do you multihome with netplan - bind multiple IPs to one network adapter? I see several people have taken two different approaches to solve the problem - One where both IPs are defined under the ...
3
votes
1answer
5k views

NetPlan Static IP address not acceptiing

Trying to setup Static IP and it will not work Ip address 192.168.100.40 pre 17.10 and netplan config as follows auto ens160 iface ens160 inet static address 192.168.100.45 netmask 255.255.252.0 ...
9
votes
7answers
9k views

Netplan does not apply at startup

I installed Ubuntu 17.10 with latest updates on a vmware virtual machine. Netplan does not configure my 2 ethernets. Here is my /etc/netplan/01-netcfg.yaml network: version: 2 renderer: networkd ...
3
votes
2answers
2k views

Is there a way to try out a netplan configuration without altering the system?

I work on remote servers, and its a painfull process to go into Rescue Mode everytime I screw something up when it comes to network configuraitons. Are there a way to implement something like: ...
4
votes
2answers
7k views

Add second IP-address to interface in 17.10

How do I add a second IP-address in Ubuntu 17.10 like the old days where you could add eth0:1, eth0:2 etc. I've tried but lots of commands have been deprecated like ifup, ifdown etc. and the network ...
1
vote
1answer
4k views

Ubuntu 17.10 renew DHCP IP [duplicate]

We've just installed an Ubuntu 17.10 server, and during the installation, it was assigned the IP address 192.168.50.84. We've now reserved the IP address 192.168.50.107 on the DHCP server. The ...
2
votes
2answers
4k views

Ubuntu 17.10 adding multiple static routes for NIC with Netplan

I'm trying to add two static routes to my NIC. I can add one OK, but if I try to add a second, the entire network connection stops working until I bring down the 2nd card. This is my current config ...
2
votes
2answers
12k views

Netplan error, error on nameserver

I'm trying to setup a Ubuntu server and running in to a problem setting up a static IP. My OS is as below: Distributor ID: Ubuntu Description: Ubuntu 17.10 Release: 17.10 Codename: ...
0
votes
1answer
1k views

Defining Static IP addresses for Multiple NIC adapters

Just would like to understand how you define static IP addresses for Ubuntu 17.10 server with multiple NIC adapters (i.e.eth0 and eth1) using the /etc/netplan directory. (basically a continuance from ...
5
votes
0answers
2k 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
5k views

How can I configure default route metric with dhcp and netplan?

My problem is quite similar to this question. My vagrant machine sets default route metric incorrectly. The following is netplan configuration. network: version: 2 ethernets: enp0s3: ...
0
votes
2answers
380 views

Share network with second ethernet port ubuntu 17.10

I want to share network from enp1s9 with second interface enp1s10. The same function in windows bridge adapter. I was trying use bridge and bonds, but without succes. Becouse of ubuntu 17.10 I am ...
0
votes
1answer
245 views

Netplan: How can I assign the entire subnet to the NIC, exept for the gateway and broadcast IP

My /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: ...
12
votes
1answer
7k views

Why did Ubuntu change the network configuration

As we all know, to configure the network, we can edit /etc/network/interfaces and execute /etc/init.d/networking restart. Today I try to use Ubuntu 17.10 and I've found the network configuration had ...
1
vote
1answer
389 views

Ubuntu Desktop 17.10 will not accept static IP with a wifi dongle

After looking at several threads like this one or this one. Here is my /etc/netplan/01-network-manager-all.yaml content: network: version: 2 renderer: NetworkManager ethernets: ...
1
vote
0answers
116 views

Unable to authenticate on my ubuntu server wireless router

I have ubuntu 17.10 server edition installed to act as a router. Everything works just fine. The only problem I'm having is with setting up the wireless part of the router. I can see the AP on my ...
2
votes
1answer
898 views

Netplan-configured LXD host doesn't restore network config on reboot

I have 17.10 server with LXD installed via snap (2 containers). I've configured host to have static IP and let containers be accessible from LAN. My 01-netcfg.yaml in /etc/netplan: network: ...
3
votes
1answer
4k views

Configuration of a bridge with a static IP with the netplan to be used with linux container

Summary: how to configure the netplan on a host machine to create a bridge (with a static IP address) that would be used on guest virtual machine (shall be accessible from a local lan). I am using ...
3
votes
1answer
552 views

How can I add a route that is “on the link”, directly connected to the interface even if the IPs are not the same?

We're working on an Ubuntu 17.10 linux and we would have to use Netplan for network configuration. We have a /run/systemd/network/*.network file which fit what we need, but we want to "translate" it ...
1
vote
1answer
8k views

netplan with multiple vlans on single interface - help needed

I have a single virtual interface and 802.1q enabled. When I have a single vlan for my interface in netplan it works, but when I add a second, additional vlan only the last vlan in the file works, ...
7
votes
3answers
5k views

Virtual interface in netplan

In the old /etc/network/interfaces I could define a virtual interface: auto enp7s0f0 iface enp7s0f0 inet static address aaa.aaa.aaa.aaa netmask 255.255.255.0 gateway aaa.aaa.aaa.1 auto ...
9
votes
2answers
1k views

ipv6 tunnel in Ubuntu 17.10?

I used to be able to do the configuration below with no issues in /etc/network/interfaces but now it's not picked up anymore. How do I configure a ipv6 tunnel now? I see see the new netplan software ...
4
votes
1answer
997 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 ...
0
votes
1answer
300 views

phone connects to wifi hotspot (Ubuntu 17.10) but I can't browse

I am getting an error when initiating the Wi-Fi hotspot that reads: Turn On Wi-Fi Hotspot? It is not possible to access the internet through your wireless while the hotspot is active. Wi-Fi hotspots ...
3
votes
0answers
6k views

Disable IPv6 on Ubuntu 17.10 (Netplan) [duplicate]

I'm trying to disable IPv6 on all of the adapters on an Ubuntu 17.10 machine. I used to be able to do so (prior Ubuntu versions) by editing /etc/sysctl.d/99-sysctl.conf to add disable parameters as ...
1
vote
2answers
913 views

How do I use netplan to configure PPPoE?

I want to add lines to a working 01-netcfg-yaml file to automatically connect an interface to ppp using a script created by pppoeconf. But I can't find any guides or examples. I would much ...
1
vote
2answers
5k views

Routes in Netplan… using routes: from the example says unknown key

I have two NIC both connected to private networks one that goes to a dead end network and the other that can get to the internet through NAT. When I bring up both the defaut route gets switched to ...
4
votes
2answers
1k views

How to get netplan on 17.10 server to work with a Windows Server DHCP server using MAC address reservations?

To do this on recent Fedora and Arch, it is necessary to set dhcp-client-identifier = hardware to get DHCP to work. I suspect the same is true on 17.10. However, Artful uses netplan and systemd-...
9
votes
3answers
4k views

netplan configuration on Ubuntu 17.04 virtual machine

I'm running VirtualBox with 2 network adapters: standard NAT (enp0s3) and a Host-only Adapter (enp0s8). I use the NAT to access the internet and the Host-only Adapter to SSH in from my local machine. ...
2
votes
1answer
942 views

How can I control the configuration that netplan generates?

Say I want to run a certain command after netplan has done its magic and started the network. In my case, I need to run a command to add a special "onlink" route, which netplan doesn't support yet. ...
0
votes
1answer
2k views

netplan or /etc/network/interfaces?

Is wireless networking better handled through /etc/network/interfaces as so: thufir@doge:~$ thufir@doge:~$ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo ...
4
votes
1answer
3k views

How do I use a static IP in Ubuntu 17.10 and newer?

I changed config from dhcp to static (192.168.0.17), but still getting a dhcp assigned (192.168.0.141) IP. I don't know where else to check... any idea? ifconfig ens33: flags=4163<UP,BROADCAST,...
2
votes
1answer
3k views

Using networkd, how to see DNS Server

So the Ubuntu server is configured with netplan and the renderer is: networkd. How does one see the active DNS Server ? i.e. there is no NetworkManager.