Questions tagged [netplan]

The tag has no usage guidance.

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

Custom network interfaces not visible

I'm learning networking on Linux. I started Ubuntu Server 22 on VirtualBox and unfortunately I have a problem. Exactly, I want to add a new network interface with a static IP, I add the interface to ...
PawelC's user avatar
  • 179
-1 votes
0 answers
40 views

Windows Server Hyper-V host Ubuntu guest network down until restart after incident

I have a Windows Server 2022 host with Hyper-V installed. There are two Generation 2 VM's installed, Ubuntu 20.04 and 22.04 LTS servers. Host machine has a network configuration that looks like this: ...
FearDC's user avatar
  • 11
0 votes
0 answers
36 views

Setting the same secondary public IP on multiple servers

The question concerns floating public IP's. I'm trying to set up a failover mechanism in the simplest way possible. Are there any hidden downsides to configuring the same secondary static public IP on ...
Blackness's user avatar
  • 101
0 votes
0 answers
267 views

Wireless-Bridge on a ubuntu 22.04 (netplan) for three QEMU VMs

I do have an apparently trivial, but it is rather an ambitious project. Wishing to run three ubuntu 22.04 VMs on my laptop, installing and configuring kubernetes for an initial learning phase with the ...
user1611183's user avatar
0 votes
0 answers
73 views

Attempting to access Nginx from www (public internet network)

I have Nginx running successfully on my local network. Before I proceed with the question, here are the IP addresses: Ubuntu Server Local IP Address: 192.168.29.110 Internet IPv4 IP Address: 45.8....
Daqs's user avatar
  • 101
0 votes
0 answers
32 views

Netplan not changing active port when arp ip target is not reachable

I am trying to configure Ubuntu server 20.0.4 with netplan and use dual copper lan port and optical convertors to achieve redundancy. in my config I have bond created of two interfaces bond-lan: ...
DenisRuzicka's user avatar
0 votes
0 answers
54 views

Netplan persistency

I have a script that modified a lot of routes by using ip route and it also edits the netplan config in /etc/netplan. However I've noticed that when a ip link goes down temporarily and then up again ...
Andrew's user avatar
  • 21
0 votes
0 answers
85 views

How to set Netplan networking configurationfor CloudStack bridges on Ubuntu 20?

I am trying to setup a host for our CloudStack test, but I cannot figure out the issue when configuring the bridged on the network with Netplan. From the installation documentation, they show an ...
Javier Gonzalez Moncayo's user avatar
0 votes
0 answers
287 views

Ubuntu 22.04: Restarting networking.service flushes IP address of an interface

I have migrated my App from Ubuntu 18.04 to 22.04, part of my app will take care of assigning IP to a network interface when it's set to run. Now, I encountered a situation where, when I restart the ...
RaGa__M's user avatar
  • 101
1 vote
1 answer
559 views

Netplan configuration for bridge and route setup

I'm not very versed in netplan. Basic static IPs and VLANs are all I've really done. I need to get this set of commands to persist on reboot: ip link add loop-to-lan link eno1 type macvlan mode bridge ...
Buee's user avatar
  • 11
1 vote
1 answer
335 views

Configuring 2nd and 3rd NIC on Ubuntu 22

I'm trying to install 2nd and 3rd NICs on a Ubunutu 22 VM running on VMWare. At first setup new VM with 1 NIC - that was successful and able to go out to internet: network ethernets: ens160:...
user212398's user avatar
0 votes
1 answer
303 views

Netplan - add secondary IP address and assign 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 '...
Semyon Bayandin's user avatar
1 vote
1 answer
620 views

Netplan- How to configure a static IPv6-address and SLACC

I’m facing a situation where I need to configure an interface with both a private static IPv6 address and SLAAC (Stateless Address Autoconfiguration) addresses. The reason behind this requirement is ...
Lc___'s user avatar
  • 19
1 vote
0 answers
446 views

Overwriting provider DNS via cloud-init

I want to overrides the DNS given by my cloud provider with my own custom DNS entries. This is a Ubuntu instance so this is configured in netplan. Once my VM boots I can see the following at /etc/...
Eric Anderson's user avatar
0 votes
0 answers
178 views

converting ip to netplan

I'm trying to convert a set of ip commands to a netplan configuration. I haven't had any luck so far, and I'm not sure why. My script for creating the bridge is: # Create the bridge ip link add name ...
djshaw's user avatar
  • 1
1 vote
0 answers
1k views

Configure multiple IPs with different gateways in Netplan on Ubuntu 22

I run a cloud server and assigned two public IPs to it but have struggle to make it working with netplan, here is my configuration: network: version: 2 renderer: networkd ethernets: eth0: ...
Nima Masalegooha's user avatar
0 votes
1 answer
709 views

Migrate from /etc/network/interfaces to netplan

I am trying to migrate from /etc/network/interfaces to netplan and network-manager setup. I am "almost" there. My current setup with /etc/network/interfaces is as follows: auto lo iface lo ...
Taavi Ansper's user avatar
1 vote
0 answers
336 views

