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
0answers
51 views

How to set custom DNS servers and use DHCP on kubuntu 20.04 using netplan config?

Ok it is confusing so here is a clear version of what is going on. I am only able to set custom DNS servers using the /etc/netplan/01-network-manager-all.yaml if i use the configuration below with a ...
0
votes
0answers
14 views

Manage Wi-Fi AP using Netplan - Incorrect password

I tried to service wi-fi by my ubuntu server, with USB Wireless lan card. My wireless ap works with no password, but If I set password, then anything of my clients can't connect to my wi-fi even ...
1
vote
1answer
45 views

Netplan Static Address for a specific connection otherwise dhcp

I am new to Netplan Configuration so please if its a duplicate question, just point me to the right answer since I couldn't find something that matches my problem. So, I've got a Raspberry pi 4 and ...
0
votes
1answer
36 views

Can I use systemd-network without netplan and ifupdown?

I'm not sure I completely understood the whole relationships between ifupdown, systemd-networkd and netplan. I think netplan transforms its YAML configuration into a more verbose systemd-network ...
0
votes
0answers
12 views

Can't get networkd-dispatcher scripts working

I need to disable offloading on my Kubernetes host persistently due to various bugs. I followed the guide here: https://michael.mulqueen.me.uk/2018/08/disable-offloading-netplan-ubuntu/ but the script ...
0
votes
0answers
18 views

Ubuntu 18.04 netplan configuration for aws ec2 instance

In Ubuntu 16.06, I was adding another interface with following configuration auto ens4 iface ens4 inet dhcp sudo ip route add default via 10.10.8.1 dev ens4 table ens4_rt sudo ip rule add from 10.10.8....
0
votes
3answers
1k views

Enable both NAT and Host Only on Ubuntu 18.04

I am using Ubuntu 18 minimal image to create an Ubuntu server with VirtualBox. I created a host only network and added adapter to vm along with NAT adapter (already configured). The original ...
1
vote
2answers
40 views

Invalid YAML: mapping values are not allowed in this context: network:

I'm trying to configure a static IP and I keep getting this error when I try and execute the changes: Invalid YAML: mapping values are not allowed in this context: network: ^ I've edited my /...
1
vote
1answer
72 views

Setting up local static IP with netplan causes network to sleep

I am currently setting up some rpi4 with ubuntu server 20.04, I have setup their static IPs using netplan(Wired LAN) and Somehow they end up sleeping in both SSH and TCP, if left for more than a ...
0
votes
1answer
46 views

Make route command persistent after reboot

Quick question: I want to make this command persistent after reboot: route add -net 10.0.8.0 netmask 255.255.255.0 gw 10.3.121.244 I tried playing with the netplan yaml files with no success, my ...
2
votes
4answers
2k views

Trouble Overriding DNS Servers via Netplan Config

I'm trying to override the nameserver settings in the netplan yaml configuration, but it doesn't seem to be working. Here's the /etc/netplan/01-netcfg.yaml file: network: version: 2 renderer: ...
1
vote
2answers
10k 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
24 views

Dual NIC silently rejecting all incoming traffic from one interface

In my server, I have two ethernet cards: enp0s17, local IP 192.168.0.7, router's public address x.x.x.x, netmask 255.255.255.255 enp0s18, local IP 172.16.0.7, router's public address y.y.y.y, netmask ...
0
votes
0answers
49 views

USB WiFi adapter stops working after running netplan apply on Ubuntu Server 20.04

I would like to set up an active-backup bond for ethernet and WiFi on a freshly installed 20.04 server. I have installed wpasupplicant and wireless-tools with apt as indicated here. When I boot the ...
0
votes
1answer
1k views

How to disable WiFi interface with netplan?

My netplan config at /etc/netplan/wireless.yaml seems to be working well for my WiFi-to-USB adapter, but I seem to still get the native interface to come up. I would prefer to keep that down. Right ...
0
votes
1answer
34 views

how to enable netplan to auto-adjust to different network interface names in cloned instances

I'm running Ubuntu 18.04 64-bit server. I do a clean install, set up all of my custom software, and all is good. I use clonezilla to create a master image, which I later clone. I deal with the ...
0
votes
1answer
30 views

How to configure NetPlan as a wired 802.1X Authenticator?

I would like configure a wired Ethernet port to support 802.1X authentication. hostapd supports 802.1X authentication. How do I use hostapd with NetPlan? NetPlan supports the auth section for ...
0
votes
0answers
12 views

use of TPM to generate and store a private key then to use this key and the associate certificate in a netplan configuration

I use an encrypted private key, the corresponding certificate, etc. to define the configuration of netplan with eap-tls authentication. Everything is fine so far but I have to protect the private key ...
13
votes
10answers
35k 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 ...
0
votes
0answers
41 views

Ubuntu 18 netplan Argument list too long

I try to add 8k IPs to my network interface with netplan, after adding all IPs to yaml netplan config and apply changes, I get the following error: /run/systemd/network/10-netplan-enp5s0f0.network:...
0
votes
0answers
120 views

netplan will not recognise nameserver on ubuntu 20.04

What is the point of nameservers in netplan if it is simply ignored and replaced by a file, that is not allowed to be edited by hand? Here is my configuration, this is a default install, I have never ...
1
vote
2answers
459 views

Ubuntu Server 20.04 - Netplan configuration for dynamic IPv4 and static IPv6

TL;DR Does anyone have a working netplan configuration that sets a dynamic IPv4 and a static IPv6 under Ubuntu Server 20.04? What works My provider (OVH) gave me a server with this configuration in /...
1
vote
1answer
50 views

Network speed for a 1/10 Gigabit card

