Ubuntu-Server 20.04에 WiFi 설치하기



  Environment
    Device : ONDA V80Plus
      CPU: Intel Z3800
      RAM : 2G
      WiFi Interface : wlan0
    OS : Ubuntu-Server 20.04
    Host : test(192.168.101.99/24)
    AP
      SSID : test
      PW : testtest



1. WPA프로그램 설치

$ sudo apt install wpasupplicant -y

2. WiFi 설정


$ sudo cp /usr/share/doc/netplan/examples/wireless.yaml /etc/netplan/99_config.yaml
$ sudo nano /etc/netplan/99_config.yaml
설정 변경
network:
  version: 2
  renderer: networkd
  wifis:
    wlp2s0b1:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.0.99/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [192.168.0.1, 8.8.8.8]
      access-points:
        "network_ssid_name":
          password: "**********"
==>
network:
  version: 2
  renderer: networkd
  wifis:
    wlan0:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.101.99/24]
      gateway4: 192.168.101.1
      nameservers:
        addresses: [192.168.0.210, 8.8.8.8]
      access-points:
        "test":
          password: "testtest"
$ sudo netplan apply