Manual Netplan configuration
Scope
These are notes for Bryan
Netplan config
-
Run the command
sudo -s
-
You will be prompted for the system password. Type the root the password and press enter.
-
Run the command
cd /etc/netplan
-
Run the command
ls -a
-
Review the list of files and select the one for the running network config. On a new system this will be
00-installer-config.yaml
. -
Run the command
nano
netplan-file-name
. Using the default netplan file the command isnano 00-installer-config.yaml
. -
Copy paste the netplan file from below into a text editor
network:
ethernets:
eno1:
addresses:
- 172.16.1.169/16
nameservers:
addresses: [1.1.1.1, 8.8.8.8]
routes:
- to: default
via: 172.16.0.5
eno2:
addresses:
- 10.0.0.2/25
nameservers:
addresses: [1.1.1.1, 8.8.8.8]
routes:
- to: default
via: 10.0.0.6
table: 2
routing-policy:
- from: 10.0.0.2
table: 2
enp1s0:
addresses:
- 10.0.0.250/25
nameservers:
addresses: [1.1.1.1, 8.8.8.8]
routes:
- to: default
via: 10.0.0.251
table: 3
routing-policy:
- from: 10.0.0.250
table: 3
version: 2
-
Edit the network interface names to fit your network
-
Edit the ip addresses and gateway to fit your network
-
Copy the file into your netplan file
-
Press crtl+x and then enter to exit nano.
-
Press the y and enter to confirm you want to save and exit.
-
Run the command
netplan try
-
If there are no error accept the output
-
Run the command
ip route sh table all
-
Review the network table set appropriately.