Questions tagged [netplan]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
37 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 ...
0
votes
1answer
72 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 ...
0
votes
0answers
42 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 ...
0
votes
1answer
39 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 ...
0
votes
0answers
180 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... ...
0
votes
1answer
60 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 ...
0
votes
0answers
54 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 ...
-1
votes
1answer
163 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 ...
1
vote
0answers
167 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: ...
0
votes
0answers
279 views

Add second IP as network interface in Ubuntu 18.04 (netplan)

I have one physical network interface (eth0) with two IP addressess (IPv4 & IPv6) on my dedicated server. I want to configure third IP as new (virtual) network interface for bounding it to Virtual ...
1
vote
0answers
550 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....
1
vote
0answers
232 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 ...
0
votes
1answer
89 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 ...
0
votes
1answer
129 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 ...
0
votes
1answer
250 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 ...
0
votes
0answers
37 views

netplan secondary IP address max limit [duplicate]

We need 64K secondary IPs on the linux eth0 interface. The goal is to be able to program the ip addresses in less than 10 seconds. Configuring manually one at a time takes 10 mins or more. netplan ...
0
votes
1answer
93 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 ...
0
votes
0answers
529 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 ...
0
votes
0answers
24 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 ...
1
vote
0answers
3k 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: ...
0
votes
1answer
1k 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/...
0
votes
1answer
731 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 (...
0
votes
0answers
29 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&...
0
votes
0answers
40 views

Choosing external IP when multiple IPs on one interface

My hosting provider (OVH) allows to get a "failover IP" - that's kind of the same principle as ElasticIP, where you get a "permanent" IP address that you can move from one VM to ...
0
votes
0answers
39 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$ ...
1
vote
2answers
752 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 ...
0
votes
0answers
75 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: ...
0
votes
0answers
18 views

When setting netplan static ip, connection seems to sleep if left for a while

I am trying to set static local ip on ubuntu 20.04 server by disabling cloud-init, then set my 50-cloud-init.yaml network: ethernets: eth0: addresses: [192.168.1.11/24] ...
0
votes
1answer
534 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 (...
0
votes
1answer
77 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 ...
1
vote
0answers
31 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 ...
1
vote
1answer
271 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) ->...
0
votes
1answer
67 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 ...
0
votes
0answers
29 views

No connection to default gateway

I freshly installed a new ubuntu server and set up netplan for 802.3ad. Now I can reach every device in my network but not the gateway and therefor the internet. The server is directly plugged into ...
1
vote
0answers
278 views

Dual NIC with IP on same subnet - ARP routing

First time for me coming across this situation for some reason, but I have two NIC's in a VM and need both connected to the same subnet as each IP will run host different but related services. ...
1
vote
0answers
773 views

Override default gateway when using netplan DHCP

I would like to use DHCP for IP address assignment but I would also like to override/specify the default gateway. Is this possible in netplan? Something like the following (which doesn't work BTW)... ...
0
votes
0answers
827 views

ubuntu 18 nic bonding not working

I have some issue with my aggregated nics in ubuntu 18. I was not able to make it work. it is not pingable and not able to ping also. **Netplan config:** *network: bonds: bond0: ...
1
vote
2answers
4k views

Cannot ssh or ping hostname, but dig and nslookup work on Ubuntu 18.04

I updated my kernel this weekend, and now I'm using 5.3.1. christopher@HAL4:~$ uname -r 5.3.1-050301-generic I need to login to servers, but I cannot do so by hostname any longer. For example, I ...
1
vote
2answers
3k views

Setting route in Netplan on Ubuntu 18

I'm trying to add a route on an Ubuntu 18.04 machine, but I'm missing something. Traffic to 89.19.153.0/24 needs to go through 10.32.57.142. This is the config I'm trying in /etc/netplan/99-netcfg-...
-2
votes
1answer
70 views

DIY router not replying to most requests [closed]

I am trying to setup a router on a machine with Ubuntu server 18.04. The server how one NIC on the motherboard and two PCI network cards with 4 interfaces each. I have setup a DHCP server and DNS ...
0
votes
0answers
265 views

Ubuntu set default outgoing ipv6 address

On my ubuntu server I configured multiple ipv6 addresses as following with netplan: network: version: 2 renderer: networkd ethernets: eth0: addresses: - xx.xx.xx.xx/22 - ...
2
votes
0answers
1k views

Configure netplan to use a different interface for bridge

I'm setting up a virtual machine host on Ubuntu 18.04.3. I installed KVM and have succesfully set up a qemu vm which connects through a bridged network. It shows up as a regular machine in my network. ...
0
votes
0answers
1k views

netplan vlan interface not work

My config file as below, the issue in short is, the vlan interface cannot send any traffic. for example: vlan3001. I capture traffic on ens224, and ping a host in same subnet. there isn't any traffic ...
5
votes
1answer
1k views

Replace systemd-machine-id-setup with alternative?

We're using a ubuntu-18.04 template on a virtualization environment. Therefore, before creating the template, we always empty the /etc/machine-id file so it's recreated upon the first boot. The ...
2
votes
0answers
968 views

Netplan doesn't configure VLAN on hotplug of underlying link

We have the following netplan configuration: network: version: 2 renderer: networkd ethernets: ens3: dhcp4: yes ens9: {} vlans: ens9.4000: id: 4000 link: ens9 ...
2
votes
1answer
836 views

Netplan: Route multiple parallel internet connections with port forwarding to a single server with 1 network port

Here's my network diagram: 56.56.56.56 192.168.0.1/24 MAC:AA:BB:CC:DD:EE:01 ___________ ---| Modem 1 |------- | ___________ ...
2
votes
1answer
809 views

Systemd's Networkd: Unable to add ipv6 default route

I am having a hell of a time getting IPv6 address connectivity set up on my new VPS. I thought I knew what I was doing but apparently networkd disagrees, I keep getting issues when trying to add a ...
0
votes
1answer
2k views

Netplan configuration is not persistent

I have configured my network interfaces in my Ubuntu bionic (18.04) server using netplan, and afterwords I ran netplan apply and the configuration kicked in. In particular, I configured the DNS ...
0
votes
1answer
3k views

Add an on-link route in netplan

I'm trying to replicate in Netplan the equivalent of ip -6 r a 2605:6400:1:fed5::1 dev eth0 There's no "via" address. I've tried: routes: - to: "2605:6400:1:fed5::1" on-...
0
votes
0answers
286 views

Netplan static routes break my DNS

On my network, 192.168.1.0/24, I have a sub-network with a pfSense router (static "WAN" IP 192.168.1.90, LAN and OPT interface IPs 192.168.2.{1,129}) and two subnets therein, 192.168.2.{0,128}/25 with ...