Dynamic traffic routing via multiple GRE over IPsec tunnels

Initial data I am learning networking based things and strongSwan proper configuration. Using my own wildcard ssl certificate. All tunnels are successfully lifted and authorized among themselves, ...
IgorMonkey's user avatar
0 votes
1 answer
2k views

Conflicting routes on wireless and Ethernet interfaces

I have two network interfaces: LANIF interface is Ethernet with no connection to the internet, and WANIF interface is of wifi type and with outside connection. I am having some problems trying to ...
deadlock's user avatar
  • 111
0 votes
0 answers
330 views

Ubuntu: Netplan dont remove Nameserver

iam running ubuntu 22.04 on hetzner. After changing the nameservers with netplan, the old nameserver still show up resolvectl status and /etc/resolve.conf. Removing them from resolve.conf does not ...
Daniel Lin's user avatar
0 votes
0 answers
299 views

Extra DNS entries in the Linux routing table

I have a Linux machine Ubuntu 22.04 with two interfaces that I called bond0 and bond1. This machine has IP 10.242.87.123 and the following name servers: nameserver 161.26.0.7 nameserver 161.26.0.8 ...
Salvatore D'angelo's user avatar
0 votes
1 answer
1k views

netplan mac address matching doesn't seem to work

I have a small pc box that only have one network interface, and since I needed 2 more interfaces, I've bought two usb network cards. Both same manufacturer. I wanted to rename interfaces (since they ...
zbro's user avatar
  • 27
0 votes
1 answer
2k views

Is "netplan apply" required if I reboot after changing /etc/netplan/xxx-config.yaml file

If I change the network device config in /etc/netplan/00-installer-config.yaml and then reboot will it apply the changes, or must I explicitly do "netplan apply"? (Ubuntu 22.04)
guesty's user avatar
  • 65
0 votes
1 answer
299 views

Respond to inbound connections from multiple gateways on a single interface

I have a network with multiple gateways (gw1: 10.0.0.1 and gw2: 11.0.0.1). My server (Ubuntu 20.04) have one NIC with multiple addresses (eth0:gw1: 10.0.0.55 and eth0:gw2: 11.0.0.55). Each gateway ...
fox91's user avatar
  • 161
0 votes
2 answers
509 views

Netplan routing with two uplinks

We have servers in a colocation DC and have two uplinks: A fast metered connection (for live traffic) and a slow flat rate one (for things like backups). We'd like to use a Linux box for routing and ...
zrav's user avatar
  • 11
0 votes
0 answers
2k views

Netplan - two interfaces internet/intranet

I have server with two NIC. One is for intranet (ens160) and second is for access to internet (ens192). I tried to set this configuration through netplan and tried several combinations, unfortunately ...
rumcajs's user avatar
0 votes
0 answers
242 views

Best way of configuring a OpenVPN to allow access from the Internet to hosts behind a firewall

I have a Proxmox node with a bunch of VMs connected to a virtual bridged network. I have one VM on that bridged network that I want to connect to a Cloud VPS running OpenVPN. I then want to run an ...
obevan's user avatar
  • 1
0 votes
2 answers
5k views

How do I configure netplan in Ubuntu 22.04 with dynamic IPv4 and static IPv6?

With Ubuntu 22.04, the gateway option is deprecated and nearly every example I find for configuring netplan with static IPv6 uses gateway. My ISP's default /etc/netplan/01-netcfg.yaml only includes ...
Paul's user avatar
  • 3,137
2 votes
0 answers
94 views

netplan is not concatenating addresses on separate YAML files

I am trying to set up an additional address in an ethernet interface using netplan. The man page for netplan-generate mentions that the sequences for the same key configuration should be concatenated, ...
PySerial Killer's user avatar
0 votes
0 answers
814 views

MTU resetting back to 1500 after `netplan apply`

I'm trying to change the MTU of the eth0 interface on my machine running Ubuntu 18.04 (Nvidia Jetson Xavier NX). Running sudo netplan apply successfully sets the mtu for eth0 to 1280. Unfortunately, ...
Ben Butterworth's user avatar
0 votes
0 answers
2k views

Ubuntu 22.04 box cannot ping and connect to some services

iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ufw-before-logging-input all -- anywhere anywhere ufw-before-input all ...
Aidan Perry's user avatar
0 votes
0 answers
787 views

How to overwrite an interface config with match option in netplan?

I am using an Ubuntu 18 on a virtualbox machine and I am trying to overwrite a netplan config related to an interface. There are two config files located in /etc/netplan/. 50-cloud-init.yaml: network: ...
Sobhan Safdariyan's user avatar
0 votes
1 answer
2k views

Can't add second IP adress via Netplan on Ubuntu

So I have a dedicated server for which I need a second IP adress. After ordering the adress the hoster just told me that i can now use the ip (giving me the IP, gateway and netmask). OS: Ubuntu 20.04....
flololan's user avatar
  • 101
3 votes
3 answers
6k views

netplan does not implement the route to gateway, in Ubuntu 22.04

