Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
9 views

how to set up nat and host only to access server from other computer virtual box

i want to create my own server on virtual box. i already add NAT and HOST-ONLY in virtual box. and this is ip from virtual box host-only Adapter ipv4 address = 192.168.56.1 netmask = 255.255.255.0 ...
0
votes
0answers
18 views

netplan + WiFi: link is not ready (18.04 Server)

I'm trying 18.04 Server with this fancy new netplan and can't get my WiFi to work. Doing it the old-fashioned way (e.g. configuring wpa_supplicant.service and using dhclient), everything is fine. But ...
0
votes
0answers
16 views

Error updating netplan.io

I'm using the last LTS but in the moment of use sudo apt-get update && sudo apt-get upgradeappears a message: The next package has retained: netplan.io Can you help me?
0
votes
0answers
13 views

Ubuntu 18.04 configure netplan with 2 network cards

I'm going to install ubuntu 18.04 on a small "server", not a real server, just a deliverer of multimedia files on demand, for a local network. I'm recollecting info because I still have not installed ...
1
vote
1answer
19 views

Netplan bond/bridge MTU setting not being honored on Bionic system

I'm running Netplan on an 18.04 system. I've been able to workout and convert most of my network configuration from my 16.04 systems to Netplan for 18.04, however I've run into an issue now when ...
1
vote
1answer
39 views

Ubuntu Server 18.04.1 - error in network definition when trying to set static IP with sudo netplan apply

I get this error when trying to set static IP with the command sudo netplan apply: Error in network definition //etc/netplan/50-cloud.init.yaml line 5 column 34: expected scalar Here's what my config ...
1
vote
1answer
33 views

Ubuntu 18.04, complex network configuration with Netplan

I have a system on which I am using Netplan to provide networking and am running into some issues with the configuration. When I boot the box, there is not networking. When I try to run netplan ...
0
votes
1answer
37 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 ...
1
vote
1answer
32 views

network doesn't work after adding second interface to netplan

I have a fresh install of Ubuntu 18.04.1 server. When I configure netplan with just my WAN address it starts up fine and I can ping out right away. However; when I add another address to my netplan ...
0
votes
1answer
81 views

18.04 - does it force netplan or can I still use resolved.conf?

I kept getting timeout errors on 18.04 Bionic Beaver, until I switched to OpenDNS using these commands sudo rm -f /etc/resolv.conf sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf sudo ...
0
votes
1answer
30 views

Ubuntu 18.04 route to the gateway

i just start to use the Ubuntu 18.04. When i try to set up the static IPs on that VM. i can't access the internet. But if i switch to use the gateway as the DHCP device, it works. Any idea what went ...
16
votes
5answers
29k views

Ubuntu 18.04: switch back to /etc/network/interfaces

Starting sometime around Ubuntu 18.04, the Ubuntu devs stopped using the classic /etc/init.d/networking and /etc/network/interfaces method of configuring the network and switched to some thing called ...
1
vote
2answers
5k views

Ubuntu 18.04 Network card with two IP addresses

I would like to learn how to setup my network card with two IP addresses I tried as bellow, but now network: version: 2 renderer: NetworkManager ethernets: enp0s3: dhcp4: no ...
0
votes
1answer
255 views

Wifi Problem After Setting Static IP in Ubuntu 18.04.01 LTS

I set a static IP by following the instructions on https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/netplan-how-to-configure-static-ip-address-in-ubuntu-18-04-using-netplan.html At first, it ...
0
votes
1answer
80 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
0answers
34 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 ...
0
votes
0answers
25 views

Yet Another Netplan Question

having trouble getting my head around netplan. I have 2 interfaces: ens18 & 19. ens18 is connected to my external network, ens19 connected internally. I want all internet bound traffic to go out ...
0
votes
1answer
74 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 ...
1
vote
0answers
55 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
0answers
34 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: ...
0
votes
1answer
48 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
61 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
62 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
52 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 ...
0
votes
1answer
65 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
27 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 ...
9
votes
7answers
9k views

Netplan does not apply at startup

I installed Ubuntu 17.10 with latest updates on a vmware virtual machine. Netplan does not configure my 2 ethernets. Here is my /etc/netplan/01-netcfg.yaml network: version: 2 renderer: networkd ...
1
vote
0answers
96 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 ...
1
vote
1answer
70 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 ...
0
votes
0answers
55 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/...
1
vote
0answers
59 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
0answers
72 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 ...
3
votes
1answer
5k views

How to enable netplan on ubuntu server upgraded from 16.04 to 18.04

I recently upgraded my 16.04 server system to 18.04, and then tried to use netplan to set up networking. Unfortunately, now my network settings are broken and I don't know which files belong to which ...
0
votes
1answer
151 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/...
0
votes
2answers
337 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-...
5
votes
3answers
10k views

Ubuntu 17.10+ disable netplan

According to: https://wiki.ubuntu.com/Netplan I can disable netplan by: "preseeding netcfg/do_not_use_netplan=true (adding it the the command-line when you boot the Ubuntu Server installation media" ...
4
votes
1answer
2k views

How to execute post-up scripts with netplan

My nic crashes in high bandwidth scenarios unless TSO offloading is disabled. It is a I217-LM (e1000e driver). I used to do this in interfaces: auto eno1 iface eno1 inet dhcp post-up /sbin/ethtool -...
0
votes
1answer
227 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
1answer
88 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 ...
1
vote
1answer
311 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 ...
0
votes
0answers
119 views

No network interfaces - Ubuntu Server 18.04

So, I had a fresh install of Ubuntu Server 18.04,everything worked fine till I reboot it today. Now there's no network interfaces except the loopback(lo). if I do 'ifconfig -a' I see my other network ...
0
votes
1answer
173 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
0answers
33 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
11 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 ...
1
vote
1answer
129 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
31 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 ...
0
votes
2answers
192 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
98 views

ubuntu 18.04: not releasing old IPs from DHCP

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 ...
1
vote
0answers
240 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
0answers
70 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 ...