Questions tagged [netplan]
The netplan tag has no usage guidance.
79
questions
0
votes
0
answers
20
views
Can't add secondary gateway for secondary interface in Ubuntu 22.04
I have two interfaces and both of them have a public IP address. One of them (eth0) is primary and the other one (eth1) is secondary. I'm trying to setup it through netplan + iproute2. When I was on ...
0
votes
1
answer
26
views
Respond on the same interface + netplan
I'm unable to send response packets via the "right" interface when switching from ip route to netplan.
The setup:
server - two interfaces
eth1, vlan 101, 10.0.1.2/24, default route, 10.0.1.1 ...
1
vote
1
answer
66
views
iperf3 with Netplan VRFs
Hi I have 2 Ubuntu 22 machines with 3-3 different VRFs configured through netplan.
When I do a ping -I <source-interface> <destination-IP> everything is working fine, ICMP traffic passing ...
1
vote
0
answers
13
views
Netplan gives usb error
There is output of netplan apply:
usb usb2-port3: disabled by hub (EMI?), re-enabling...
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: BMDA stat 0x64
ata1.00: failed command: READ ...
0
votes
0
answers
15
views
Migrate from Ubuntu 16.04.7 to 22.04.2 / 2 IP's / 2 NIC's same Subenet / Same Gateway
I need to migrate an application from an Ubuntu Server 16.04.7 to 22.04.2. The hosted service requires two IP addresses, one for each of the two NICs. The default section with the nexthop info from ...
-1
votes
2
answers
158
views
How do I use yq to change dns severs in a yaml?
Here is my yaml file:
network:
ethernets:
ens160:
addresses:
- 10.200.2.148/22
gateway4: 10.200.0.1
nameservers:
addresses:
- 1.1.1.1
- 2.2.2.2
...
0
votes
1
answer
643
views
netplan does not assign static ip to the eth0
I am configuring a PC network with netplan and the following configuration:
only one ethernet device with MAC address 48:b0:2d:d3:d1:c4, and an USB-to-ethernet adapter.
I need the ethernet device (...
0
votes
0
answers
99
views
Bridge interface has the same MAC as one of the interfaces and thus doesn't work on it
I've moved system ssd from one PC to another. It has 2 network adapters. For some strange reason bridge works with one of them(enp4s0, even though it is listed as DOWN) but not with another one (...
1
vote
0
answers
654
views
Configure netplan to add routing policy automatically with DHCP interfaces
I have a fleet of devices using Ubuntu 22.04 and netplan, which have two interfaces (wired and wireless), both receiving IP addresses from DHCP. Due to the usage pattern of these devices, pretty often ...
0
votes
0
answers
78
views
Why does having a USB to Ethernet Adapter plugged in prevent primary adapter from receiving DHCP address?
I am using Ubuntu 18.04.6 on a Jetson Nano
On boot, I'm trying to have 2 network adapters configured like so:
eth0: DHCP 10.120.0.0/24
eth1: Static set to 192.168.1.10 (USB to Ethernet Adapter)
...
0
votes
1
answer
391
views
Netplan: 2 *primary* IPs in a subnet/VLAN on a single server
My application needs 2 primary IPs in a subnet/VLAN on a single server, which is obviously impossible when putting them on a single interface as one of them always becomes secondary. May I have a ...
0
votes
0
answers
190
views
converting /etc/network/interfaces network config syntax to netplan
Trying to do some network configuration after upgrading to Ubuntu 22.04 (from 16.04) and am a bit confused with the syntax.. I'm a total noob! I've googled a lot but still not able to find what I'm ...
1
vote
2
answers
169
views
Xen DomO Has Network But DomU Does Not
My server lost power last night so was abruptly shut down. Bringing it back up this morning my xen dom0 can connect to network, but my domU cannot. Tried full reboots of Dom0 and DomU. Only DomU on ...
1
vote
0
answers
1k
views
nmcli shows disconnected but network is working, many other doubts
This is ubuntu 20.04.
I am trying to prep it for VM hosting and I have 4 onboard eth ports and 6 more on PCI cards. But I am new to NM / nmcli and having hard time to figure this out.
nmcli shows ...
1
vote
1
answer
2k
views
Netplan apply warns "gateway4 has been deprecated but .yaml has no gateway4 line
I've seen a couple of other posts about the 'gateway4 has been deprecated' warning that some get when entering sudo netplan apply. My problem is slightly different: I get that warning even though ...
1
vote
0
answers
306
views
Ubuntu 22.04 network freezing
I'm in a bit of a pickle here.
I have a bunch of Ubuntu 22.04 VMs, hosted on multiple ESXi servers.
When I try to apply netplan using netplan apply, system networking freezes and no packets are sent (...
0
votes
0
answers
717
views
Unable to make any changes to NetPlan without dropping connection
This recently just started happening. I run a hosting company, and adding /32s to our interface is something common so users can have dedicated IPs for their game servers. We've always done this with ...
0
votes
0
answers
3k
views
How to solve "gateway4 has been deprecated" error when using 'netplan'?
I tried to generate a static IP address using netplan in Ubuntu jammy. When I type in
sudo netplan apply
this was the result
** (generate:41329): WARNING **: 16:53:17.169: `gateway4` has been ...
0
votes
0
answers
302
views
how to set default interface with the same metric?
I have two interfaces configured on Ubuntu 20 Server with netplan:
network:
ethernets:
enp2s0:
dhcp4: true
dhcp4-overrides:
route-metric: 100
optional: true
ignore-...
3
votes
1
answer
2k
views
netplan - how to set up a bridge with LAN and AP?
I'm trying to set up a bridge device consisting of a LAN interface and WLAN interface in AP mode.
Internet is provided by the LAN interface; other devices will connect to WLAN interface to connect to ...
0
votes
0
answers
338
views
static route between 2 private interfaces using netplan
2 virtual machines
first vm has two private lan:
172.16.0.2
192.168.100.2
second vm has two private lan:
192.168.100.4
192.168.102.4
using netplan how can i redirect traffic from vm1 192.168.100.2 ...
0
votes
2
answers
39
views
Linux system have different files/folders than the ones specified on google
Why does my Linux system have different files/folders than the ones specified on google? A no. of times I do not find the exact file or folder on my Ubuntu 20.04 Linux system command line when I ...
0
votes
1
answer
326
views
ping of address fails
Running on Ubuntu Ubuntu 22.04.1 shortly after an upgrade from 20.04 the command
ping 8.8.8.8
fails and reports 100% packet loss.
What tests would be diagnostic for the cause of this unexpected ...
1
vote
0
answers
388
views
How do I use netplan to link my lan port with my wan port?
This is part of a project to setup my linux machine with 2 nics as a router. The “routes” key in the below mentioned yaml configuration file is what I think I need to set in the yaml file. What ...
2
votes
0
answers
85
views
How can I configure a static IP with Netplan?
My understanding is that Netplan is the future for replacing network manager. So my question is how it looks a netplan configuration file for IP static.
thanks
2
votes
0
answers
673
views
Raspberry Pi bridge eth0\eth1
I have a Raspberry Pi and a device/sensor which connects to the Pi via eth1. Eth0 is connected to my router, giving access to the internet.
I'd like to bridge my eth0/eth1, so that traffic from the ...
1
vote
1
answer
2k
views
Switching from networking to netplan
I am switching from Ubuntu to Debian, but - as I can only access the VM via ssh - I very much miss the netplan try feature. Whenever I mess up the /etc/network/interfaces, I am out and need help from ...
1
vote
1
answer
2k
views
Raspberry Pi - Route not working when using "to: default" with netplan
I have installed Netplan on Raspberry Pi running "Raspberry Pi OS Lite", but while configuring static IP I encountered an issue.
This is the configuration I'm trying to apply, saved under /...
1
vote
0
answers
1k
views
How to Setup Bridged Routing with QEMU-KVM and Netplan in Ubuntu Server 20?
Very new stack exchange user here, so apologies in advance if I am breaking protocol in any way. Also I am still somewhat of a linux and routing novice so forgive my ignorance.
The basic problem is ...
0
votes
1
answer
235
views
How to add blackhole route with NetPlan on Ubuntu 20+
I need advice on adding a blackhole route with a localhost interface managed by Netplan.io.
My configuration that doesn't work:
network:
version: 2
ethernet:
lo:
match:
...
0
votes
1
answer
955
views
Using ethtool with ubuntu 20.04
I am new to using Ubuntu so appologies if some of the information is in complete or missing.
I have installed Ubuntu 20.04 on 2 systems which both have SPF ports, for some reason they are not auto ...
40
votes
1
answer
148k
views
netplan generate: `gateway4` has been deprecated, use default routes instead
When using netplan generate I kept on getting an error message:
gateway4 has been deprecated, use default routes instead.
For static IP address assignments in netplan, I've always used the structure:...
0
votes
0
answers
2k
views
netplan not configuring network
I'm trying to configure a static IP on a freshly installed, fleshly upgraded Ubuntu 20.04.03 system.
This is my /etc/netplan/00-installer-config.yaml:
network:
ethernets:
enp4s0:
dhcp4: ...
0
votes
1
answer
73
views
How to set static IP in Ubuntu Server 20.04.3 but get DNS servers IPs automatically?
I have Ubuntu Server installation with DHCP turned on and I get DNS servers IPs automatically from my ISP.
If I want to set my IP as static I need to edit /etc/netplan/*.yaml, but without DHCP I ...
0
votes
0
answers
945
views
connect: Network unreachable - Ubuntu 18.04
sorry for the possibly dumb question but I just can't find a solution specific to my issue. I'm a linux newbie trying to manage a VPS server and I'm in trouble. I just restarted my VPS and now my ...
1
vote
1
answer
290
views
Setting up static IP for sensor ethernet connection, ubuntu 20.04
I need to set up an ethernet connection to a LIDAR, the steps to do so are:
Without the sensor connected to PC
sudo ip addr add 10.5.5.1/24 dev enp12s0
where enp12s0 is the name of my computers ...
1
vote
2
answers
546
views
Understanding Netplan IP address notation
I have some questions about Netplan configuration and couldn't find any information about that:
I've seen that in order to indicate IP address you have to use the keyword addresses.
This happens when ...
1
vote
0
answers
284
views
Netplan: give IPv6 priority over IPv4
On a dual-stack workstation (single interface, Ubuntu 18.04), I'd like IPv6 to be chosen first, before IPv4.
I guess that means essentially to have domains being resolved first by DNS6, and then by ...
2
votes
0
answers
742
views
Netplan does not clean old routes when changing route configuration
I have a netplan configuration file:
network:
version: 2
renderer: networkd
ethernets:
eth0:
routes:
- to: 192.168.202.0/24
via: 192.168.201.98
Note: addresses are ...
0
votes
1
answer
1k
views
Wireless network interface won't come up
The wireless connection of my device (OS Ubuntu 20.04) won't activate.
This is the state before
$ ip a sh dev wlp1s0
4: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue ...
0
votes
1
answer
6k
views
How can I bring down the interface in the netplan configuration?
I have an Ubuntu server 18.04 and simple netplan configuration (see below):
---
network:
ethernets:
ens1:
dhcp4: false
addresses:
- "192.168.99.1/24"
ens2:
...
0
votes
2
answers
3k
views
Need help to configure netplan for two NICs with static IPs on separate networks
I've got a new server with a fresh Ubuntu 20.04 LTS install. I've got one interface connected to our main corporate network with a static IP address, and now need to connect a second interface to a ...
0
votes
1
answer
219
views
Ubuntu Server: After Trying to Set Email Server Using Postfix, Ping 8.8.8.8 Only Gives Destination Host Unreachable
This morning the connection and all the things were working fine, until I following some online tutorial, installed Postfix and changed /etc/hostname and /etc/hosts. Now ping to the local router: 198....
1
vote
0
answers
4k
views
Ubuntu 18.04 netplan.io "unknown key" error
I have Ubuntu 20.04 and my netplan configuration in /etc/netplan/10-my-config.yaml looks like this:
network:
version: 2
renderer: NetworkManager
ethernets:
eth0:
dhcp4: true
...
1
vote
2
answers
19k
views
UBUNTU 20.04 - Netplan is no longer present
After running a PURGE on the system, NETPLAN is no longer present on the HD. So from terminal invoking the command netplan apply I get netplan: command not found. Naturally the network functionality ...
0
votes
0
answers
2k
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:
...
3
votes
1
answer
6k
views
Ubuntu 20.04.1 LTS Server doesn't connect to WiFi using `netplan`
I have a laptop (no Ethernet, WiFi only) with freshly installed Ubuntu Server 20.04.1 [x64]. Trying to use netplan to connect to the home WiFi, but it doesn't connect.
What I'm doing:
With ip addr ...
2
votes
0
answers
200
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$ ...
2
votes
1
answer
2k
views
using netplan to create a gateway
I am trying to use netplan to set up a gateway. Here are some details of what I have set up:
I'm running 20.04
I have 5 NICs (enp5s0, enp4s0f1, enp4s0f0, enp3s0f1, enp3s0f0)
The enp4* and enp3* ...
0
votes
1
answer
221
views
Setting static ip causes network hangs
I am running into a problem after setting static IP on my linux systems (Ubuntu and Raspbian).
If i set static ip, i experience 5-10 second initial hangs when interacting with it by SSH or http after ...