Questions tagged [netplan]

Netplan is a utility for easily configuring networking on a linux system. You simply create a YAML description of the required network interfaces and what each should be configured to do. From this description Netplan will generate all the necessary configuration for your chosen renderer tool.

Filter by
Sorted by
Tagged with
0
votes
2answers
2k views

Unable to ping 18.04 desktop unless this machine first pings the client, when using networkd instead of network-manager

I'm trying to set up networking with netplan and networkd as renderer on an 18.04 machine. It runs the desktop distribution because it's connected to my TV and used for multimedia, but I'll call it a ...
0
votes
1answer
2k views

How do I configure a DNS server for Ubuntu Server 18.04 LTS?

I am aware Ubuntu 18.04 uses netplan for its networking, and I have a file at /etc/netplan/50-cloud-init.yaml with the following info: Picture of /etc/netplan/50-cloud-init.yaml I know the syntax ...
1
vote
0answers
721 views

18.04.1 LTS systemd-network not applying [RoutingPolicyRule]

I have a server instance with two interfaces, and I have created a rule to ensure traffic that comes in ens160 goes out ens160 despite matching the default route for ens192. The routes and rules work ...
1
vote
1answer
592 views

No default gw from dhcp in ubuntu server 18.04 with netplan

I have an issue with network configuration in ubuntu server 18.04. My host does not apply default gateway route from dhcp server. My netplan config is: network: version: 2 ethernets: enp0s8: ...
3
votes
1answer
3k views

Ubuntu 18.04 fails to start network, netplan DHCP configuration

Netplan configured for DHCP on interface ens160: more /etc/netplan/01-netcfg.yaml network: version: 2 renderer: networkd ethernets: ens160: dhcp4: yes When executing netplan restart ...
0
votes
1answer
552 views

home server DNS with dnsmasq

Pulling my hair for days here setting up DNS and DHCP with dnsmasq and the new way of doing things with netplan. WAN-router is on 192.168.0.1 - works fine LAN-router is on 192.168.1.1 - DHCP works ...
0
votes
1answer
604 views

Netplan with 2 NICs each connected to a different gateway

I'm a bit confused on how to configure my Ubuntu 18 server with two NICS using Netplan. Each NIC is on a separate subnet. They are directly connected to separate router interfaces on the router (this ...
0
votes
1answer
189 views

Can't use DNS name instead of ip for jdbc connection on local network

I have the following connectionString for my db: jdbc:sqlserver://{someIpAdress}:1433;database=db I want to resolve someIpAdress to the DNS name instead. By running nslookup on the ip I get the ...
2
votes
1answer
454 views

Ubuntu Server 18.04 weirdest connectivity issue - can ping externally but no internal connectivity

I'm running Ubuntu Server 18.04.1 on a Dell 7240 laptop. I have both the ethernet and wifi connected to my network (/24). The IP addresses are reserved by the DHCP server (my Asus router) and dished ...
2
votes
0answers
1k views

Netplan - Bridging over a bond on Ubuntu 18.04 KVM host

Sorry in advance for the long post, this has been rattling me days. I've got a server with 4 NIC (eno1, eno2, eno3, eno4). I'm trying to establish the following setup: Host - Ubuntu Server 18.04 ...
0
votes
0answers
507 views

How to cearte static ip for bond0 in Ubuntu 18.04 server

issue: not folder of root@localhost:~# ls /sys/class/net/bond0/device/ DEBUG:Cannot replug bond0: cannot read link /sys/class/net/bond0/device: [Errno 2] No such file or directory: '/sys/class/net/...
0
votes
1answer
112 views

Unable to convert partial VLAN from systemd to netplan

I will start by saying I do not know whether I am dealing with a user (me!) error (me!), a netplan bug, or even a systemd bug. I won't bloat this question with configurations and diagnostics yet, just ...
1
vote
0answers
497 views

How do I configure Kickstart network settings with Ubuntu 18.04?

I saw that in Ubuntu Server versions 16.04 and prior, there used to be a way to auto-configure the SystemV networking part of the Ubuntu OS in unattended installs via Kickstart files. However it seems ...
2
votes
1answer
2k views

netplan issue with Ubuntu 18.04.1 Server. No network connectivity (no routes either)

I've been using Ubuntu since inception and have recently found out about Ubuntu's switch to using netplan vs it's traditional/better /etc/network/interfaces method. I'm attempting to get this to ...
2
votes
3answers
14k views

Netplan error in network definition expected mapping

no way to make the network works on the new ubuntu server. This is the netplan yaml file: # To disable cloud-init's network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-...
1
vote
1answer
904 views

Ubuntu 18.04 desktop: netplan.io+NetworkManager: wrong default route mask (0.0.0.0/24)

