Sample Header Ad - 728x90

Need help to configure netplan for two NICs with static IPs on separate networks

0 votes
3 answers
6803 views
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 separate backline network using a static IP address. 172.10.1.0/24 [eno1np0:172.1.1.10] [eno2np1:192.168.1.10] 192.168.1.0/24 public-router server_NIC_1 server_NIC_2 backline-router I've been doing network config with /etc/network/interfaces and ifconfig for years, and am stumped by netplan configs. I'm reading docs, and looking at examples and doing trial and error with no success. Here are the contents of /etc/netplan/00-installer-config.yaml: # This is the network config written by 'subiquity' network: ethernets: eno1np0: addresses: - 172.10.1.10/24 gateway4: 172.10.1.1 nameservers: addresses: - 172.10.1.32 - 172.10.1.33 search: - mycompany.com eno2np1: addresses: - 192.168.1.10/24 gateway4: 192.168.1.1 version: 2 Any thoughts on what I'm doing wrong? - John
Asked by John (11 rep)
Feb 10, 2021, 09:41 PM
Last activity: Apr 10, 2025, 04:05 AM