2022 Developer Survey is open! Take survey.

Questions tagged [netplan]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
34 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 ...
user avatar
0 votes
0 answers
20 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] ...
user avatar
  • 180
0 votes
0 answers
40 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 ...
user avatar
  • 1
0 votes
1 answer
31 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 ...
user avatar
0 votes
0 answers
33 views

Dhcp server dont access internet

I have 2 ethernet cards in Ubuntu Server 20.04; enp1s0 my main ethernet card, enp2s0 my dhcp server ethernet card. I want devices that receive ip via enp2s0 to access the internet, but if I set the ...
user avatar
  • 1
1 vote
0 answers
125 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. ...
user avatar
0 votes
0 answers
44 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 ...
user avatar
  • 180
0 votes
0 answers
58 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 ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
  • 103
0 votes
0 answers
251 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 ...
user avatar
0 votes
1 answer
875 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> ...
user avatar
0 votes
0 answers
133 views

Docker containers no internet after adding a static IP, netplan (host)

I am a newbie with netplan. The context is that I want to add a failover IP (provided by OVH) to one of my server to provide HA (this IP will be failover/moved between all of my servers, only one ...
user avatar
0 votes
0 answers
113 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 ...
user avatar
2 votes
0 answers
160 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: ...
user avatar
  • 1,946
1 vote
1 answer
946 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 -...
user avatar
  • 11
0 votes
1 answer
376 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 ...
user avatar
0 votes
1 answer
63 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 ...
user avatar
1 vote
0 answers
123 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: ...
user avatar
1 vote
0 answers
204 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 ...
user avatar
  • 351
0 votes
2 answers
950 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 ...
user avatar
  • 358
2 votes
0 answers
717 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 ...
user avatar
0 votes
0 answers
146 views

Unable to connect to ec2 instance after changing my network configuration

My MongoDB database was hacked and I lost all my data but I had backups so it was not a problem, but once I was trying to recover it and make it safe I found out that binding only the necessary IP ...
user avatar
0 votes
1 answer
385 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 ...
user avatar
0 votes
0 answers
109 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 ...
user avatar
0 votes
1 answer
55 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 ...
user avatar
  • 101
0 votes
1 answer
2k 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... ...
user avatar
0 votes
1 answer
110 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 ...
user avatar
0 votes
0 answers
173 views

Ubuntu Servers 'loose' DNS and need to run netplay apply

I've got a bunch of ubuntu 18,20 servers (web/app) and their /etc/netplan/conf.yaml has the nameservers pointing to our 2 ubuntu bind/dns servers. Randomly, and often, I need to run netplay apply on ...
user avatar
  • 141
-1 votes
1 answer
523 views

how to save static routes permanently in ubuntu

The current configuration: server1: sudo route add -host 10.0.1.2 dev enp131s0f0 sudo route add -host 10.0.1.3 dev enp131s0f1 server2: sudo route add -host 10.0.1.1 dev enp131s0f0 sudo route ...
user avatar
  • 11
1 vote
0 answers
500 views

Netplan will not assign given IP from yaml file

I have an Ubuntu 20.04.1 system and I am trying to set up the ethernet adapter with a static address and a vlan with a static address - here is my yaml file: network: version: 2 renderer: ...
user avatar
1 vote
0 answers
2k views

Netplan fails to bring up VLANs

I'm trying to have a properly configured Ubuntu 20.04 server network at boot. I have an physical interface connected to a trunk so I want to define some vlan tagged interfaces on it. I'm using netplan....
user avatar
1 vote
1 answer
1k views

Netplan - Configure two interfaces on same network

I have a set of Ubuntu 18.04.5 LTS servers with two interfaces each. eno1 - 1g management interface eno5 - 10g data interface Both interfaces are in the same L2 subnet (10.98.16.0/22). My issue is ...
user avatar
  • 11
0 votes
1 answer
99 views

Xen Domain0 Has Network But DomainU does not

After re-installing my domain 0, a guest VM (domain U) is no longer able to connect to the network. I am using Ubuntu 20.4 on my Domain 0 with Xen 4.11. I am able to successfully connect to internet ...
user avatar
  • 333
0 votes
1 answer
315 views

How to set up kvm vm on separate nic from host in Ubuntu Server 20.04

I am trying to figure out how to setup a vm in Ubuntu Server 20.04 with kvm, but I am not having much luck. The goal is to have the host on the 192.168.20.x network and the vm on the 192.168.10.x. I ...
user avatar
  • 1
0 votes
1 answer
602 views

How to drop dhcp ip assignated when using clevis/tang on Ubuntu 20.04

I unlock my drive with clevis/tang on an Ubuntu server (NBDE). It works fine, but even if my server is configured to use a static ip in /etc/netplan/01-netcfg.yaml, my network interface also listen on ...
user avatar
  • 381
1 vote
1 answer
425 views

Apply DNS configuration to all interfaces

On Ubuntu 20.04, how can I configure DNS for all Ethernet interfaces, regardless of how they've been named? I have some machines with eth0 as the primary network interface and others with ens5. I'd ...
user avatar
  • 13
3 votes
1 answer
2k views

Ubuntu 18.04 policy based routing: netplan does not populate routing table

I have 2 network interfaces - 1 connected to internal network and 1 connected to external network, both interfaces acquire their IP from DHCP. By default traffic goes through internal network and ...
user avatar
  • 31
0 votes
0 answers
33 views

Cannot display default NGINX page

I just installed Ubuntu 20.04 on my server. I also installed Nginx. My problem is that the default sie Nginx page is not displayed. Yet UFW is not activated. Do you have an idea of the problem ? This ...
user avatar
1 vote
1 answer
6k 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: ...
user avatar
  • 113
0 votes
1 answer
3k views

Netplan, two gateways for two subnets

I'm trying to get working following: Have 2 subnets (ie. 192.168.15.0/24 and 192.168.19.0/24) and two gateways (192.168.105.1/24, 192.168.109.1/24), and Ubuntu 18.04 server with netplan as router (.1/...
user avatar
  • 11
1 vote
1 answer
3k views

Setting default valid_lft and preferred_lft values with Netplan on Unbutu 20.04

What's the impact, if any, on having values greater than zero/forever for valid_lft and preferred_lft? Should I worry about this, and if so, how to set it automatically to forever at boot time (...
user avatar
  • 123
0 votes
0 answers
59 views

Is there a way to target an interface without knowing its name or mac address?

We're running a handful of virtual servers at OVH, which use openstack. Most of the servers have a public interface as well as a private interface which is connected to a "virtual private cloud&...
user avatar
  • 1,434
0 votes
0 answers
66 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$ ...
user avatar
  • 1
1 vote
2 answers
2k views

Unable to configure IPv6 correctly in Ubuntu 18.04

I have a cloud instance on OVH which is accessible over IPv4 but not IPv6. It's running Ubuntu 18.04. I've found conflicting advice about using netplan vs configuring systemd-networkd directly, but ...
user avatar
0 votes
0 answers
137 views

Adding a whole ipv6 /64 block to a ubuntu 18.04 server

I know there are other questions that had already asked this, but the solutions don't work (anymore and for me). I added the IP in the netplan config file(01-netcfg.yml): version: 2 renderer: ...
user avatar
0 votes
1 answer
906 views

Add IP addresses to systemd-network besides netplan

On an Ubuntu 20.04 server, netplan is used to configure the network. It can configure ordinary static IP addresses but I need additional IPv6 addresses with preferred_lft=0. Netplan can't do that (...
user avatar
  • 123
0 votes
1 answer
140 views

Dual NIC silently rejecting all incoming traffic from one interface

In my server, I have two ethernet cards: enp0s17, local IP 192.168.0.7, router's public address x.x.x.x, netmask 255.255.255.255 enp0s18, local IP 172.16.0.7, router's public address y.y.y.y, netmask ...
user avatar
1 vote
0 answers
50 views

Puppet - Get interface name from netplan yalm config

How to get interface name which has nameservers defined? I want to get the interface name so I can pass it to another netplan puppet module so the nameservers can be replaced. But I only want to get ...
user avatar
  • 11
1 vote
1 answer
607 views

Select next-hop based on source address

I'm trying to set up a Ubuntu-based gateway between clients and the core router, the ideal traffic flow should be: ClientGroup 1 (10.0.0.0/24) -> Ubuntu gateway (10.0.0.2) -> Core router (10.0.0.1) ->...
user avatar
0 votes
1 answer
110 views

Configure a web server with two gateways

I have two routers: Router 1 and Router 2 both connected to the internet. A desktop computer (lets name webserver) serving some websites is connected to both routers. Router 1 through WiFi and Router ...
user avatar