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

Netplan DNS disaster

I'm struggling to get netplan to work. (I thought I still wanted resolv.conf this does fix DNS but gets re-written on reboot.) Everything appears to be correct but I can't ping. $ sudo netplan --debug ...
user avatar
  • 1,623
1 vote
2 answers
333 views

Netplan and Ipsec - tell netplan to leave interface alone?

I'm trying to use Strongswan to create an Ipsec tunnel on a server with Netplan. Netplan has currently no configuration for the tunnel1 and tunnel2 interfaces that Ipsec brings up when the tunnels are ...
user avatar
0 votes
0 answers
212 views

Ubuntu server No internet connection

Help me please. 3-rd day trying. After installing ubuntu server there is no internet connection. ipconfig not installed and no possibility to install it because of internet connection So. there is 3 ...
user avatar
0 votes
1 answer
498 views

Netplan error when trying a configuration

I am running Ubuntu server 20.04.3 LTS on a remote Raspberry Pi 4. It is connected through WiFi to a remote router (IP 192.168.1.1), and I had configured networking with netplan. However after some ...
user avatar
  • 179
0 votes
0 answers
86 views

Network interface binding only working for root user

I have a computer running Ubuntu Server 20.04.3 (using netplan for networking), and I am running into an issue where programs that support binding to a network interface continue to use the default ...
user avatar
1 vote
1 answer
3k views

Bridge two interfaces with netplan

I have two physical interfaces in my device: eth0 and eth1 I want to use eth0 to communicate with a raspberry directly connected via ethernet. The raspberry's static IP is 192.168.1.201. The eth1 ...
user avatar
1 vote
0 answers
477 views

Ubuntu 20.04 Server remove local gateway from DNS Server

Here is my setup : network: version: 2 renderer: NetworkManager #renderer: networkd ethernets: enp2s0: dhcp4: yes addresses: [] nameservers: addresses: [1.1.1.1, 1.0.0.1] ...
user avatar
  • 11
-1 votes
1 answer
92 views

How to configure .yaml wifi ap mode for minecraft server?

I setup 21.04 arm64 server and installed minecraft bedrock edition 1.17.11.1 server. It's on a pi4/8. I can access wifi with the 50-cloud-init.yaml. I installed all updates and have the server ...
user avatar
  • 1
0 votes
0 answers
2k views

Ubuntu 20.04 upgrades - DNS name resolution fails on internal network

My company distributes software to clients on Ubuntu VMs. Recently we've been updating all client VMs from Ubuntu 16/18 to Ubuntu 20.04. We've been having an issue where DNS name resolution isn't ...
user avatar
0 votes
0 answers
760 views

Internal network with Netplan in Ubuntu 21.04

I'm trying to implement a simple internal network (client - router - server) in Ubuntu 21.04 on VirtualBox. I'm new to Netplan and I have the configuration for Ubuntu previous releases (16.04) with ...
user avatar
  • 1
1 vote
1 answer
189 views

Create network alias in Ubuntu 20.04

I have a local application that will try to connect to MySQL on 172.1.0.1 when it's on production but I want to be able to test it locally. At this time, changing the source code is not an option, so ...
user avatar
0 votes
1 answer
252 views

Netplan config with Gateway outside subnet

I'm having trouble with some routing. I cannot get to 192.168.1.1 Below is the config. I have tried with onlink and without. Not sure what onlink does really. There are a few switches this machine ...
user avatar
  • 23
0 votes
0 answers
31 views

Hot to use a range of IPs on my server?

I need to have access to all IPs of an /26 block assigned to my Ubuntu 20.4 server. Already tried setting the block with netplan, but I only have access to the first IP in it. I've tried with ip too, ...
user avatar
0 votes
2 answers
589 views

How to properly configure source routing on Ubuntu 18.04?

I'm trying to configure a new VLAN/Subnet on my Ubuntu 18.04 servers. I'm trying to follow the example here: https://netplan.io/examples/#configuring-source-routing But when I follow that example, I ...
user avatar
  • 3
1 vote
1 answer
210 views

Netplan does nothing

I have this config network: ethernets: eno1: dhcp4: no addresses: [192.168.0.103/24] gateway4: 192.168.0.1 nameservers: addresses: [8.8.8.8,8.8.4.4] version: ...
user avatar
  • 121
0 votes
0 answers
145 views

Use both wifi and ethernet with internet connection

I'm looking for help to configure network on ubuntu core, I changed the netplan config and I manage to connect to both wifi and ethernet at the same time but there's an internet connection only on ...
user avatar
0 votes
1 answer
2k views

Ubuntu 20.04 Server: 2 networks, 2 gateways and static routes

I need to add a second network with a second gateway to my ubnutu 20.04 server (with netplan). The setting looks like this: Ubuntu server: interface: ens18 IP: 192.168.20.2 gateway: 192.168.20.1 ...
user avatar
  • 1
