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
0 answers
117 views

Ubuntu 18 netplan auto connect to network, any interface name

I am using ubuntu 18.04 and I cant setup auto connection to network by wired connection without changing interface name in /etc/netplan/01-netcfg.yaml every time when I am changing pc. Could someone ...
user avatar
0 votes
1 answer
414 views

Networking: 4 Separate Subnets Default Route Consistency Warning?

Just installed Ubuntu and one of my network card ports does not work and has no ping to it's IP - eno2. Netplan as configured during install: # This is the network config written by 'subiquity' ...
user avatar
  • 71
0 votes
1 answer
520 views

How to connect Ubuntu 21.10 to tagged VLAN (netplan)

I have network VLAN: 4005 MTU: 1400 Subnet: 157.XX.XX.64/27 Gateway: 157.XX.XX.65 Netmask: 255.255.255.224 Broadcast: 157.XX.XX.95 I want to configure netplan Ubuntu 21.10 to IP 157....
user avatar
  • 105
2 votes
1 answer
5k views

Ubuntu Server Netplan - conflicting default route declarations for IPv4 - 4 different /24s on each port

I have a server with 2 network cards of 4 ports, but only one of them is used. Each port is connected to a L2 switch and configured for a different VLAN with 1 usable IP from a different /24 subnet - ...
user avatar
  • 71
0 votes
1 answer
113 views

Ubuntu 18.04 server unreachable after setting static IP

I've configured netplan to set static IP for a server on my local network. However, after sudo netstat apply server just becomes unreachable. When I check the router, I can see it listed with assigned ...
user avatar
  • 185
1 vote
0 answers
351 views

Active-backup bonding in netplan using cellural modem

I try to set up active-backup bonding in netplan with a modem (ppp0) as a backup. Ppp0 interface works correctly on its own and was created using network manager in line with the guide on official ...
user avatar
  • 11
0 votes
2 answers
658 views

netplan networkd no ipv4 from dhcp

I've been trying to have ubuntu server running on my MacBook Pro (15-inch, Late 2011) for the whole day, both 20.04 and 21.10, fighting with netplan and I cannot seem to be able to have ens9 (...
user avatar
  • 1
0 votes
0 answers
187 views

Ubuntu Server 20.04 2 Network Interfaces on same subnet

I have a Ubuntu Server setup running 20.04 which has two interfaces (enp88s0 and enp89s0). I have set the interfaces to have the following IP addresses 192.168.2.99 192.168.2.100 I wish to plug a ...
user avatar
0 votes
0 answers
123 views

Netplan: Setting DNS results in "Temporary failure in name resolution"

I have multiple VMs with static IPs configured over netplan. This works as expected, but when it comes to set the DNS it's not. My local DNS is 192.168.2.1. If I enter it and try to ping Google/...
user avatar
  • 1
0 votes
2 answers
101 views

ssh, samba, microserv and apache not working after IP change

I installed Ubuntu 20.04.1 LTS and under DHCP address 192.168.0.10 installed OpenSSH, LAMP, Samba, Webmin. I changed netplan to manual IP 192.168.0.10, and everything worked fine, but when I changed ...
user avatar
1 vote
0 answers
122 views

Issues in creating VLAN interface using netplan on ubuntu

I have been trying to create a vlan interface on my ubuntu VM which has one network adapter. I could see that the vlan link has been successfully created, but I don't see any traffic passing through. ...
user avatar
0 votes
0 answers
1k views

Ubuntu Server 20.04.3 LTS 00-installer-config.yaml or resolv.conf for DNS settings

So I'm freaking confused. I'm trying to specify local DNS servers for our domain. This Ubuntu Server 20.04.3 doesn't use the old interfaces file. I configured the yaml file for netplan, # This ...
user avatar
0 votes
2 answers
209 views

creating two net bridges on one phisical computer

I have two network cards on my computer. I want to create two net bridges with netplan to add this bridged networks to kernel based virtual machines (KVM). Both network cards are connected to the same ...
user avatar
  • 225
0 votes
0 answers
149 views

my network is unreachable

i'm using ubuntu 20.04 on a virtual machine and i have changed mi ip conf from dymanic to static, but i do not have network connection; the file 00-installer-config.yaml located at /etc/netplan was at ...
user avatar
0 votes
0 answers
93 views

Configuring VLAN QoS Mapping through netplan

I am trying to setup a VLAN via netplan with a specific QoS mapping so that I can prioritize traffic through that (virtual) interface. However, I cannot seem to find any way to do that given the ...
user avatar
  • 1
0 votes
1 answer
502 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
1 vote
0 answers
137 views

Physical interface won't go up when added to Open vSwitch bridge

Recently I came across this Ask Ubuntu post about adding physical interfaces to an Open vSwitch bridge. The answers from Lukas Maerdian and Denis helped me a lot, but I still have one problem. When I ...
user avatar
  • 31
0 votes
0 answers
212 views

