06-06-2018, 01:41 AM
If your purpose is to use "Static IP Addresses" on "bionic-lxde-rock64-0.6.44-239-arm64.img",
it will be helpful to refer to the following.
"CONFIGURE STATIC IP ADDRESSES ON UBUNTU 18.04 LTS SERVER"
https://websiteforstudents.com/configure...8-04-beta/
"Netplan configuration examples"
https://netplan.io/examples
The following is an example.
(*It is a yaml file, so be careful of indent)
And, there is no need to change other files. (ex. /etc/resolv.conf: symbolic-link)
it will be helpful to refer to the following.
"CONFIGURE STATIC IP ADDRESSES ON UBUNTU 18.04 LTS SERVER"
https://websiteforstudents.com/configure...8-04-beta/
"Netplan configuration examples"
https://netplan.io/examples
The following is an example.
(*It is a yaml file, so be careful of indent)
And, there is no need to change other files. (ex. /etc/resolv.conf: symbolic-link)
Code:
First login
# cp -a /etc/netplan/eth0.yaml /etc/netplan/eth0.yaml.bak
# cat /etc/netplan/eth0.yaml #// Confirm yaml file
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
# vi /etc/netplan/eth0.yaml #// Modify yaml file
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: false
addresses: [192.168.0.222/24]
gateway4: 192.168.0.254
nameservers:
addresses: [192.168.0.253, 192.168.0.254]
dhcp6: false
# netplan apply
# reboot