Network Configuration

  1. Home
  2. Docs
  3. Colocation
  4. Network Configuration

Network Configuration

It is essential to test the accessibility of the IP address and ports before shipping the Pi. Since the ExaMesh team has no access to the Pi, incorrect configuration can only be corrected by swapping the SD card. Due to the manual effort involved, this process will incur additional fees.

Each Colocation Pi has a private IP address assigned by the booking process, which must be configured as a static address in the system. The procedure for Raspberry Pi OS is described in the official documentation.

The configuration in /etc/dhcpcd.conf of a Pi with the a Static-IP=, Netmask= (resp. /24) and Gateway-IP= would then look like this:

interface eth0
static ip_address=
static routers=
static domain_name_servers=

The nameserver IPs in the last line are arbitrary: ExaMesh does not operate its own DNS service, so public nameservers, such as those shown from Google, are used.

After configuration, it is essential to check them after Pi restart.
In this example, the following commands should provide the output shown:

[email protected]$ ip addr list
...: eth0: ...
    inet brd ...

[email protected]$ ip route
default via dev eth0 ...

TCP Ports

In addition to the IP, each Pi is assigned several TCP ports that are required for addressing from the Internet. Details of the whole process and the pros and cons can be found here. For example, a Pi might have public ports 9001 and 9002, which are forwarded to ports 22 and 6001 by the ExaMesh gateway. Port 9001 should be for SSH and port 9002 for an internal web service. The applications used are openssh and nginx:

Internet➔ forwards to ➔Pi
TCP Port: 9001
TCP Port: 22
TCP Port: 9002
TCP Port: 6001

OpenSSH uses port 22 by default, so no configuration is required at this point. However, the port can also be set explicitly in the configuration file:

[email protected]$  cat /etc/ssh/sshd_config
Port 22

A configuration is mandatory for nginx, since it normally uses HTTP port 80 (or 443 for HTTPS) as a web server. Here the listen directive must be set:

[email protected]$  cat /etc/nginx.conf
server {
    listen 6001;
ExaMesh Is a Member Of