Manual Netplan configuration

Updated by Bryan Jones

Scope

These are notes for Bryan

Netplan config

  1. Run the command sudo -s

  2. You will be prompted for the system password. Type the root the password and press enter.

  3. Run the command cd /etc/netplan

  4. Run the command ls -a

  5. 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.

  6. Run the command nano netplan-file-name. Using the default netplan file the command is nano 00-installer-config.yaml.

  7. 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
  8. Edit the network interface names to fit your network

  9. Edit the ip addresses and gateway to fit your network

  10. Copy the file into your netplan file

  11. Press crtl+x and then enter to exit nano.

  12. Press the y and enter to confirm you want to save and exit.

  13. Run the command netplan try

  14. If there are no error accept the output

  15. Run the command ip route sh table all

  16. Review the network table set appropriately.


How did we do?