I have a computer which has a "NetXtreme II BCM57800 1/10 Gigabit Ethernet" network card which I am trying to connect at 10 Gigabits/s but it is connecting at 1 Gigabits/s. It is running ...
2
votes
2answers
3k views

netplan bridge: no connection to/from virtual machine

I'd like to setup a brigde 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 ...
0
votes
0answers
36 views

How to setup Ubuntu 18.04 to use two interfaces to access the internet?

I want to setup an Ubuntu 18.04 with two interfaces connected to the internet. The configuration is as: 4G 4G / ...
2
votes
1answer
193 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 ...
0
votes
1answer
84 views

Netplan on Ubuntu 18.04 with multiple interfaces connected to internet

I am using netplan to configure the interfaces on Ubuntu 18.04, but there are a few issues. First, the metric does not seem to be working as it is set to 0. Second, once I use networkd the whole ...
3
votes
1answer
3k views

netplan error, unknown key nameservers

I have an error, but not a spelling error. Here is my netplan config: network: ethernets: ens32: addresses: [172.16.120.74/16] nameservers: addresses: [127.0.0.53, 172.16.1....
3
votes
2answers
5k 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
26 views

Core 18: NetworkManager definitions do not support name globbbing

I'm trying to install core18 with kernel 5.4. Everything boots fine, but when I get into the initial configuration screen and try to set up my networking, I am presented with this error: Network ...
0
votes
1answer
40 views

Connecting to personal wifi on Ubuntu Server 20.04

I have followed a number of tutorials recommending different things with netplan for connecting to the internet. None of them have worked. Should i be trying to connect with something else? or should ...
0
votes
0answers
35 views

Multipoint GRE on ubuntu with netplan

I'm reading the netplan documentation and it looks like it does not support multipoint GRE (for NHRP via eg. OpenNHRP). It's the gap in the documentation or did netplan do not intentionally support ...
0
votes
0answers
92 views

Set multiple wifi access points in Ubuntu 20.04

I am trying to configure the network in Ubuntu 20.04. I would like to set up several wifi access points under the same interface. I am using the following configuration right now: # This file is ...
0
votes
1answer
30 views

Why is an interface now picking up a dhcp address after updating from 18.04 to 20.04?

I run ubuntu as a server and I have set a static IP address using netplan. Since I have updated from 18.04 to 20.04, eth0 has now started picking up a DHCP allocated IP address in addition to the ...
0
votes
0answers
22 views

Add sub interface in bond1 and add route in Ubuntu 18.04 using netplan

Is it possible to define bond and add sub interface in it, and also add route with device bond1 in Ubuntu 18.04 using netplan? Please share a configuration example if possible
1
vote
0answers
36 views

Netplan configurations stop working after some time

I have this Ubuntu Server 18.04 LTS running and recently I changed my router subnet to 10.10.1.X. Also, I set DHCP to assign from 10.10.1.105 - 10.10.1.253 to other devices, since I want 100,101,102 ...
0
votes
2answers
3k 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: ...
1
vote
1answer
22 views

create an alias on network card using netplan on Ubuntu server

how to configure two ip (192.168.140.10/24 - 192.168.57.192/25) on same network card on Ubuntu server 18.4.1.using netplan
0
votes
1answer
77 views

different gateway subnet on ubuntu makes network unreachable

Edit: The VM was moved from one hyper-v to another. In the first hyper-v it had a different IP, Mask and Gateway, and it worked. Then I moved it to the new hyper-v and changed the network details. I ...
0
votes
1answer
40 views

Ubuntu 18.04 how to add a static route to a single host?

I'm migrating from 16.04 where I had several NICs configured in /etc/network/interfaces like this: auto enp0s8 iface enp0s8 inet static address 192.168.0.5 netmask 255.255.255.0 up route add -host ...
1
vote
1answer
2k views

fixed IP address on LAN under Ubuntu 18.04 (netplan)

I've just installed Ubuntu for the first time and I want to set up a fixed IP address for my computer as a first step towards connecting from outside via ssh. I can find no menu in my router to ...
8
votes
2answers
15k 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?
0
votes
0answers
26 views

Automating an SSH VPN Connection on 18.04 with netplan

I mostly followed the instructions at https://help.ubuntu.com/community/SSH_VPN to set up a VPN Tunnel over OpenSSH. I got hung up at the last step. It says to use ifup and /etc/network/interfaces. ...
1
vote
3answers
345 views

DNS issues after upgrading to 20.04

After upgrading to 20.04, both my wired and wireless networking lost access to the internet. I confirmed my drivers were working when I was able to resolve a ping to the Google nameserver 8.8.8.8. Now,...
6
votes
2answers
14k views

netplan apply does not change the IP address

ok, my file is located at /etc/netplan/50-cloud-init.yaml I changed the IP address as a static IP address as following: network: version: 2 renderer: netwokrd ethernets: dhcp4: no ...
0
votes
1answer
641 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 ...
0
votes
1answer
24 views

How to configure netns in xx.yaml?

Running on Ubuntu 18.04. Here is an example via command-line: sudo ip netns add testBB sudo ip netns list sudo ip netns exec testBB ip link set vnet4 netns testBB sudo ip netns exec testBB ip link ...
2
votes
1answer
95 views

IPv6 EUI-64, how to activate privacy extension on Ubuntu Server 20.04

In my home network I have dual IPv4 + IPv6 stack. IPv4 runs DHCP whereas IPv6 depends on SLAAC. On my Ubuntu Server 20.04 the /etc/netplan/00-installer-config.yaml file looks like this: network: ...
0
votes
1answer
156 views

netplan gre tunnel+quagga

After installing new router with ubuntu 18.04 on it i'm got a problem with working ospf via gre tunnel to my older routers. All configured simular, but from new router i got ospf state Init/DROther. ...
6
votes
5answers
23k 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 ...

1
2 3 4 5
11