My yaml file is: network: version: 2 renderer: NetworkManager ethernets: enp2s0: dhcp4: no dhcp6: no enp3s0: dhcp4: no dhcp6: no addresses: [192.168.245.50/...
1
vote
1answer
711 views

How to route IP net to interface using netplan

The VLAN of eth0 holds 2 IP nets, from the machine with IP 10.64.0.101/27 (eth0@machine-1) I used to connect to the openVPN server at 10.0.0.41/27 (eth0@machine-2) with the IP range 192.168.0.0/24. ...
0
votes
1answer
392 views

How do I config tunnels in netplan

I cant find any docs on how to bring up tunnels with netplan. Can some point me to the correct docs or does netplan not manage tunnels?
0
votes
1answer
543 views

Ubuntu 18.04 Netplan subnet routing (virbr0)

I have an Ubuntu 16.04 host with 6 LXC/LXD containers connected to the Internet in both directions using a routed setup. Each container gets one IPv4 address from a routed IPv4/29 subnet. In addition ...
0
votes
1answer
615 views

Network is unreachable

I have one server using 192.168.1.2/24 and the other server using 192.168.2.2/24. They are connected on my router with separate adapters. I tried ping test from my router, it worked. However, when ...
0
votes
1answer
140 views

Network doesn't come back up after connection loss

I've successfully gotten my setup working with a 2Gbps connection to the rest of my network through a Unifi switch via bond0 (enp6s0 & enp7s0 in LACP) using netplan. The problem I'm running into ...
0
votes
0answers
14 views

VMware adapter connection

I have router which have "adapter1" for NAT, "adapter2"for intnet1, and "adapter3" for intnet2. I made connection with router, web, and desktop by giving enp0s8 for "adaptor 2" (I changed those at the ...
2
votes
1answer
5k views

netplan apply does not change the IP address

ok, my file is located at /etc/netplan/50-cloud-init.yaml I changed the IP address as a static IP address as following: network: version: 2 renderer: netwokrd ethernets: dhcp4: no ...
0
votes
1answer
150 views

Ubuntu & Netplan - Example of blackhole or unreachable routes

I have not found examples of how to configure Netplan in Ubuntu Bionic 18.04 with global blackhole/unreachable routes. So I'll put it here in case someone else runs into the same problem, has an ...
1
vote
1answer
1k views

fixed IP address on LAN under Ubuntu 18.04 (netplan)

I've just installed Ubuntu for the first time and I want to set up a fixed IP address for my computer as a first step towards connecting from outside via ssh. I can find no menu in my router to ...
2
votes
0answers
271 views

ubuntu 18.04: not releasing old IPs from DHCP [duplicate]

We're running ubuntu 18.04, with the following configuration of netplan: network: version: 2 renderer: networkd ethernets: ens3: dhcp4: yes Currently we're running into an issue with ...
0
votes
0answers
166 views

Setting up Ubuntu server 18.04 static IP addresses with two NIC

I have two NICs on my Ubuntu 18.04 LTS server and I set first nic (eno1) for Public IP and the second (eno2) for private IP. Here is my 99_config.yaml # This file is generated from information ...
1
vote
0answers
2k views

18.04 server used netplan to setup WiFi, Now WiFi has same Mac address as Lan

Not sure if this is a bug in netplan or is expected behavior. I have tried this using a bare metal computer and also VMware Workstation 14.x and both USB and a PCI WiFi cards have the same Mac ...
0
votes
1answer
1k views

How to bridge two interfaces with netplan

I want to setup a gateway on an Ubuntu 18.04 machine with 2 eth ports - ETH1 - WAN connection, connected to my corporate network with DHCP ETH0 - LAN connection, connected to my laptop statically I ...
0
votes
1answer
1k views

Multiple network interfaces with netplan

So in short, I have 3 network interface on my Ubuntu Server 18.04 ens160 - LAN 192.168.1.50/24 set by dhcp ens192 - LAB 10.10.10.50/24 set by dhcp ens224 - SAN 10.10.15.50/24 static ip. They ...
0
votes
0answers
354 views

Is there a way to create a general access point entry in Netplan?

Is it necessary for me to create an access-point entry for each AP I use in order to use VirtualBox's bridge adapter? Edit: this was the netplan config I tried before network completely crashed. ...
1
vote
3answers
2k views

How to configure bridge network through WiFi with 18.04 host with netplan in order for bridge adapter to work with VirtualBox?

I'm trying to connect the Ubuntu 18.04 guest machine to the network on my Kubuntu 18.04 host laptop via bridge adapter. The Ubuntu guest won't recognize it, however. I read about how I should be ...
0
votes
1answer
678 views

netplan: how to run script on if-up of specified device only

When I use ifupdown, I wrote a script in if-up.d and use $IFACE to detect the name of the device affected. Now I turn to netplan in Ubuntu Server 18.04. 2 questions need to be solved: 1 Where to put ...
1
vote
0answers
2k views

Ubuntu server 18.04 - No IP address with Netplan

Background: Hardware: Thinkpad X301 In the installation of Ubuntu 18.04.1 Server (64-bit) the installation was stuck at the network setup portion of the installation. The network setup timed out and ...
0
votes
2answers
833 views

Convert ifupdown using VLAN and Bridge-Utils to Netplan

I need to convert our ifupdown setup which uses apt-get vlan and bridge-utils to Netplan but have been unable to get the same setup using Netplan. Here's the current /etc/network/interfaces config ...
2
votes
0answers
550 views

Port Forwarding Ubuntu Server 18.04 with netplan and ufw I have a server with 2 network interfaces

I have an Ubuntu server 18.04 with 2 network interfaces. enp1s0 has ip address 192.168.0.1/24 enp2s0 is connected to DHCP I am looking to forward port 8080 from any incoming traffic connected to ...
0
votes
1answer
838 views

interface name mismatch bionic ubuntu 18.04 [duplicate]

Facing an issue where there is a mismatch in the interface name. While installation the rename happens from eth0 to enp3s0 noticed in /var/log/installer/sys.log which also generates ethernet name as ...
0
votes
0answers
112 views

How to overwrite the DNS servers from DHCP or set system wide DNS servers?

I have an Ubuntu 18.04 Server with several NICs with different types of configuration: static and DHCP. I want to have a set of DNS servers for all the interfaces, no matter if they are DHCP or ...
0
votes
1answer
31 views

wireless connection only after power off

I am have strange problems to enable wifi on my box. Basically I have a network minimal install plus wpa_supplicant and a wireless usb stick. Within /etc/wpa_supplicant/wpa_supplicant.conf there is: ...
0
votes
1answer
170 views

How to find which module is active for network control?

I have an Ubuntu VPS and I want to change its IP address and gateway. But none of the network commands work on this system. ifconfig works and shows just lo. ifup command not found. /etc/sysconfig/...
0
votes
1answer
1k views

DNS resolution broke after upgrading to 18.04, resolvconf broken or not fully installed

when googling i find stuff like this: askubuntu resolvconf but /etc/resolv.conf doesn't seem to exist sudo dpkg-reconfigure resolvconf returns that resolvconf is broken or not fully installed ...
1
vote
1answer
970 views

Multiple ip on an interface with netplan

I have a server that uses multiple ip for proxies with Squid. I'm setting it up on a new server, but with Ubuntu 18 I need to rewrite /etc/network/interfaces for netplan. On the old server /etc/...
1
vote
1answer
2k views

Does Ubuntu 18.04 use dhclient?

I'm trying to figure out how to configure my DHCP client on Ubuntu server 18.04. I have the following netplan configuration, coming from cloud-init: network: version: 2 ethernets: ...
0
votes
0answers
86 views

Internet access only working with untaged vlan 18.04 server

i setup a 18.04 box with 2 NICs. Netplanconfig: network: version: 2 renderer: networkd ethernets: enp2s0: dhcp4: yes enp3s0: dhcp4: yes if the switch tags the traffic with VLAN IDs the Ubuntubox ...
2
votes
1answer
504 views

How can I override netplan's per-interface nameservers, rather than appending to them?

I have an DigitalOcean server that's being configured via cloud-init. With Ubuntu Bionic Beaver, this creates a netplan file in /etc/netplan/50-cloud-init.yaml that contains nameserver addresses. ...
0
votes
2answers
4k views

mapping values are not allowed in this context

# Let NetworkManager manage all devices on this system network: version: 2 renderer: NetworkManager wifis: wlan0: dhcp4:no dhcp6:no addresses: [10.10.10.1/24] gateway4: 10.10....
0
votes
0answers
452 views

netplan reports error on Ubuntu 18.04 server

This is my configuration: network: version: 2 renderer: networkd ethernets: ethMac: dhcp4: no dhcp6: no addresses: [192.168.1.3/24] gateway4: 192.168.1.1 ...
0
votes
1answer
2k views

Network problem in Ubuntu 18.04.1 Server

I just installed Ubuntu 18.04 live server edition ,while installing I configured two ethernet and everything worked fine,after the first reboot I cannot ping any address or connect to any network ,I ...
0
votes
1answer
166 views

Configure Netplan for Apache CloudStack

I am following this tutorial on setting up CloudStack on Ubuntu 18.04 LTS: https://rohityadav.cloud/blog/cloudstack-kvm/ there it says to configure your network like so: network: version: 2 ...
0
votes
1answer
2k views

How do I configure my network interface in netplan so that ppp can use it?

I have a new machine which I'm setting up as my LAN router using the 18.04 server release, to provide DHCP and bind services to my LAN, firewalling, NAT'ing, internet access etc. It has 2 ethernet ...