Questions tagged [netplan]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

How to add blackhole route with NetPlan on Ubuntu 20+

I need advice on adding a blackhole route with a localhost interface managed by Netplan.io. My configuration that doesn't work: network: version: 2 ethernet: lo: match: ...
0
votes
1answer
29 views

Using ethtool with ubuntu 20.04

I am new to using Ubuntu so appologies if some of the information is in complete or missing. I have installed Ubuntu 20.04 on 2 systems which both have SPF ports, for some reason they are not auto ...
0
votes
1answer
734 views

netplan generate: `gateway4` has been deprecated, use default routes instead

When using netplan generate I kept on getting an error message: gateway4 has been deprecated, use default routes instead. For static IP address assignments in netplan, I've always used the structure:...
0
votes
0answers
98 views

netplan not configuring network

I'm trying to configure a static IP on a freshly installed, fleshly upgraded Ubuntu 20.04.03 system. This is my /etc/netplan/00-installer-config.yaml: network: ethernets: enp4s0: dhcp4: ...
0
votes
1answer
33 views

How to set static IP in Ubuntu Server 20.04.3 but get DNS servers IPs automatically?

I have Ubuntu Server installation with DHCP turned on and I get DNS servers IPs automatically from my ISP. If I want to set my IP as static I need to edit /etc/netplan/*.yaml, but without DHCP I ...
0
votes
0answers
116 views

connect: Network unreachable - Ubuntu 18.04

sorry for the possibly dumb question but I just can't find a solution specific to my issue. I'm a linux newbie trying to manage a VPS server and I'm in trouble. I just restarted my VPS and now my ...
1
vote
1answer
63 views

Setting up static IP for sensor ethernet connection, ubuntu 20.04

I need to set up an ethernet connection to a LIDAR, the steps to do so are: Without the sensor connected to PC sudo ip addr add 10.5.5.1/24 dev enp12s0 where enp12s0 is the name of my computers ...
0
votes
1answer
25 views

Undesrtanding netplan ip notation

I have some doubts about netplan configuration and couldn't find any information about that: 1.- I've seen that in order to indicate IP address you have to use the keyword address This happends when ...
1
vote
0answers
25 views

Netplan: give IPv6 priority over IPv4

On a dual-stack workstation (single interface, Ubuntu 18.04), I'd like IPv6 to be chosen first, before IPv4. I guess that means essentially to have domains being resolved first by DNS6, and then by ...
0
votes
0answers
17 views

Netplan, 2 nics on same subnet.. use 1 for specific traffic?

Is there any way to make this server direct all traffic to 10.12.0.0 thru interface ens224? Here's my current netplan config: network: version: 2 ethernets: ens192: dhcp4: false # ...
0
votes
0answers
72 views

Netplan does not clean old routes when changing route configuration

I have a netplan configuration file: network: version: 2 renderer: networkd ethernets: eth0: routes: - to: 192.168.202.0/24 via: 192.168.201.98 Note: addresses are ...
0
votes
0answers
89 views

Persistent routes on Ubuntu 20

I am trying to automate the addition of some static/persistent routes in Ubuntu 20 when setting up new hosts. The ip route command does not persist after reboot. The routes are based on a bond name ...
0
votes
1answer
90 views

Wireless network interface won't come up

The wireless connection of my device (OS Ubuntu 20.04) won't activate. This is the state before $ ip a sh dev wlp1s0 4: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue ...
0
votes
0answers
126 views

How can I bring down the interface in the netplan configuration?

I have an Ubuntu server 18.04 and simple netplan configuration (see below): --- network: ethernets: ens1: dhcp4: false addresses: - "192.168.99.1/24" ens2: ...
0
votes
0answers
71 views

Cant create working bridge using on Ubuntu in Hyper-V guest

Using Ubuntu 20 and a Hyper-V virtual machine I cannot create a working bridge - however the exact same commands work in VirtualBox. I am not a sysgod - so please excuse my explanation. I need to ...
0
votes
0answers
27 views

Prevent NetworkManager from enabling ethernet on boot Ubuntu 20.10

I have a server with a WiFi and Ethernet. On boot up, only the ethernet works and forwards packets correctly. the wifi, I can't even ping the gateway. If I then turn off the ethernet, the wifi ...
0
votes
1answer
720 views

Need help to configure netplan for two NICs with static IPs on separate networks

I've got a new server with a fresh Ubuntu 20.04 LTS install. I've got one interface connected to our main corporate network with a static IP address, and now need to connect a second interface to a ...
0
votes
1answer
64 views

Ubuntu Server: After Trying to Set Email Server Using Postfix, Ping 8.8.8.8 Only Gives Destination Host Unreachable

This morning the connection and all the things were working fine, until I following some online tutorial, installed Postfix and changed /etc/hostname and /etc/hosts. Now ping to the local router: 198....
0
votes
0answers
1k views

Ubuntu 18.04 netplan.io "unknown key" error

I have Ubuntu 20.04 and my netplan configuration in /etc/netplan/10-my-config.yaml looks like this: network: version: 2 renderer: NetworkManager ethernets: eth0: dhcp4: true ...
-1
votes
1answer
5k views

UBUNTU 20.04 - Netplan is no longer present

After running a PURGE on the system, NETPLAN is no longer present on the HD. So from terminal invoking the command netplan apply I get netplan: command not found. Naturally the network functionality ...
0
votes
0answers
993 views

How to get netplan to set the dns server in /etc/resolv.conf based on info coming from the dhcp server?

I'm setting up a 4 x RPi Cluster with the following simple network topology: All 4 RPi nodes have the latest Ubuntu Server LTS 20.04 OS. rpi1 is my primary/gateway node. I did the following on rpi1: ...
2
votes
1answer
5k views

Ubuntu 20.04.1 LTS Server doesn't connect to WiFi using `netplan`

I have a laptop (no Ethernet, WiFi only) with freshly installed Ubuntu Server 20.04.1 [x64]. Trying to use netplan to connect to the home WiFi, but it doesn't connect. What I'm doing: With ip addr ...
2
votes
0answers
85 views

Configuring DNS in netplan

Ubuntu is installed in the VM. To access a remote corporate repository, I need to configure DNS. At this point, if I use the PING command, I will get the following response: user@ubuntu:~/projects$ ...
2
votes
1answer
536 views

using netplan to create a gateway

I am trying to use netplan to set up a gateway. Here are some details of what I have set up: I'm running 20.04 I have 5 NICs (enp5s0, enp4s0f1, enp4s0f0, enp3s0f1, enp3s0f0) The enp4* and enp3* ...
0
votes
1answer
67 views

Setting static ip causes network hangs

I am running into a problem after setting static IP on my linux systems (Ubuntu and Raspbian). If i set static ip, i experience 5-10 second initial hangs when interacting with it by SSH or http after ...
3
votes
2answers
242 views

When setting netplan static ip, connection seems to sleep if left for a while

I am trying to set static local ip on ubuntu 20.04 server by disabling cloud-init, then set my 50-cloud-init.yaml This is on a Raspberry Pi 4 with wired connection. network: ethernets: ...
1
vote
0answers
42 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
2answers
414 views

How do you block network acceess to systemd?

How would one quarantine any systemd processes from ever using ANY network interface or resources at OS-level? Overview Minimalistically, I'd like to setup a Linux gateway. Simple NAT, forwarding ...
1
vote
0answers
166 views

Pass DHCP user class in netplan

Is it possible to pass a DHCP option 77 and/or DHCPv6 option 15 in netplan using the networkd backend. Currently networkd supports passing DHCP option 77 and I believe there is work on adding the ...
4
votes
0answers
1k views

How to integrate "iwconfig wlan0 power off" into netplan on Ubuntu 19.10?

I configured WLAN on commandline with this file: cat /etc/netplan/wireless.yaml network: version: 2 wifis: wlan0: dhcp4: yes dhcp6: no access-points: "yyy": ...
0
votes
2answers
3k views

Ubuntu 18.04 netplan apply breaks networking reboot fix it

The setup is the following: host1-ip iface: ens192: 10.100.0.11/16 host1-gateway: ens192: 10.100.0.1 host1-ip iface: ens224: 10.0.0.11/16 host1-gateway: ens224: 10.0.0.1 host2-ip iface: ens192: 10....
1
vote
1answer
1k views

unable to find netplan directory in Debian 10

I am trying to configure the networking using Netplan in Debian 10. I have installed the Netplan package with the following commands. sudo apt update sudo apt install snapd sudo snap install netplan -...
0
votes
1answer
542 views

Ubuntu won't reply on same interface

I have an Ubuntu 18.04 (i.e. NetworkManager / netplan / systemd-networkd) VM which was working nicely until I tried adding a second interface. I initially had problems with the DHCP still running ...
4
votes
0answers
3k views

Unable to successfully setup bridge interface with Netplan, in order to support guest OS with KVM

First of all, I would like to apologize for my bad English. I usually find an answer after a few hours, days or even weeks of research, but today, I feel quite lost and would appreciate some help. ...
4
votes
2answers
3k views

Multicast routing using netplan

Trying to setup multicast route to interface in Ubuntu 18.04.2 Netplan's syntax does not allow something like: routes: - to: 224.0.0.0/4 dev: eno1 this config does not work: addresses: - 192....
3
votes
0answers
4k views

Enabling DHCP for IPv6 in netplan with networkd doesn't seem to do anything

I'm currently configuring the network interfaces for a Ubuntu 18.04 server, using netplan with the networkd backend. My hosting provider provides me with an IPv4 and an IPv6 for this server, however ...
1
vote
0answers
246 views

Gateway failover using netplan

I'm having trouble setting up 2 IP address so that if one fails it will use the secondary IP address. I've setup netplan as shown in the picture. I can connect via ssh using both IP address, I test ...
1
vote
0answers
645 views

Netplan doesn't create default route

OVH cloud host allows an easy way to route multiple blocks of their IPs to virtual MACs on one interface. For example, eth0 has an address on the 40.30.20.0/24 network with a gateway of 40.30.20.254, ...
1
vote
4answers
8k views

Prevent netplan from creating default routes to 0.0.0.0/0

I have running an Ubuntu 18.04 with 2 ethernet NICs. On both NICs I'm using DHCP. How can I prevent netplan from creating a default route to 0.0.0.0/0 on both devices? I want one NIC routing to 0.0.0....
2
votes
1answer
4k views

Will netplan.io be used in Debian Buster?

Netplan.io is a relatively new network interface configuration tool. It came to my attention because it has become the "default" way to configure interfaces on Ubuntu. What about Debian itself? Are ...
5
votes
0answers
9k views

Bring interface up even if link is down (no carrier)

My system is a Dell PowerEdge T140, running Ubuntu 18.04.2. I have a service that depends on the host's primary IP address, and that service fails to start if that address is not configured on the ...
0
votes
1answer
474 views

How to set a static IP using netplan? (running Ubuntu Bionic server)

My problem is that no static IP is getting assigned to the built-in ethernet port. I have run netplan apply several times. I've also rebooted the PC and still no luck. I am sure the ethernet port ...
1
vote
1answer
3k views

Configuring netplan on ubuntu 18 properly

I am trying to configure the wifi and ethernet ports on a linux box in a non-standard way. I have never touched this kind of stuff before, so please excuse my naivety. I have basically just YOLO'd my ...
0
votes
1answer
2k views

Static IP and netplan stop working a couple days after fresh install 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 ...
4
votes
0answers
8k views

Multiple static IPs with netplan

on Amazon EC2 I want to set up multiple IPs on secondary Network Interface. whatever I do it sometimes fail to connect to secondary IPs, main word here is sometimes, thats why its very complicated to ...
3
votes
6answers
3k views

setting firewall-cmd --permanent is not sticking after reboot

I have two network interfaces: eth0, and p2p1. My default zone is set to public. I would like to permanently set p2p1 to be trusted. In order the achieve this I run: sudo firewall-cmd --permanent --...
1
vote
1answer
8k views

Ubuntu 18.04 netplan configuration for WPA-EAP

Background I'm using Ubuntu 18.04 server (on a laptop, for development) and am trying to get my wifi configured to work with an WPA-EAP network. To enable Wifi I followed the guide Wifi on Ubuntu 18 ...
2
votes
1answer
3k views

How to get those features in Netplan with Ubuntu?

So apparently Ubuntu 18.04 (or perhaps even one of the 17.x versions) introduced a new mechanism to configure the network interfaces called netplan.io or netplan for short. Now all of this seems ...
35
votes
2answers
28k views

How exactly are NetworkManager, networkd, netplan, ifupdown2, and iproute2 interacting?

I am learning about Linux networking on my Kubuntu 18.04 workstation, and I see there that both NetworkManager and networkd-dispatcher are running: oleg@eclectic:~$ sudo ps -ef | grep -i net root ...
1
vote
1answer
679 views

Virtual NICs in Ubuntu 18.04

We are a group of students completing a development project unit at the University of Sydney. We have had difficulty with linux routing, and would really appreciate being pointed in the right ...