Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "RockpiS/network-management"

(Introduction)
Line 10: Line 10:
 
Rockpis static address settings.First, install some dependency packages
 
Rockpis static address settings.First, install some dependency packages
 
     sudo apt-get install netplan.io
 
     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.
+
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 mkdir /etc/netplan
 
     sudo touch /etc/netplan/01-netcfg.yaml
 
     sudo touch /etc/netplan/01-netcfg.yaml
Line 30: Line 30:
 
     sudo netplan apply
 
     sudo netplan apply
 
then reboot,IP address is what you set.
 
then reboot,IP address is what you set.
 
  
 
=== Troubleshooting ===
 
=== Troubleshooting ===

Revision as of 07:54, 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 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.

Troubleshooting