0 votes
1 answer
260 views

Do I need to issue netplan apply after netplan try?

I know that netplan try has the automatic revert, but are there any other differences? Specifically, is it required to run netplan apply after I confirm netplan try ?
user avatar
  • 103
0 votes
0 answers
58 views

WiFi connects, but internet is only accesible with VPN active

Edit: I can access the internet just fine via the same wireless network using other devices Other solutions I have tried to no avail Internet access only via VPN (Cisco AnyConnect), when VPN off - DNS ...
user avatar
0 votes
1 answer
160 views

Netplan - how to bring wifi interface up only?

On Focal ubuntu server, I just want the wifi interface to come up without trying to connect. I take my laptop to several coffee shops so it would not make sense to hard code the values here. Instead, ...
user avatar
  • 103
0 votes
1 answer
1k views

How to connect raspberry pi to WIFI that requires username and password?

I am trying to connect my raspberry pi to a wifi that requires an account to login i.e username and password. I have successfully connected the pi to an open wifi that only requires SSID and password ...
user avatar
  • 1
0 votes
2 answers
2k views

configuring two network interfaces on ubuntu 20.04

First a bit of background on the problem, I'm trying to create a dynamic malware analysis lab so I'm running inetsim on this ubuntu vm and I have a couple of other vm's on the internal network ...
user avatar
  • 11
1 vote
2 answers
2k 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: ...
user avatar
  • 11
1 vote
0 answers
4k views

Ubuntu 20.04 stop/start/reload network stack with netplan

I have looked at all the solutions about how to stop/start/reload the network stack when using netplan configurations (without installing NetworkManager or nmcli) and none of them seem to give a ...
user avatar
  • 11
0 votes
0 answers
33 views

Manitaining Network Connections and VPN connections with 20.04LTS using the CLI

I have a few questions around the latest release of 20.04 and the server builds without a GUI interface. I have like all my other Servers attempted to build a 20.04 Server without a GUI as I prefer to ...
user avatar
0 votes
0 answers
23 views

Assigned IP doesn't work properly

I bought a dedicated server through PhoenixNap in August of last year. Since day one, one of my IPs hasn't worked. I have the range of x.x.x.130-134 and 131 has never worked. At first, I contacted ...
user avatar
0 votes
0 answers
71 views

wifi not working in raspberry pi 4 with ubuntu 18.04.4 lts

I installed ubuntu 18.04.4 lts for my raspberry pi 4,All the installation finished properly but i cant able to connect with my wi-fi. I use lshw-C network for wireless interface checking but its not ...
user avatar
0 votes
2 answers
730 views

Static IP with Netplan causes slow internet speed (Ubuntu Server 20.04)

I'm having an issue with internet speed when I set up a Static IP with Netplan in Ubuntu Server 20.04. I'm using a Dell PowerEdge R710, with no wifi card, so all solutions that I found in the forum ...
user avatar
0 votes
0 answers
91 views

Wired ethernet not working in Ubuntu 18.04