Ubuntu Server 20.04 network config

I have Ubuntu Server 20.04 installed in virtual machine on my Windows Hyper-V host. I'd like it to get IP address from my Windows DHCP-server in local network But it doesn't work and I don't know why. ...
user avatar
0 votes
0 answers
484 views

Eth0 and Wifi both need the same gateway, same IPs

I have a laptop at home that I want to use as a server (Ubuntu 20.04.3 LTS). I want the IP to stay the same for both eth0 and wlan0 (reason: so that port forwarding which I have set up on the router ...
user avatar
0 votes
0 answers
30 views

Creating a restricted wifi ap with static ip addresses

What I am using: Raspberry Pi 4 Ubuntu 21.04 What I need: Ethernet with dhcp to connect to my lan. A wifi ap that is isolated from the ethernet. The ability to assign static ip addresses to devices ...
user avatar
1 vote
1 answer
169 views

Is it possible to share a wifi connection through ethernet while keeping the same DHCP server?

I need to add a Jetson Nano to a robot and I'd like to use a single wifi interface to communicate outside of the robot. My network setup should look like this: Server <--eth--> Router <--wlan-...
user avatar
0 votes
1 answer
312 views

DHCP address keeps getting generated with netplan and bonded interface

I have a bonded interface set up with netplan. Config is as follows: # This is the network config written by 'subiquity' network: bonds: bond0: addresses: [192.168.65.90/18] ...
user avatar
0 votes
0 answers
43 views

Wifi and Lan access point with netplan not working. v20.04

I'm trying to build a micro-network for some IoT wired and wireless devices using a Nuc server. So the NUC has one (or two) dedicated rj45 ports for it and the main wifi interface, and the main rj45 ...
user avatar
  • 121
0 votes
1 answer
309 views

sudo netplan try, error while loading

network: version: 2 ethernets: ens33: addresses: [128.100.1.1/8] gateway4: 192.168.0.1 nameservers: addresses: [8.8.8.8, 192.168.0.1] version: 2 root@main:/home/leaf# ...
user avatar
  • 1
0 votes
1 answer
158 views

Netplan static IP subnets - am I accidentally adding extra IPs?

I'm not sure if this is the right place to ask this so sorry if not. I've configured a machine running ubuntu server on my network to have two local static IPs like so: network: ethernets: ...
user avatar
0 votes
0 answers
97 views

Configuring loopback interface routes with NetworkManager

I have an Ubuntu 20.04 system. It has NetworkManager installed, with netplan's default renderer set NetworkManager. I would like to configure the system to enable multicast on the lo loopback ...
user avatar
  • 262
0 votes
1 answer
354 views

netplan apply and netplan try error

My server installation Ubuntu 20.04.3 LTS has the following error when I run sudo netplan try: An error occurred: 'NetplanApply' object has no attribute 'state' Reverting. Job for systemd-networkd....
user avatar
  • 3
0 votes
2 answers
743 views

Raspberrypi 21.10 Server static IP but boots with 2 IP (one from DHCP?)

Set up pi with a static IP (10.0.0.180/24) following https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi Raspberrypi4 -4 with 8g At boot it displays eth0 IP 10.0.0.180 eth0 IP 10.0....
user avatar
  • 11
0 votes
0 answers
68 views

Netplan config for ubuntu with two interfaces and two subnets, favoring one for web traffic

I have a server with two NICs running Ubuntu 20.04: NIC1: 192.168.1.51 - connected to ISP1-GATEWAY part of LAN1 NIC2: 192.168.100.51 - connected to ISP2-GATEWAY part of LAN2 I would like to have them ...
user avatar
1 vote
1 answer
259 views

Disable both IPv4 and IPv6 on a specific interface

Using Ubuntu 21.10, SoftEther docs recommend disabling IPv4 and IPv6 on one of the two Ethernet interfaces used for the local bridge network adapter. Here's my /etc/netplan/01-network-manager-all.yaml....
user avatar
1 vote
2 answers
256 views

Automatic network card configuration?

We have lots of different servers with different network cards, is there a way to have Ubuntu 20.04 automatically configure the network cards with DHCP? Right now we have to manually change the .yaml ...
user avatar
  • 11
0 votes
1 answer
129 views

Netplan Multiple NICS/VLANS

I'm running Ubuntu Server 20.04 and having issues configuring Netplan for 2 nics on 2 different subnets. I'm getting constant random disconnects. # This is the network config written by 'subiquity' ...
user avatar
  • 1
0 votes
0 answers
369 views

Can't change default connection in Network Manager

I know that ubuntu-server uses networkd by default but some features of gnome doesn't play well with it so I'm trying to replace with Network Manager. The problem is that Network Manager's default ...
user avatar
  • 1
2 votes
1 answer
225 views

Is it possible to use WPA3 with netplan?

I'm using Ubuntu 20.04.3 LTS and can't connect the wifi using WPA3; I've tried this in /etc/netplan/01-network.yaml: network: version: 2 renderer: networkd wifis: wlan0: dhcp4: true ...
user avatar
  • 288
0 votes
0 answers
165 views

Netplan config for either Static or DHCP depending on SSID connection

I have a server that will either connect to one of two wireless SSIDs. On the first, I need a static IP and on the second, I need a DHCP IP. I know that I can set both a static IP and DHCP to true on ...
user avatar
0 votes
1 answer
346 views

Ubuntu 20.04 - networking down after reboot - netplan config issue?

I have a server with a bonded interface. Here is the netplan file: # cat /etc/netplan/01-netcfg.yaml # BEGIN ANSIBLE MANAGED BLOCK network: version: 2 renderer: networkd ethernets: enp1s0f0: ...
user avatar
  • 1
0 votes
1 answer
651 views

Why can't I access the internet when using static ip in a vm? (Netplan)

I'm trying to configure a network like this using VMs: For this I have to configure a NatNetwork in virtualbox. Here is the configuration: As you can see DHCP support is unmarked. Now. I try to ...
user avatar
0 votes
0 answers
62 views

openvswitch: definition ens3f1 is not for us (backend 2)

When I start netplan --debug generate, then following message at then end of the output is shown: openvswitch: definition ens3f1 is not for us (backend 2) ens3f1: <BROADCAST,MULTICAST,UP,LOWER_UP&...
user avatar
0 votes
0 answers
50 views

Renaming Ethernet Adapters

I'm trying to rename 2 NICs using the /etc/netplan/01-network-manager-all.yaml file by modifying with Ubuntu text editor. Problem is it's a "read only" file and apparently I don't have the ...
user avatar
0 votes
1 answer
253 views

Netplan - Requesting help to properly manage routes in macvlan setup

I use docker with macvlan where each of my containers have their own L2 connectivity with MAC address and IP. I also need to guarantee that containers reach out the host and vice versa. I can achieve ...
user avatar
0 votes
0 answers
284 views

How to set up two wifi access-points on one wifi device on Ubuntu 20.04.3

So I want to set up Wi-Fi on the raspberry Ubuntu server, but I need to get it to connect to two access-points, one needs a static IP and the other one dhcp4. This is my network-config file that I ...
user avatar
  • 1
5 votes
3 answers
7k views

Ubuntu 21.10 - Netplan: object has no attribute 'state'

EDIT: So after about three hours of trying to get 'netplan try' to work, I tried 'netplan apply' and the setting worked. Yet, 'netplan try' still throws the same error. I am assuming that this is a ...
user avatar
0 votes
0 answers
38 views

How to prevent WiFi monitor mode reset after reboot?

I have successfully set my WiFi adapter to monitor mode using these three commands: sudo ip link set wlan0 down sudo iw wlan0 set monitor control sudo ip link set wlan0 up But it seems to be reset ...
user avatar
  • 342
0 votes
0 answers
119 views

Ubuntu 20.04 Networking - can't get and outbound and inbound connection at the same time?

I have a Ubuntu 20.04 VM that's had a solid connection for months. I recently changed my network subnet (from 192.168.7.x to 192.168.10.x). I made sure that netplan config has dhcp set to true, and ...
user avatar
  • 141
0 votes
1 answer
87 views

Howto deploy latest netplan main on 20.04 LTS?

Well, title says mostly all. I have a problem with netplan as it is distributed with current 20.04.3 (#102) and even #103 which is in proposed is not good enough. New "ignore-carrier" option ...
user avatar
0 votes
1 answer
51 views

convert ifupdown bridge config to netplan

How can I implement "iface br-mgmt:0" in netplan config file from the ifupdown config file? auto eth0 iface eth0 inet manual auto eth0.10 iface eth0.10 inet manual vlan-raw-device eth0 ...
user avatar
  • 1
0 votes
0 answers
243 views

how to set static IP address on ubuntu server? netplan apply command ignored

I've just installed ubuntu 20.04 on an arm64 machine. To set the static IP address I searched the web and found https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-20-04/. But my ...
user avatar
  • 1,277
0 votes
0 answers
57 views

Route inbound to outbound ip address netplan

I have configured my VPS to listen to multiple IP addresses (whole subnet, 255 addresses), for example: network: version: 2 renderer: networkd ethernets: ens3: addresses: - 15.16....
user avatar
  • 101
2 votes
1 answer
590 views

Ordering of Interface Configuration with systemd-networkd

I'm using Ubuntu 20.04, with systemd-networkd and Netplan. I have two physical interfaces (ens3 and ens4) which are configured by DHCP (with reservations, so I always get the same addresses). ...
user avatar
0 votes
0 answers
257 views

Netplan DNS disaster

I'm struggling to get netplan to work. (I thought I still wanted resolv.conf this does fix DNS but gets re-written on reboot.) Everything appears to be correct but I can't ping. $ sudo netplan --debug ...
user avatar
  • 1,623

1
2
3 4 5
16