https://blog.hkwon.me/ubuntu-18-04-netplan/ 참조
-
Network interface 확인
$ ifconfig -a
-
NetPlan을 통한 static IP 설정
$ vi /etc/netplan/50-cloud-init.yaml
address
,gateway4
,nameservers/addresses
(dns 서버) 정보를 변경-
설정 적용
$ sudo netplan apply
PREVIOUSEtc