sorry if this is trivial ... but I do not seem to be able to get netplan to set the proper route to the default gateway. I have to manually set it using 'sudo route add default gw [...]' to enable the ...
CvM_curious's user avatar
0 votes
1 answer
169 views

Ubuntu ethernet bridge limited to 1Gbs?

I have an Intel 522SFP network adapter in a Ubuntu Server machine and I am facing a strange issue with speed. If I use it "directly" with this netplan (enp1s0f0 interface) : # This is the ...
Karnalta's user avatar
  • 129
0 votes
1 answer
266 views

IPV6 conflict VM Ubuntu 20.04 - Netplan

I have a problem, I've two virtual machines, but the problem is that when I turn on the second VM I lost the connection on the first one and vice versa. Here is the bridge netplan configuration on the ...
Irkoska's user avatar
1 vote
0 answers
543 views

Multiple interfaces and networks with Netplan: can't ping local network

My netplan config, with multiple interfaces and networks, works perfectly apart from ping to (or from?) local network. Here's my setup: network: version: 2 ethernets: ens160: dhcp4: no ...
Alby11's user avatar
  • 123
0 votes
1 answer
156 views

Ubuntu on VMWare with multiple adapters - can't ping outside

I've made a machine with 3 nic adapters. Everything works inside configured networks, but It looks like routing is not working correctly: ping 8.8.8.8 ping: connect: Network is unreachable Here's my ...
Alby11's user avatar
  • 123
1 vote
1 answer
5k views

Ubuntu 22.04 Jammy netplan goes missing

I would like to know if anybody experienced this. I am running the server cli version of Ubuntu 22.04. After running apt, I see a message saying to run apt autoremove. (I did this) I also got a ...
Edwin Drood's user avatar
0 votes
0 answers
439 views

Keep two IP's in one subnet set on two interfaces separated

I have something I do not understand and is not working for me. So I hope that someone here can help me with this. The situation is that I have one server with to network interfaces each in their own ...
arnby's user avatar
  • 1
1 vote
0 answers
941 views

Can not set static ip-adress on server (Ubunut Server 22.04)

I have been trying to set up my own cloud via nextcloud on an old laptop. So far it all works fine but the only problem is that I can not make it work with a static ip-adress. It works just fine with ...
memoki's user avatar
  • 11
0 votes
1 answer
2k views

Secondary IP not pingable from internet - Ubuntu 20.04 using netplan on Hetzner server

Let me start be saying I'm not an network expert. That being said, I'd need some help here as I'm breaking my head on this issue for two days now. I have several questions but will focus only on one ...
AGI_rev's user avatar
1 vote
1 answer
4k views

Netplan doesn't delete bond interface when removed from config

I have a working bond config, set via Netplan Example, netplan config: network: bonds: bond0: addresses: [10.10.10.135/26] gateway4: 10.10.10.128 interfaces: [ens1f0, ens1f1] ...
Rino Bino's user avatar
  • 603
1 vote
0 answers
415 views

DHCP pushed route to custom table on Linux

Is there a way I can direct routes that I receive from DHCP to a specific routing table depending on what interface it was received on? E.g. eth0 and eth1 are both configured by DHCP. I would like the ...
Carl H's user avatar
  • 11
0 votes
1 answer
1k views

NetPlan: multiple IPs with multiple gateways

I'm trying to add additional IPs linked to different gateways to my server. I'm following the example for, "Using multiple addresses with multiple gateways" from netplan.io/Examples Invalid ...
EfficionDave's user avatar
1 vote
1 answer
9k views

Netplan (re)moving route from main routing table into different routing-policy

The high-level overview is this: I have an Impish Ubuntu server with two interfaces, addresses of 172.16.2.103/24 and 10.1.2.10/24. I would like default traffic to go via the gateway 172.16.2.254. ...
Christopher Causer's user avatar
2 votes
1 answer
3k views

What controls the NIC naming convention after fresh Ubuntu 20.04 install?

This is a fresh install Ubuntu server 20.04.04 system. I'm using networkd and netplan to configure networking. I did not do any custom install steps, just loaded the .iso and installed Ubuntu server ...
Rino Bino's user avatar
  • 603
0 votes
0 answers
623 views

Ubuntu server can be accessed only after ping

and tank you in andvantage for any suggestion, I hve ubuntu server (20.04) on lan, but I can access to it (ssh or web-server apache) from other pc (windows 10) only if I do a ping from server to ...
petunia rose's user avatar
1 vote
1 answer
930 views

Sent WG trafic to eth1

I setup a wireguard server with AWS, setup the wireguard client with a raspberry PI. Now I need to redirect the WG traffic (wg0) to eth1 (eth0 is the uplink to my switch) -- my goal is to get a IP ...
Kevin's user avatar
  • 113
0 votes
0 answers
6k views

Ubuntu 20.04 setting up 2 network interface on 2 differents subnet (1 WAN and 1 LAN)

I got a vm (on proxmox) to which I passthrough 2 physical NIC. ens16f0: LAN connected (which is behind a routeur connected to a different WAN) ens16f1: WAN directly connected Both work as they ...
Sébastien Beausoleil's user avatar