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

RockpiS/network-management

< RockpiS
Revision as of 11:58, 7 May 2020 by Stephen (Talk | contribs)

    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