Questions tagged [netplan]
For questions specifically about Netplan, the YAML network configuration abstraction created by Canonical. If this question is not about Netplan, try a more general tag like [networking]
43
questions
0
votes
0
answers
24
views
Netplan: How to route an ip to a device and how to set a source ip for a default route?
I am configuring a multi-internet-ip network on a root server with many vms.
My network is fully functional now (to the intended extend) but I had to set up some routes manually without netplan.
Can ...
0
votes
0
answers
106
views
Ho to set up virtual interface with netplan to communicate with IP-device?
I have an IP-device that connects via ethernet and then communicates over UDP. The IP-device has hardcoded IP address (169.254.241.10). This is my draft netplan configuration:
network:
version: 2
...
1
vote
1
answer
133
views
What is the default tunnel 'mode' when creating with `ip`
I'm trying to convert this ip tunnel creation process:
sudo ip tuntap add tun0 mode tun
sudo ip addr add 192.168.7.2/25 dev tun0
sudo ip link set dev tun0 up
sudo ip addr show tun0
to a netplan ...
0
votes
2
answers
334
views
Default route appears on ethernet interface with DHCP disabled
I have an Ubuntu system with an ethernet interface (eth0) connected to a router that acts as a DHCP server providing a default route. However I have set eth0 to use a static address and ignore routing ...
2
votes
1
answer
170
views
Can I set up a 'software' switch in Ubuntu instead of a bridge with Netplan?
I'm currently building a new version of my DIY router, I run Ubuntu 22.04 LTS with a minimal install, and run firewalld on top of it - and the newer hardware I run has a 'mix' of different port speeds ...
2
votes
1
answer
224
views
Multiple Interfaces on same subnet breaks PTP
I have a PC ("main PC") with two interfaces mgbe0 and mgbe1. Both of these interfaces connect to another PCs A and B (mgbe0->"A", mbge1->"B"). Both PCs A and B are ...
0
votes
0
answers
186
views
Netplan - add secondary IP address and assign a label
I saw the same question here, but I can't find it anymore. How can I add secondary IP address and assign a label to it via netplan?
I have this netplan config:
# This is the network config written by '...
0
votes
1
answer
319
views
ARP issue with VLAN on VMWare Workstation
I have two vm in WMware Workstation 17 Pro.
They are connected like this (by the way the OS is Ubuntu 22.04)
Ubuntu1 -- vlan 10 -- Ubuntu2
But they can't connect each other:
So I check source ...
0
votes
0
answers
687
views
Name Resolution Failure and Network Not Showing
Update
I reinstalled Ubuntu to prevent spending hours trying to resolve this issue. If the issue occurs again, I will know to write down every single change I make and see if I can pinpoint what ...
1
vote
2
answers
2k
views
NetworkManager Automatic Ethernet Connection
I've recently picked up Rocky Linux 9.1 and am trying to get the basic networking to work correctly using netplan and networkmanager. There must be something simple missing here...
I have a very ...
0
votes
1
answer
218
views
Can't reach host on internal network
I have 3 hosts running on the same Proxmox node with two network interfaces each. The first network interface on each node is on the 10.100.59.0/24 subnet with 10.100.59.1 being the default gateway ...
0
votes
1
answer
216
views
kernel routing tables config does not persist after reboot
I asked a question regarding some faulty kernel routing tables configuration that I had in one of my machines due to an unexpected power outage. That event left the machine with a messed up network (...
0
votes
1
answer
905
views
Deploying dhcp-server on router: is netplan involved?
I have a PC that acts as my home router.
It has a NIC to the WAN.
It has a NIC to the LAN.
It has a NIC to the WAP.
It also has a bridge that spans the LAN/WAP.
Now, I want this router to dispense ...
1
vote
1
answer
12k
views
Configure two NICs with different IPs in Netplan - Ubuntu 22.04
Configure Two NICs for Different Networks on the Same Machine
Question
How do I correctly configure two NICs on separate networks? The goal is is to have all traffic returned from the interface it was ...
3
votes
0
answers
5k
views
How to bridge a VLAN and a physical interface with netplan?
I have two workstations running Ubuntu 22.04 Server using netplan for network device management.
The first workstation has 5 NICs. The only two that I think matter for this are enp0s25 and `ens1. Here ...
0
votes
0
answers
3k
views
Ubuntu 20.04 netplan static configuration gets reset after a while
Expected behavior:
My netplan configuration is always used and the static IP addresses I configured stay like configured.
Actual behavior:
Somehow the machine "forgets" the configuration and ...
0
votes
1
answer
6k
views
Ubuntu Server 20.04.2 LTS Network slow/not working
My network issues first started when I got a DNS error, so I started trying to change my DNS server to Cloudflare/Google DNS. I started reading how to do this and I found that latest Ubuntu releases ...
1
vote
0
answers
259
views
Netplan ignores try and apply arguments
When I enter command like:
netplan try
or
netplan apply
netplan outputs nothing.
If I try again to start those commands netplan outputs error:
bind: address already in use
netplan: fatal error: cannot ...
2
votes
1
answer
6k
views
Add a device static route with netplan
I would like to add a static ip route to a device in my netplan configuration.
A normal route looks like this:
eth0:
<stuff>
routes:
- to: 10.0.0.0/24
via: 192.168.3.1
But ...
1
vote
0
answers
15k
views
Netplan Configuration
When I apply the configuration below, everything works fine (IE.: I am able to reach my server over eth0 and wlan0). But, after applying the netplan configuration, I received the following output:
***...
0
votes
0
answers
132
views
Managed switch: make port communicate on two VLANs
I'm trying my best to have the following scenario.
VLAN1: All of my WiFi and non-IoT devices
VLAN2: All of the IoT devices including Raspberry Pi manager running Linux.
I want to make it possible to ...
0
votes
0
answers
6k
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 ...
1
vote
0
answers
739
views
Ubuntu 20.04 LTS, netplan: Setup LACP for two InfiniBand interfaces?
I've been asked to setup a bonded InfiniBand interface (LACP) on a Ubuntu server running 20.04 LTS and currently configured with netplan. I've searched the topic, but no real good answer on how to set ...
0
votes
0
answers
1k
views
netplan - Network with DHCP configured, but no internet
I am trying to configure my Ubuntu Server 20.04 LTS to use DHCP in its network configuration.
Many tutorials on the internet recommend that I create the following file with the following settings...
...
3
votes
1
answer
22k
views
Error: WARNING: systemd-networkd is not running, output will be incomplete
I am using systemd-networkd to render network interfaces, in the initial network configuration i had a network
connection, but as soon as i boot into the bridged network via the netplan config it ...
0
votes
1
answer
888
views
Automatic creation of the second WiFi interface with netplan (Ubuntu 20.04)
I want to create wifi access point on my machine together with ordinary wifi interface. My card support this operation. I can do this manually with the following commands (note that wlan0 already ...
1
vote
1
answer
2k
views
Netplan/DHCP Config: Forwarding requests from one bridge port to another
im trying to configure a bridge network on Ubuntu 20.04. There are 4 ethernet ports in the brige. This is how the corresponding netplan config looks like:
network:
version: 2
ethernets:
...
2
votes
1
answer
7k
views
Applying Netplan Access Point settings?
I am upgrading a previous configuration of an AIO server/access point to Ubuntu 20.04. I wrote a Netplan configuration for our interfaces, as follows -
network:
version: 2
renderer: ...
0
votes
1
answer
464
views
Why does networkd forget the bridge configuration then complains about invalid gateway?
I use 2 of the 4 ethernet sockets as a bridge, which I configure with netplan:
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
eno2:
dhcp4: no
eno3:
...
1
vote
1
answer
1k
views
OVH VPS (Ubuntu 18.04) can not connect with IPv6
I have a VPS server from OVH running Ubuntu 18.04 LTS and I noticed today that the IPv6 was not working at all, nor was the IPv6 assigned to me listed when I looked in ifconfig. Then I followed the ...
0
votes
1
answer
2k
views
Ubuntu 18.04 netplan bridge. Keep one of physical interfaces down on boot
I have got an server with Ubuntu 18.04 (upgraded from 16.04 recently), which runs two qemu-kvm VMs.
The server has two network interfaces, only the first is connected. The second is not used / wired ...
0
votes
1
answer
282
views
How can I manually assign a static IP in Ubuntu 18.04?
I have a VPS server running Ubuntu 18.04 which has a /64 subnet of IPv6 addresses. For the purpose of this post, let's call it 2601:aaaa:aaaa:aaaa::/64. The VPS website says I can use any address ...
0
votes
1
answer
1k
views
How to enable screen sharing when using networkd in netplan?
On Ubuntu 18.04, I am configuring a bond of 2 interfaces and using 2 interfaces of another NIC. Here is my netplan entry:
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: ...
3
votes
1
answer
565
views
How to configure AP priority in netplan?
I would like to configure more than one AP in netplan,
like this:
wifis:
wlan0:
access-points:
network1:
password: "abc"
priority: 0
...
7
votes
0
answers
15k
views
netplan configuration not active -- ubuntu 18.04
trying to set up a fixed IP address on one of two NIC. I try using netplan. Not working at all.
Not an expert on this, I am out of my wits and ready to roll back to some other way (networkd). Maybe ...
0
votes
0
answers
852
views
How to determine root of network unreachable error thrown by Docker
I'm trying to configure docker to run on an old SuperServer of mine, and can't get the networking bits setup correctly. Network config and Docker errors are below, ideas and suggestions are welcome.
...
0
votes
1
answer
221
views
How to rename "lo" interface in Ubuntu Server 18.04?
How to rename "lo" interface in Ubuntu Server 18.04 ?
I have tried using udev rules without success, here is my code:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:...
2
votes
0
answers
1k
views
Bridge config in netplan does not come up at boot
I had an ubuntu 18.04 working and decided to move it to a VM in Proxmmox.
Configuration includes a bridge, it was working fine in the previous system but it does not come up at boot in the Proxmox VM....
1
vote
0
answers
550
views
Ubuntu 18.04 Netplan routing to VM
I have an Ubuntu 18.04 server with Hetzner on which Virtualbox
is running Windows server '12.
The host has ip: 144.76.116.79
I've got an additional ip, 144.76.116.125, since I want all traffic ...
2
votes
1
answer
5k
views
Ubuntu 18.04 netplan with bridge
I am running Ubuntu 18.04 and my netplan configuration has suddenly stopped working. When I run
sudo netplan apply
the following messages appear and I lose connection
Traceback (most recent call ...
0
votes
2
answers
5k
views
How to configure netplan in Ubuntu 18.04 for DHCP and Static Routes
I have a server running Ubuntu 18.04 with 2 NICs.
Each NIC is attached to a different network.
My current configuration looks like:
cat /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: ...
1
vote
1
answer
5k
views
Configure a bridge connection as a hub with netplan
My current problem hits the limits of my basic networking skills.
In short : I "tapped" a server with multiple network interfaces on a network cable linking my router and my media center. I try to ...
4
votes
1
answer
4k
views
Lost network connectivity on Hetzner with Netplan bridge
I installed the Ubuntu 18.04 and wanted to have a bridge interface instead of using the main interface directly for KVM virtualization:
Here is the Netplan default configuration after installation, ...