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.
1,004
questions
0
votes
1
answer
901
views
netplan switch connection on renderer networkd
I have installed on rpi4 8Gb an ubuntu 20.04 server image for rpi4 64Bit
then I have installed ubuntu-desktop
I have problem on wifi and setup this bug
I have disable NetworkManager thinking the ...
1
vote
1
answer
6k
views
Ubuntu 20.04. Two network cards. Netplan. Can't configure in parallel
I have a problem. There is a server. It has two network cards installed.
Logically, one network card (enp4s0) for the Internet.
Second network card (enp2s5) for network users to access the server (...
0
votes
1
answer
897
views
Netplan, VLANs, and Nameservers (Where does all the info come from?)
I have netplan setup for one physical interface which in turn has a single vlan subinterface. Both the untagged interface and the vlan interface are statically addressed and have appropriate ...
1
vote
0
answers
568
views
How to add default vlan (1) to an existing interface?
In sort of a unique position here...maybe. I know how to add vlans to existing netplan configs when the default is say, 192.168.1.1 (untagged)...but what about the reverse?
My netplan config:
...
3
votes
1
answer
2k
views
Can't disable local addresses on network interfaces
My server:
ASRock B450M/ac (RealTek 8111/8168/8411)
Ryzen 5 3400G
64GB System Memory
Rosewill RC-411v3 (RealTek 8111/8168/8411)
My Computer:
Ryzen 7 2700X
32GB System Memory
MSI X470 Gaming Pro ...
1
vote
0
answers
575
views
Change static ip address in netplan problem
I use ubuntu server 20.04.
First i set static ip address in /etc/netplan/00-installer-config.yaml for the enp2s0 interface. Apply the changes good and i use the server for a cuple of weeks.
The ip ...
1
vote
2
answers
3k
views
How can I set a static ip on a fresh installation of ubuntu 20.04 on my raspberry pi?
I have just installed Ubuntu 20.04 64-bit server on raspberry pi. I want to provide a static ip to it.
I'm thinking of adding a configuration file under /etc/netplan/ (following these examples), but ...
0
votes
1
answer
2k
views
How do I configure the plan yaml file to send the hostname to the dhcp server?
I'm moving from raspian to ubuntu. On raspian, the dhcpcd.conf file could contain the line:
hostname "foobar"
which would send "foobar" to the dhcp server as the hostname. Very ...
0
votes
1
answer
1k
views
VLAN / Netplan / Ubuntu / configuration for static IPs creates additional dynamic IPs
I setup a ubuntu 20.04 as a server of IOT, multimedia, ... My Network is separated in different VLANS to control where the IOT devices are allowed to talk with.
The Network itself is managed with ...
4
votes
2
answers
16k
views
Failed to start netplan-wpa-wlan0.sevice: Unit netplan-wpa-wlan0.service not found
Setting up my rasbperry pi to work as my personal production testing machine.
I've installed ubuntu server 20.04.1 LTS (RPI 3/4) 64bit and desperately trying to setup a wireless connection on it.
...
0
votes
1
answer
897
views
Can't figure out DNS configuration for Static IP on Groovy
I just set up Groovy server on a Pi4 and the configuration seems to be completely different than what I'm used to ... ex: resolv.conf is no longer involved in DNS config.
I followed instructions that ...
1
vote
1
answer
6k
views
Ubuntu 20.04 KVM, netplan with bonding, vlan and bridges
I am preparing migration of an UBUNTU 16.04.7 server with 5 NIC's to 20.04.
My testing server has 4 NIC's: 2 onboard and 2 as Intel Pro NIC. Configured in 00-installer-config.yaml. The first NIC is ...
1
vote
0
answers
156
views
Neptlan secondary IP addresse Ubuntu 20.04
I have to give my computer two IP addresses one to connect to the internet and one to reach other systems with pre-configuration IP addresses which i can‘t reach with my first IP address (different ...
0
votes
0
answers
1k
views
static IPs and netplan
I am trying to create static IP addresses in Ubuntu. I have studied posts, etc. and see that this info is /etc/network/interfaces. I noticed that the ethernet name, for instance is not consistent:
...
0
votes
2
answers
257
views
netplan 3 interfaces 2 vlans
I need 3 IPs on my server (ubuntu 20).
my netplan configuration look like
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: yes
vlans:
eno2:
id: 200
...
0
votes
1
answer
1k
views
Netplan bond fails using WIFI and Ethernet on rpi4 [closed]
I don't know if this might be a bug, so I'll start asking in here :)
I'm running Debian on a RPI4 with Netplan controlling my network and both WIFI and Ethernet are working fine. But I'm running into ...
0
votes
0
answers
176
views
set-name deactivates the interface
I have the following interface config (just a snippet):
eth5:
match:
macaddress: MAC ADDRESSS
optional: true
dhcp-identifier: mac
dhcp4: true
and it works. Yet ...
1
vote
0
answers
3k
views
Netplan: How to give a specific NIC a specific name and IP Address
OK so here is the setup:
The DHCP server assigns specific MAC addresses their IPs. The machine in question has mutliple NICs and their interfaces are named eth0-5. BTW only one NIC is connected, the ...
1
vote
1
answer
228
views
Ubuntu 19.10 network problem with public IP - connects but cannot send anything (SYN_RECV) [closed]
I'm a linux newbie trying to setup a public IP address on ubuntu 19.10.
My netplan file looks like this:
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: ...
0
votes
1
answer
117
views
Ubuntu under proxmox with plesk installed, can't get to receive traffic from two interfaces at same time
I have plesk installed in a ubuntu vm under proxmox on ovh. I have an issue where I would like to have another ip available on plesk to users can use the other ip too. I've added correctly but it ...
1
vote
1
answer
2k
views
Netplan with bonded NICs and VLANS and bridges not working
I have a netplan issue. Config is below. Bond seems to be working but I cannot connect to the network VLAN128 (br128) which is bridged on bond. The hardware and bonds worked before the server upgrade ...
4
votes
1
answer
4k
views
netplan how to set hostname via option 12
I run Ubuntu 20.04 based from the cloudimage...
so netplan has its 50-cloud-init.yaml which just says .. use dhcp
In the background it uses systemd-networkd as backoffice
But how can I advise ubuntu ...
0
votes
2
answers
4k
views
Netplan not detecting MII uplink down on a bonded network interface
Dealing with a weired issue where netplan is not detecting the uplink going down for one of it's primary slave and not selecting the other slave. I also tried setting up all parameters of mii-monitor-...
2
votes
0
answers
343
views
Netplan adding unwanted default route
I am having one Ubuntu 18.04 server with 2 NIC card. One is for Public network & another is for Private. Both have been assigned static IP Address via Netplan.
network:
version: 2
renderer: ...
1
vote
1
answer
3k
views
Ubuntu Server 20.04 - How to connect Wi-Fi on Raspberry Pi 3 Model A+
Can't get the Wi-Fi work on Ubuntu Server 20.04.1, installed to Raspberry Pi 3 Model A+.
All ways that I use before and googled now, not work.
First, I tried method that worked in 18.04 and 19.10:
...
2
votes
3
answers
25k
views
Cannot connect to LAN internet in Ubuntu 20.04
I just migrated from Ubuntu 18.04 to Ubuntu 20.04. After days of struggle from drivers incompatibility, I thought everything works well until I realized my computer cannot connect to the LAN internet.
...
0
votes
1
answer
393
views
I want to modify the network card name in ubuntu20.04 and add a virtual network card, What is wrong?
my goal:
1: Rename the network card “ens33” to “mangment_interface”.
2: Add a virtual network card named “provider_interface”.
How can I modify the code in the yaml file?
May be useful:
/etc/netplan/...
0
votes
2
answers
983
views
netplan with two physical interfaces and two vlans assign wrong vlan for traffic to internet
I have the following configuration:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: yes
dhcp4-overrides:
...
2
votes
1
answer
5k
views
Can't execute `netplan apply` command in Ubuntu 20.04 LTS
The command netplan apply returns some errors when I execute it as root user.
root@szyf1272:/etc/netplan# netplan apply
System has not been booted with systemd as init system (PID 1). Can't operate.
...
4
votes
2
answers
7k
views
OVSIntPort with Netplan
I'm looking the way to deal with OVSIntPort and netplan. I just want to configure the address, MTU and leave the other OVS things with ovs-vsctl which will be saved on OVSDB. Since Network Manager ...
0
votes
1
answer
15k
views
Netplan inconsistent indentation Ubuntu 20.04 server
I am having an inconsistent indentation problem in a netplan configuration. I would like, if possible, someone to explain to me where I'm going wrong.
Thank you.
The error is:
/etc/netplan/50-cloud-...
0
votes
1
answer
154
views
Route specific IPs to secondary ethernet network inside Virtual Machine
I have a Ubuntu 20.04 VM running on a Windows 10 machine. The Windows machine is connected to the company I work for via a VPN.
On the VM configuration I created 2 networks, one using NAT mode and ...
0
votes
1
answer
1k
views
Ubuntu 20.04 after setting static IP, apt update and SSL stopped working
I ws running mu Ubuntu server 20.04 (command line only) for few weeks with IP 192.168.1.5, unaware that it was dynamic. Today the IP changed to 192.168.1.6. I decided to change it to static with this ...
0
votes
1
answer
1k
views
Netplan apply fails on udevadm settle during 20.04 autoinstaller
During execution of the network section of the new Subiquity server autoinstaller it fails with a non-zero return code on netplan apply, which in turn runs udevadm settle -t 0 over and over again ...
0
votes
1
answer
745
views
Multiple interfaces, each with their own IPv6 address
I have a simple machine that has multiple IPv6 addresses routed to it. If I put these addresses in the netplan ethernet.eth0.addresses section, I confirmed that I can reach the machine from each of ...
1
vote
3
answers
14k
views
how to use Ubuntu 18.04 (netplan) with a VLan
I have a Netgear switch and a Unifi Seurity gateway, which together allow me to seperate my network into different vlans. For the case in point I have servers on VLAN 10.
With other hardware I have i....
0
votes
2
answers
887
views
How can I restart a specificed interface instead of restart all interface?
I have a server which OS is Ubuntu 18.04.03 configured four IP addresses on four different interfaces. Now there is a interface I need to restart, and I can not interfere with other three interfaces. ...
1
vote
1
answer
308
views
Sporadic DNS Issues Ubuntu 18 Headless
I'm seeing sporadic errors related to DNS when I attempt to update or install SW:
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/bionic/InRelease System error resolving 'archive....
2
votes
0
answers
1k
views
netplan doesn't support loopback routes eg: ip route add local default dev lo table 100
I need to route everything with mark 1 to loopback address. With
ip rule add fwmark 1 table 100
and
ip route add local default dev lo table 100
It works fine. But I want to make it permanent with ...
2
votes
1
answer
2k
views
Netplan did not automatically connect to network
I installed Ubuntu 18.04.4 for Raspberry Pi 4 with a network-config file that describes my Wi-Fi networks. This file was automatically copied to /etc/netplan/50-cloud-init.yaml.
However, the RPi did ...
5
votes
1
answer
13k
views
ubuntu server 20.04 wifi via netplan doesn't work
I'm not skilled in Linux, but I'm able to follow the guides. yet, it doesn't work for me.
I ran this to get the wifi interface name:
ls /sys/class/net
I got the name. I configured the netplan yaml in ...
1
vote
1
answer
117
views
How to make port forwarding work from two routers via their own network?
I have a computer that has connected to two routers via their internal network.
I have forwarded port 80 to my computer on both routers.
RouterA:80 -> 10.0.0.10:80 works.
RouterB:80 -> 192.168.1....
0
votes
1
answer
2k
views
How do I configure the ndots option in /etc/resolv.conf from netplan?
I have netplan managing a simple bridge and have DNS served with BIND from the same server, it's all working perfectly well except for relative domain resolution.
host -t A foo outputs:
foo.example....
1
vote
1
answer
2k
views
Can I enable dhcp4 on all interfaces globally without knowing the interface names with netplan and networkd?
Can I enable DHCP4on all interfaces globally without knowing the interface names with netplan?
I might add any USB connected ethernet NIC, and I just want any of them to get the network config via ...
0
votes
1
answer
379
views
On Samba DCs running on Ubuntu Server 20.04, is DNS resolution handled by by the netplan config or by resolv.conf?
Apologies if this might be a silly question.
I'm reading that best practice when having two DCs in a domain is to point their DNS addresses at each other and also at themselves. So:
DC1 nameservers = ...
0
votes
0
answers
2k
views
50-cloud-init.yaml don't apply at boot
i have a ubuntu 18.04 server machine with 2 eth ports. Eth1 have a static ip then eth2 could be in 3 different config: dhcp-static-bridge (with eth1).
I made a script that starts at every boot and ...
0
votes
1
answer
162
views
How to translate routing commands into netplan rules?
I have two network interface in my linux pc. One is eth0, another is eth1. here is netplan yaml file :
network:
version: 2
renderer: NetworkManager
ethernets:
eth0:
addresses: [192.168.20.3/24]
...
2
votes
0
answers
885
views
Online account can't be added
I wanted to add my work calendar to my home system running Ubuntu 20.04 with Gnome and I get a message indicating there is "no internet connection - connect to set up new online accounts". I'...
5
votes
1
answer
17k
views
A start job is running for wait for network to be configured. Ubuntu server 20.04
After reading this post, I've followed this answer.
But , when I edit the /etc/netplan/01-netcfg.yaml, it was blank. So I create that file and add optional: true. After sudo netplan apply, It turns ...
4
votes
1
answer
12k
views
Ubuntu 18.04 netplan create bridge from wifi to ethernet
I am running ubuntu 18.04 and do not have much experience with networking. This ubuntu server runs on our robot and is supposed to act as a wireless to lan bridge for the rest of the wired modules on ...