A union of curiosity and data science

Knowledgebase and brain dump of a database engineer


Network Settings in Ubuntu 19.10

Ways to check your network config: 

ifconfig

ip a



 

Wireless network settings can be configured  here: 
/usr/share/doc/netplan/examples/wireless.yaml

network:
  version: 2
  wifis:
    wlan0:
      dhcp4: yes
      dhcp6: no
      access-points:
        "<your network ESSID>":
          password: "<your wifi password>"

 

then run : 

sudo netplan try

 

Reference : https://unix.stackexchange.com/questions/550296/how-to-set-up-wifi-on-ubuntu-19-10-server-running-on-raspberry-pi-4
https://askubuntu.com/questions/883305/connecting-to-new-wifi-network

 

Wired Static IP can be set here: 
/etc/netplan/50-cloud-init.yaml

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
  ethernets:
    eth0:
        addresses:
        - 192.168.1.93/24
        dhcp4: false
        gateway4: 192.168.1.1
        nameservers:
            addresses:
            - 192.168.1.1
            search: []
  version: 2

 

sudo netplan apply



 

 

 

Add comment