Questions tagged [netplan]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
7 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
31 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
25 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

How to add Anycast IP on Ubuntu 18.04 using Netplan?

I have a few servers with BuyVM, and I took advantage of their offer that provides you with free anycast IP if you have servers in all of their locations, which I have. I assigned the anycast IP in ...
0
votes
0answers
27 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 ...
0
votes
0answers
23 views

Access host via two different network cards

I have an Ubuntu 18.04 server box with two NICs, each one in it´s network, both of them bridged: br0 (eno1): 192.168.18.5/24 br1 (eno2): 192.168.40.5/24 The default gateway is configured as 192.168....
0
votes
0answers
56 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
187 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
30 views

Netplan on VPS with 5 NICs doesn't work simultaneously

I have properly configured the network on my host server and my virtual server (VPS(KVM)) able to communicate and reachable by one of three interfaces. Each of them works well, but I don't know where ...
0
votes
0answers
23 views

Manage multiple KVMs with public IPs on Ubuntu 18.04 with only one NIC

I'm trying to manage some KVMs on a root server with only one NIC, my situation I'm using : - Ubuntu 18.04 - KVM & QEMU (virt-manager) - Netplan - SSH to configure This is my netplan yaml ...
0
votes
0answers
360 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: ...
0
votes
2answers
1k 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 ...
0
votes
0answers
294 views

Docker - unable to access internet from container when host has secondary static IP address

Background The EC2 instance (Ubuntu 18.04 LTS) I am using to run Docker containers, has a primary IP address (172.31.37.95) assigned via DHCP. Initially, this is the only address assigned to the ...
1
vote
2answers
2k 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
57 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
126 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
747 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
692 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
528 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 ...
0
votes
0answers
100 views

Configuration of secondary interfaces in Ubuntu on AWS EC2

I have an EC2 instance Instance A 172.2.1.10 in subnet 172.2.1.0/28 where I aim to have 2 secondary interfaces in different subnets. ens3: 172.2.1.18 in subnet 172.2.1.16/28 ens4: 172.2.1.33 in ...
2
votes
0answers
615 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 ...
1
vote
1answer
357 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 |------- | ___________ ...
1
vote
1answer
444 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
629 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
1k 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
227 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 ...
2
votes
0answers
109 views

What is the meaning of using netplan?

I’m running a few Ubuntu servers and recently started upgrading from 16.04 to 18.04. In this context I came in contact with NetworkManager and netplan. After sticking to ifupdown first, I finally ...
1
vote
0answers
721 views

Ubuntu Server 18.04 two NIC on same subnet

I have Ubuntu Server 18.04 with 2 NIC cards installed and both of them have static IP assigned via netplan. This is my config: root@box2:/etc/netplan# cat 01-netcfg.yaml network: version: 2 ...
1
vote
1answer
1k views

Converting Ubuntu 18.04 from interfaces to netplan for network configuration

An old employee at my place of work set up a Ubuntu 18.04 server instance to use the /etc/network/interfaces file for network configuration. This has been causing some issues and I would like to ...
0
votes
1answer
346 views

Netplan routing failure on reboot

I've got the following netplan config in a Ubuntu server 18.04.1: $ cat /etc/netplan/01-netcfg.yaml network: ethernets: ens160: dhcp4: true ens192: addresses: - 192.168.10....
0
votes
0answers
183 views

How to set an IPv6 neighbour discovery proxy with Netplan?

How can I configure the following commands in Netplan? ip -6 neigh add proxy 2a03:4000:21b:44bc:1::1 dev ens3 ip -6 neigh add proxy 2a03:4000:21b:44bc:1::11 dev ens3 ip -6 neigh add proxy 2a03:4000:...
1
vote
1answer
726 views

DHCP conflicts on two Ubuntu 18.04 servers

I have two machines running Ubuntu 18.04 server edition. Networking go through netplan. They get their IPv4 from a DHCP server v6.3 running on Windows Server 2012 R2. For some reason, they don't ...
1
vote
2answers
479 views

Netplan bridge issue

I am trying to create a bridge using Netplan. I copied this part of the guide. But it gives me an error: root@ubuntu:~# netplan generate Error in network definition //etc/netplan/01-netcfg.yaml line ...
4
votes
1answer
1k views

Adding a whole IPv6 /64 block to a server using Netplan

I have read Adding a whole IPv6 /64 block to an network interface on debian We want to make use of the AnyIP feature to add a whole IPv6 /64 subnet block to a web hosting server but using Netplan ...
0
votes
0answers
1k views

Setting up Bridge for KVM on Ubuntu 18.04.1 Server

I'm trying to setup KVM on Ubuntu 18.04.1 Server. I tried following the instructions here, however I got stuck at the part which has me configure the bridge. I don't have a 50-cloud-init.yaml file, ...
5
votes
3answers
7k views

How to add a static secondary IP to a DHCP interface using netplan?

My server has a file /etc/netplan/50-cloud-init.yaml with the following content: # This file is generated from information provided by # the datasource. Changes to it will not persist across an ...
1
vote
0answers
443 views

Netplan overwrite previous config?

I have a couple netplan config files, one that configures the machine statically # /etc/netplan/02-static-config.yaml network: ethernets: enp0s3: addresses: - {...
0
votes
1answer
128 views

network configuration after restoring a snapshot on newly created VPS instance

I have a website up and running on a VPS instance from Vultr running Ubuntu 18.04LTS, everything is fine. I wanted to try out a snapshot of the instance in a restore session just in case something bad ...
0
votes
2answers
7k views

Ubuntu 18.04 setting up network on secondary interface

I've got a VM running Ubuntu 18.04 - it's all setup and running on a single public IP and has two interfaces - ens160 (public) & ens192 (private). My interface ens160 is already fully configured. ...
2
votes
1answer
10k views

netplan configuration on Ubuntu 18.04 failing

EDIT: This is precise situation after I took the code to rename the interfaces. This is my netplan configuration file: network: version: 2 renderer: networkd ethernets: eno1: dhcp4: ...