Home ServerNetworking

Setting up network

List network interfaces

ip link

Create Netplan

sudo vim /etc/netplan/01-netcfg.yaml

The interface names need to match the same as seen in the output of ip link

network:
  version: 2
  ethernets:
    eno1:
      dhcp4: true
      addresses:
        - 192.168.50.223/24
      nameservers:
        addresses: [8.8.8.8, 1.1.1.1]
  wifis:
    wlp58s0:
      access-points:
        "Your_SSID":
          password: "Your_WiFi_Password"
      dhcp4: true
      addresses:
        - 192.168.50.215/24
      nameservers:
        addresses: [8.8.8.8, 1.1.1.1]

Test the configuration

sudo netplan try

Apply the Netplan

sudo netplan apply

Test the connection

ping -c 4 google.com

Show machine IP addresses

ip a