Questions tagged [netplan]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 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
0 answers
85 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
121 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
  • 33
0 votes
1 answer
46 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
  • 163
0 votes
0 answers
39 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
  • 1
0 votes
0 answers
85 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
62 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
596 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,003
0 votes
0 answers
90 views

How to setup netplan routing for second (non-default) NIC to Lan gateway, while using iptables?

Trying to setup netplan (networkd) gateway-routing, with no-dhcp, iptables forwarding+Nat, between the 2 NICs: wan0 connected to Internet via its (default) gateway lan0 connected to the Lan gateway/...
akhu's user avatar
  • 1
2 votes
0 answers
81 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
174 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
592 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
195 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
406 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
1 vote
2 answers
2k 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
0 answers
166 views

2 Interfaces with different metric, and a single default gateway - losing connection

I have a weird issue. I have two interfaces: One is my WiFi, The other is a 4G USB I am trying to set up the default GW through the 4G USB (which is NATed by the 4G provider, hence, I can't SSH ...
Joe's user avatar
  • 1
0 votes
0 answers
107 views

Netplan routes do not seem to wrok with scaleway ip failover

I have a scaleway dedicated server (dedibox) with 1.1.1.1 as my primary IP. i have linked a "failover ip" 2.2.2.2 to this server i can ssh into the server with the two ip, but i can't get ...
Nils's user avatar
  • 101
0 votes
1 answer
61 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
162 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
0 votes
0 answers
185 views

Two IP addresses on different networks - Netplan

I have a server with only one network card (enp2s0) and I would like to have two IP addresses on two different networks. However, I would like to have one static IP and one using DHCP. The first ...
Bastien's user avatar
  • 11
0 votes
0 answers
154 views

Ubuntu/netplan/iproute: route everything except specific /24 across interface

2 VLANs 10.160.32.0/24 on ens160 -> * (assume multiple non-merging subnets) 10.192.16.0/24 on ens192 -> management Through ens160 I can hit other networks via routing. Through ens192 is my ...
ClontarfX's user avatar
0 votes
0 answers
384 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
  • 113
0 votes
1 answer
114 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
  • 113
1 vote
1 answer
2k 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
270 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
354 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
1k 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
0 votes
1 answer
2k 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
  • 377
1 vote
0 answers
313 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
992 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
5k 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
0 answers
1k 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
  • 377
0 votes
0 answers
396 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
0 votes
1 answer
542 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
  • 103
0 votes
0 answers
4k 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
0 votes
1 answer
10k views

Netplan - Error in network definition: Updated definition changes device type

I'm trying to set a static ip on Ubuntu. ip a: 1: lo <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 ... 2: epn2s0: <NO-CARRIER,BROADCAST,MULTICAST> ...
Gimme the 411's user avatar
0 votes
0 answers
2k views

Networking.service failed to start - RTNETLINK answers: file exists

I've been having an issue with a server after rebooting it. Previously the networking was fine, and I rarely touched it as it's a back up server. Since rebooting it, it's been having issues. The ...
AlexG42's user avatar
2 votes
0 answers
818 views

OpenSSH server on Ubuntu Impish fails to start after reboot, only manual restart works

Preface and issue I have an Ubuntu 21.10 (Impish) server, which network is managed by netplan and systemd-networkd. My /etc/netplan/01-netcfg.yaml looks like this: network: version: 2 renderer: ...
burnersk's user avatar
  • 2,046
1 vote
1 answer
4k views

netplan apply/try/generate ends with ERROR

We have cloud infrastructure based on VMWare with Windows and Linux VMs. After last reboot 4 of the Ubuntu (3 Ubuntu 20.04 and one Ubuntu 16.04) servers did not start network interface. With lshw -...
Karlis's user avatar
  • 11
0 votes
1 answer
1k views

two IPs and two gateways on one interface in bridge configuration with netplan on Ubuntu 20.04

I have a Hetzner dedicated server with single network card and two public IP addresses (both IPs have its own gateway). Right know it has only one address configured with neplan. Below is my config ...
Mariusz's user avatar
0 votes
1 answer
340 views

How to specify the source IP for outgoing traffic

Morning folks ! I have multiple public ips set on my server, and I would need to use one in particular for the outgoing traffic, as it has been whitelisted on some services I need to reach. I have the ...
Arthur Deslauriers's user avatar
1 vote
0 answers
257 views

How to add static IPv6 in Oracle cloud

I am running OS Ubuntu 18.4. I will add static ipv6 address with netplan in Oracle cloud my netplan yaml file looks like this: network: version: 2 renderer: networkd ethernets: enp0s3: ...
Myra Sewitz's user avatar
1 vote
0 answers
617 views

Ubuntu server 2020.4 network bridge for KVM not starting

I'm attempting to configure a bridge to be used for a KVM host on Ubuntu 2020.4 LTS. The basic configuration with netplan works, but the bridge does not work until I manually add the ethernet ...
markus_b's user avatar
  • 361
0 votes
2 answers
3k views

Cannot add extra ip addresses on Ubuntu 20.04. using netplan

My servers has 10.20.10.100 ip address on eno1 interface. I can successfully add temporarily ip address 10.20.50.60 (or any else). When I try to add permanently using netplan I cannot connect to ...
iWizard's user avatar
  • 418
2 votes
0 answers
2k views

Static IP - Destination Host Unreachable

I'm a newbie to system administration. I've installed remotely a Dell server using iDRAC interface. Server's ip is 200.159.243.146 and everything is fine with it. Using this interface I've installed ...
Carlos Bazilio's user avatar
0 votes
1 answer
718 views

Ubuntu Server 20.04: IP address in use

I have a bare metal dedicated server with a UK hosting company. They have an automated system which keeps blocking my server because they claim that I am using an unauthorised IP address. The IP ...
user1022788's user avatar
0 votes
0 answers
192 views

Best practice for configuring a complex virtual network with multple links and multiple virtual machines

I have a somewhat complex virtual network setup with multiple virtual machines and the links between them. There are perhaps 40 ip commands to set it up which (if I read the docs correctly) need to be ...
RabidMutant's user avatar
0 votes
1 answer
579 views

Forcing outgoing traffic via specific IP by process or user

I have a network interface with 5 public IPs. These IPs are working fine for incoming traffic. What I need to do is "force" outgoing traffic through specific IPs. I also made a simple REST ...
Tiago's user avatar
  • 101
0 votes
1 answer
4k 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... ...
Eduardo Lucio's user avatar
0 votes
1 answer
156 views

All networking broken after running Remote-SSH on VSCode

I'm really stumped here and so are my friends. I've tried every fix in the book and thus far nothing has worked. I wanted to try out VSCode's Remote-SSH feature so I installed VSCode and the Remote ...
onyxcode's user avatar