Ubuntu is simply unable to connect to the internet with my ethernet cable only. Right now, I'm using my Android's USB tethering to use internet on my PC (and my smartphone is connect to my home wi-fi, ...
user avatar
0 votes
1 answer
98 views

The ethnet adapter can't get IPv4 adresse from Fritz Box

I've got a Dell XPS 15 9500 (Ubuntu 20.04). I'd like to use an ethernet adapter. I've bought a DA310 but I can't get the ethernet connection to work. When I connect the USB-C cable, these devices show ...
user avatar
0 votes
1 answer
598 views

How to create multiple IP Addresses on a bonded interface with Netplan?

Edit: This may not be possible. According to the Netplan Docs, aliasing cannot be implemented. If it can't, I suppose I will need to come up with another solution (e.g. use the old interfaces method). ...
user avatar
0 votes
1 answer
2k views

How to use DHCP on multiple VLANs on a single interface with netplan?

In my current network topology I have multiple VLANs - each of which has it's own routing: VLAN 10: DHCP: 10.0.10.10-10.0.10.255 Subnet: 255.255.255.0 Gateway: 10.0.10.1 VLAN 11 DHCP: ...
user avatar
  • 125
0 votes
1 answer
790 views

How to setup the netplan for Ubuntu Server 20.04 for bridged connection running as VM?

I want to setup the netplan for a bridged network adapter in Ubuntu Server 20.04 running as a guest on a Windows 10 Desktop. The network adapter is currently not working as expected, it doesn't use an ...
user avatar
1 vote
1 answer
896 views

Can't ping after adding secondary network interface in aws ec2

Ubuntu version 20.04. First we created a 2nd private IP on the only (primary) network interface. Both private IP addresses could be pinged. Now the instance has 2 private IP addresses, 1 public IP ...
user avatar
  • 111
0 votes
2 answers
411 views

How to set ip address correctly?

I apologize in advance if my english is bad i want to ask how to set the ip address, i have written this command, and then saved ctrl + x > Y > enter but the result doesn't match I've been ...
user avatar
0 votes
0 answers
195 views

netplan: Why does it generate the back-end configuration at boot time and what is the consequence?

I'm trying to understand how netplan is working exactly and I get stuck at the following technical design concept: From netplan introduction: During early boot, the netplan “network renderer” runs ...
user avatar
0 votes
1 answer
708 views

netplan gre tunnel

I want to add gre tunnel in netplan. name: gre0, mode: gre, remote: 10.11.22.100, local: 10.11.22.99, dev: eth1 I don't know what key value to put interface eth1 into gre0. network: version: 2 ...
user avatar
  • 1
0 votes
0 answers
844 views

Static IP is disappearing after restart Ubuntu Server 20.04.2 : Please help

I have a Ubuntu 20.04.2 Server version template. I have configured IP addresses, Name servers gateway4, etc. as per the process via netplan. Whenever I am deploying VM from that template and provide ...
user avatar
3 votes
1 answer
239 views

How many VLAN bridges does netplan support?

in a lab network I try to virtualize a router that routes between multiple VLANs [2]. The Hypervisor runs Ubuntu 20.04. However, I can only setup 21 VLAN bridges on the Hypervisor. As soon as I add ...
user avatar
0 votes
2 answers
395 views

netplan yaml file apply error while setting up Bridge and Bonding port on Ubuntu server 18.04

I try to setup a bridge and bonding port on Ubuntu 18.04 server, got a error message: /etc/netplan/00-netcfg.yaml:15:33: Error in network definition: unknown key 'interfaces' ...
user avatar
1 vote
0 answers
57 views

Netplan configuration issues

i have issue configuring netplan on a ubuntu machine i want to use as a router. i previously used a centos docker where the configuration was in /etc/network interfaces. I tried to translate it to ...
user avatar
1 vote
0 answers
310 views

Ubuntu 20.04.2....Bonded NICs as TRUNK interface...assign IP from a specific VLAN to the bonded NICs?

I am attempting to setup BONDED NICs (2x 10G). We have 6 total NICs, 4x 1G and 2x 10G, do not plan to use the 1G connections at this time. Looks like I have the NICs bonded (no errors in networkctl ...
user avatar
  • 11
0 votes
0 answers
112 views

After setting up an a Static IP address on netplan, I cant access the internet

I am currently using ubuntu LTS and I am trying to set a static IP address because I plan on using K3sup. After doing some research, I have changed /etc/netplan/50-cloud-init.yaml to these settings # ...
user avatar
2 votes
1 answer
611 views

Netplan config files overwriting each other

According to this answer the applicable netplan config is the union of all config files. If two config files configure the same interface differently or otherwise have conflicting information, which ...
user avatar
  • 41
3 votes
1 answer
434 views

18.04 Server with CAN bus and netplan configuration

In Ubuntu server 18.04, what is the best way to use netplan to configure ethernet interfaces, AND configure and use CAN interfaces? I can successfully use netplan to configure my ethernet interfaces, ...
user avatar
0 votes
0 answers
28 views

What is the purpose of Netplan in Ubuntu? [duplicate]

Recently I've decided to find out how to configure the network in Ubuntu 20.04. Several years ago I used /etc/network/interfaces for this purpose, but now everything changed. As I've found for Ubuntu ...
user avatar
0 votes
1 answer
984 views

Netplan config file not disabling dhcp

I've setup ubuntu 20.04 desktop version on a PC that has 2 NICs. I have uninstalled network-manager and just want to simply have a static IP on each interface. I've got the netplan .yaml file setup ...
user avatar
0 votes
1 answer
145 views

How do I create a wireless access point using only one wireless NIC but 2 different SSID:s?

I would like to create a wireless access point using only one wireless NIC but having 2 different SSID:s, is this even possible? It would be perfect if clients connecting to the different SSID:s also ...
user avatar
  • 199
1 vote
2 answers
9k views

Cockpit Software Updates - Loading available updates failed - Cannot refresh cache whilst offline

On a Ubuntu Server LTS 20.x, with renderer : networkd, LAN / WAN Connectivity are all properly fucntional. However in Cockpit > Software Updates, it gives the error message: Loading available ...
user avatar
  • 173
0 votes
2 answers
1k views

Is there a way to create an Open vSwitch internal port with netplan?

As per the Title really. I can't work out if there's a way to do this or not. The only mention of ports in the docs are "patch ports" as pairs of ports. The example shows the use of these ...
user avatar

1 2
3
4 5
16