watonomous.github.io

  1. Electrical Division
  2. Electrical Division Home
  3. Sensor Interfacing Group
  4. Sensor Networking

[ Electrical Division : Network Configuration ]

Created by [ Rowan Dempster] on Dec 27, 2019

Networking issues with out sensors are a common occurrence and is annoying for people with little network knowledge to debug. We would like to have most of the setup streamlined to minimize manual setup and debugging.

At the very least, the Rugged's interfaces require specific IP addresses in order to receive sensor data. Currently, people like to use the Network Manager GUI, but I strongly recommend against using it because nobody knows how to use it properly, it's free for anyone to configure, and there's no need to use it.

There are 2 ways to go about doing a proper setup:

  1. Use Network Configuration to set interfaces on bootup.
  2. Version controlled shell scripts, invoked manually, or from bashrc, or as part of some other start up.

Network Configuration

To configure the Rugged's Ethernet interfaces with the desired configurations, edit /etc/network/interfaces to have the following stanzas. The interfaces are started (up) on boot, and are configured with the specified static addresses.

auto enp4s0f0
iface enp4s0f0 inet static
    address 192.168.3.1/24
    mtu 9100

auto enp4s0f1
iface enp4s0f1 inet static 
   address 169.254.0.19/24

Version Controlled Scripting

This solution would be as easy as writing a script with the bare minimum commands:

ifconfig enp4s0f0 192.168.3.1/24
ifconfig enp4s0f0 mtu 9100
ifconfig enp4s0f1 169.254.0.19/24

Document generated by Confluence on Nov 28, 2021 22:40

Atlassian