Notice: Radxa Wiki is no longer maintained and content is for reference only. Please visit the latest Radxa Documentation site:
docs.radxa.com
Difference between revisions of "RockpiS/network-management"
< RockpiS
(Created page with "{{rockpiS_header}} {{Languages|rockpiS/dev/usbnet}} ROCK Pi S > ROCK Pi S Network Management This guide describes how to...") |
|||
| Line 8: | Line 8: | ||
=== Introduction === | === Introduction === | ||
| + | Rockpis static address settings.First, install some dependency packages | ||
| + | sudo apt-get install netplan.io | ||
| + | Create the'''01-netcfg.yaml''' file in the folder /etc/netplan.If there is no netplan folder, you need to create. | ||
| + | sudo mkdir /etc/netplan | ||
| + | sudo touch /etc/netplan/01-netcfg.yaml | ||
| + | Add the following to the file '''01-netcfg.yaml''' | ||
| + | rock@rockpis:/etc/netplan$ cat 01-netcfg.yaml | ||
| + | network: | ||
| + | version: 2 | ||
| + | renderer: networkd | ||
| + | ethernets: | ||
| + | eth0: | ||
| + | addresses: | ||
| + | - 192.168.2.135/24 | ||
| + | gateway4: 192.168.2.1 | ||
| + | nameservers: | ||
| + | search: [mydomain, otherdomain] | ||
| + | addresses: [192.168.2.1, 255.255.255.0] | ||
| + | Execute the following command for the configuration to take effect | ||
| + | sudo netplan apply | ||
| + | then reboot,IP address is what you set. | ||
Revision as of 07:53, 7 May 2020
ROCK Pi S > ROCK Pi S Network Management
This guide describes how to manage the network on ROCK Pi S.
Introduction
Rockpis static address settings.First, install some dependency packages
sudo apt-get install netplan.io
Create the01-netcfg.yaml file in the folder /etc/netplan.If there is no netplan folder, you need to create.
sudo mkdir /etc/netplan sudo touch /etc/netplan/01-netcfg.yaml
Add the following to the file 01-netcfg.yaml
rock@rockpis:/etc/netplan$ cat 01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 192.168.2.135/24
gateway4: 192.168.2.1
nameservers:
search: [mydomain, otherdomain]
addresses: [192.168.2.1, 255.255.255.0]
Execute the following command for the configuration to take effect
sudo netplan apply
then reboot,IP address is what you set.
Troubleshooting
- Refer Troubleshooting page
- Post your issue on the forum: https://forum.radxa.com/c/rockpiS
