Configuring the BeagleBone Black s Ethernet Port for SSH Access

Similar documents
Enabling CDC-ETHER Connection for Skywire CAT1

Enabling CDC_ETHER Connection for Skywire GSM CAT1

Linux PPPd for LTE CAT M1 Verizon Skywire on Beaglebone Black. NimbeLink Corp Updated: July 2018

Skywire BeagleBone Black Cape User Manual

Configuring Linux pppd for a Skywire 4G LTE CAT1 Verizon Over UART

Configuring Linux pppd for a Skywire 4G LTE CAT3 Verizon

Configuring Linux pppd for a Skywire Global LTE CAT-M1 NL-SW-LTE-QBG96

Configuring Linux pppd for a Skywire 3G HSPA Modem

Linux PPPd for LTE CAT M1 Verizon Skywire on Raspberry Pi 3

Configuring Linux pppd for Skywire LTE NL-SW-LTE-S7xxx Modem Family

Skywire Development Kit Using the USB Qualcomm MSM Interface (QMI) Protocol in Linux

This document guides the user through: 1. Setting up and configuring networking for the BeagleBone black or green with the host.

Configuring Linux CDC_NCM for Skywire LTE CAT4 Modem

CIS Test 1- Practice - Fall 2011

GM8126 MAC DRIVER. User Guide Rev.: 1.0 Issue Date: December 2010

Let us ping! First we will learn the Hello World of a networked machine.

StampA5D3x/PortuxA5/PanelA5. Quickstart Guide

Wi-Fi Guide: Edimax USB Adapter on BBG

IP over IB Protocol. Introduction CHAPTER

Deploy Dual Stack CentOS 7 Instance in AWS

Quick Start Guide for BeagleBone Black. Table of Contents. by Brian Fraser Last update: Summer, 2015

How to configure VIVACOM 3g USB ( internet ) modem HUAWEI Mobile broadband E173 on Debian and Ubuntu GNU / Linux

FiberstoreOS IP Service Configuration Guide

Set Up PPPoE Between a Linux Client and an ATR Access Concentrator. What information you will find in this document

Configuring Skywire CAT 4 LTE and CAT 1 LTE Modems for MBIM Mode on Windows 8 and 10

Skywire LTE CAT4 Firmware Update

Access Server: User's and Developer's Guide <<< Previous Next >>>

WCDMA UGxx PPP Application Note

GMSplus Customer Connection Test Procedure

Network Configuration for Cisco UCS Director Baremetal Agent

Getting Started with PetaLinux SDK

Sirindhorn International Institute of Technology Thammasat University

FiberstoreOS. IP Service Configuration Guide

FSOS IP Service Configuration Guide

HP Services zl Module ngenius Integrated Agent Installation and Getting Started Guide

Quick guide for configuring a system with multiple IP-LINKs

Raspberry Pi 3 Starter Kit Hookup Guide

Interface Management

Sirindhorn International Institute of Technology Thammasat University

Linux. Computer networks - Administration 1DV202. fredag 30 mars 12

For personnal use only

Windows 7 & 8.1 Driver Installation For Skywire (mpcie) Mini PCI Express Adapter Board

AWS IoT Example Using the Raspberry Pi 3 and NimbeLink CAT M1 Skywire

These documents and software are covered under the terms and conditions of the fp Technologies, Inc. Program License Agreement

Basics of GNS3 and Cisco IOS

User module. Guest Configuration APPLICATION NOTE

PetaLinux SDK Guide to QEMU System Simulation

LAN Setup Reflection

LAN Setup Reflection. Ask yourself some questions: o Does your VM have the correct IP? o Are you able to ping some locations, internal and external?

Static Ip Address Problems Windows 7 Setup. Virtual >>>CLICK HERE<<<

SETTING UP SSH FOR YOUR PARALLELLA: A TUTORIAL FOR STUDENTS

TABLE OF CONTENTS. ACI Solutions Team by Tomas de Leon 2

How to Install a DHCP Server in Ubuntu and Debian

Using Juju with a Local Provider with KVM and LXC in Ubuntu LTS

RoadRunner 24AP(i+) Recovering Tool Instructions

FOTA Update Procedure for NL-SW-LTE-S7588-V

Configuring a Standalone VCL Environment using VMware Server 2.0

Blueprints. Quick Start Guide for installing and running KVM

NVIDIA Professional Application Center

VisibleThread - Server Configuration Help

UCS IPv6 Management Configuration Example

Accessing the Networking Stack

ELE409 SPRING2018 LAB0

Clustered Data ONTAP 8.3 Update 2, IPspaces. Self-paced Lab NETAPP UNIVERSITY. NetApp University - Do Not Distribute

Skywire BeagleBone Black Cape Data Sheet

Chapter 5 Network Layer

GE MDS, LLC. 175 Science Parkway, Rochester, NY USA Phone +1 (585) , FAX +1 (585) Web:

Contents. Cellular_Phone/USB_Modem_as_WAN_connection. English Deutsch Español Français Italiano??? Polski Português??????? Svenska???(????)????(??)?

rbox610 Series Robust Din-rail Fanless Embedded System Web Configuration and App Software User s Manual

XE2000/XE3000 IP-PBX: Getting Started Guide Package Contents

Using Shell Commands

Troubleshooting Guide for Skywire Modems

1. Conventions in this tutorial Introduction Check and change configuration settings as needed Start Digi ESP...

Internet Tool Practice. 이지민 장동현

Using USB Interface on Bitpipe

Skywire TCP Socket Examples NimbeLink Corp Published: April 2014

Renesas Koelsch Hardware Setup and Software Installation

Firmware Upgrade Procedure for NL-SW-LTE-SVZM20

Connecting CoovaAP 1.x with RADIUSdesk - Basic

EAN-Network Configuration

Newsreader virtual machines Technical Report NWR

CHAPTER 7 DEMONSTRATE THE PAN IN LINUX

Comodo Dome Data Protection Software Version 3.8

Hosting Applications Using Configuration Management Tools

New System Setup Guide

3 Connection, Shell Serial Connection over Console Port SSH Connection Internet Connection... 5

IPv6 LAB. Practical IPv6. Alvaro Vives 27 June 2017 Workshop on Open Source Solutions for the IoT

Lab - Connect to a Router for the First Time

Creating a Unifi Lab Network on your existing network

1. TABLE OF CONTENTS INTRODUCTION TECHNICAL SPECIFICATIONS INSTALLATION... 6

Lab I: Using tcpdump and Wireshark

Create Test Environment

RG-MACC_2.0 Installation Manual

Lab - Configure Wireless Router in Windows

Manually Change Default Gateway Centos Command Line Windows

MP01 Quick Start Guide

Lab 14 - Introduction to the PABLO Payload Autonomy Computer

ECE 4110 Internetwork Programming Lab 7: Configuring a Network Using RIP Routing Protocol. Prelab Questions

NGS IoT Bone (rev. MRF-1)

Different ways to use Kon-Boot

Transcription:

Configuring the BeagleBone Black s Ethernet Port for SSH Access NimbeLink Corp Updated: April 2016 PN 30112 rev 1 NimbeLink Corp. 2017. All rights reserved. 1

Table of Contents Table of Contents 2 1. Introduction 3 1.1 Orderable Part Numbers 3 1.2 Overview 3 1.3 Testing 3 2. BeagleBone Black Setup 4 2.1 Overview 4 2.2 Setup Static IP on BeagleBone Black 4 3. Workstation Setup 5 3.1 Setup Static IP Address on Your Workstation 5 4. Test SSH Connection 5 4.1 Connect Ethernet Cable 5 4.2 Power On BeagleBone Black 6 4.3 SSH Into Your BeagleBone Black 6 5. Example: PPP Connection using a Skywire NL-SW-LTE-TSVG 6 5.1 Overview 6 5.2 Establish SSH Connection to BeagleBone Black 6 5.3 Create the PPP Script File and PPP Chat File 7 5.4 Start The PPP Connection and Test 8 PN 30112 rev 1 NimbeLink Corp. 2017. All rights reserved. 2

1. Introduction 1.1 Orderable Part Numbers Orderable Device Description Carrier Network Type NL-AB-BBBC Skywire BeagleBone Black Cape Any Any 1.2 Overview While the BeagleBone Black comes with a serial access port via USB, it may be more convenient to use the Ethernet port for development. This enables more familiar access for developers who are used to using SSH, as well as enables the tools associated with an SSH connection to be used. This guide will set up the BeagleBone Black s Ethernet port with a static IP address, which will allow the user to access the BeagleBone Black via SSH. This guide also provides a working example of setting up a PPP connection using a Skywire LE910. This document assumes you want to connect your workstation directly to the BeagleBone Black with an Ethernet cable. NOTE: This procedure works only if you have your BeagleBone Black connected to your workstation when the BeagleBone Black boots. This procedure does not work if you unplug the ethernet from your BeagleBone Black after boot, or plug in the ethernet after boot. You will need to power cycle your BeagleBone Black with the Ethernet connection connected. 1.3 Testing This procedure was tested on the following OSs and hardware: Hardware BeagleBone Black Rev. 3 Operating Systems Debian 7.10 (Kernel 3.8.13-bone79) PN 30112 rev 1 NimbeLink Corp. 2017. All rights reserved. 3

2. BeagleBone Black Setup 2.1 Overview For many people, developing on Linux systems is much more convenient using SSH, rather than a USB/Serial connection. By setting up the Ethernet port with a static IP address, one can plug an Ethernet cable directly from their workstation into the BeagleBone Black, bypassing the USB-Serial port. The easiest way to setup SSH on the BeagleBone Black is to set a Static IP address on the Ethernet port. 2.2 Setup Static IP on BeagleBone Black To setup a static IP address on your BeagleBone Black, start your BeagleBone Black and login as root. Edit the file /etc/network/interfaces using your favorite editor (this application note uses nano ): # nano /etc/network/interfaces This is the configuration file for your BeagleBone Black. If you have settings related to eth0, comment them out with #. For example: # The primary network interface #auto eth0 #iface eth0 inet dhcp # Example to keep MAC address between reboots #hwaddress ether DE:AD:BE:EF:CA:FE Add the following lines: auto eth0 iface eth0 inet static address (your desired IP) netmask (your desired netmask) replacing (your desired IP address) and (your desired netmask) with your respective values. For example, if you would like to give your BeagleBone Black an IP address of 192.168.0.25: auto eth0 iface eth0 inet static address 192.168.0.25 netmask 255.255.255.0 PN 30112 rev 1 NimbeLink Corp. 2017. All rights reserved. 4

If your workstation has an internet connection using wireless or a different ethernet port, do not use the same network for the BeagleBone Black. For example, if your workstation has an IP address of 192.168.1.***, do not set your BeagleBone Black to be on the 192.168.1.*** network. Save and close the file, and shutdown your BeagleBone Black: # shutdown -h now Once the lights are off on the BeagleBone Black, unplug it from power and USB. 3. Workstation Setup 3.1 Setup Static IP Address on Your Workstation Setup your workstation s ethernet IP address to be on the same network as your BeagleBone Black from the last section. For example, if you set your BeagleBone Black s IP address to be: 192.168.0.25 set your IP address to be on the 192.168.0.*** network. For example, use: 192.168.0.30 Below are guides for setting a static IP address on Windows, OSX, and Linux: Note: Only set the values of IP Address or Route, and Subnet Mask or Netmask. Leave everything else blank. Note: You will need to have a dedicated Ethernet port available on your workstation. If you are currently connected to a personal or work network or internet connection, make sure that connection is on its own dedicated Ethernet port or a Wifi connection. Windows http://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/ OSX http://www.howtogeek.com/howto/22161/how-to-set-up-a-static-ip-in-mac-os-x/ Linux http://www.cyberciti.biz/faq/linux-configure-a-static-ip-address-tutorial/ 4. Test SSH Connection 4.1 Connect Ethernet Cable Once you have setup the static IP addresses on both your BeagleBone Black and workstation, connect an Ethernet cable between them. PN 30112 rev 1 NimbeLink Corp. 2017. All rights reserved. 5

4.2 Power On BeagleBone Black Plug your 5V power cable into your BeagleBone Black. 4.3 SSH Into Your BeagleBone Black Once your BeagleBone Black boots, SSH into it using a terminal program of your choice: OSX and Linux # ssh root@(beaglebone Black IP Address) For example, if your BeagleBone Black s IP address was set to 192.168.0.25 in Section 2, type: # ssh root@192.168.0.25 Windows Use PuTTY, TeraTerm, or similar to establish an SSH connection to your BeagleBone Black. Your workstation will SSH into your BeagleBone Black, and you can use this connection for development and transferring files. 5. Example: PPP Connection using a Skywire NL-SW-LTE-TSVG 5.1 Overview Now that you have a direct SSH connection to your BeagleBone Black, you can get data access to the BeagleBone Black using PPP. This example shows how to establish a PPP connection using a Skywire NL-SW-LTE-TSVG. Note: For specific PPP information, see the PPP Guide for your specific Skywire on NimbeLink.com. 5.2 Establish SSH Connection to BeagleBone Black Follow the guide above, and SSH into your BeagleBone Black. For this guide, the BeagleBone Black s IP is 192.168.0.25. Replace that IP with the IP that you set for your BeagleBone Black in Section 2.2: # ssh root@192.168.0.25 Debian GNU/Linux 7 BeagleBoard.org Debian Image 2015-11-12 Support/FAQ: http://elinux.org/beagleboard:beagleboneblack_debian PN 30112 rev 1 NimbeLink Corp. 2017. All rights reserved. 6

default username:password is [debian:temppwd] Last login: Thu Nov 12 19:02:09 2015 root@beaglebone:~# 5.3 Create the PPP Script File and PPP Chat File Create the PPP script file in /etc/ppp/peers/, using a text editor of your choice. This guide uses nano : root@beaglebone:~# nano /etc/ppp/peers/verizon Enter the following information into the file: /dev/ttyusb3 115200 connect "/usr/sbin/chat -v -f /etc/ppp/peers/verizon-chat" noauth defaultroute usepeerdns local debug updetach Save your file, and name it verizon if prompted. Next, create the PPP chat file in the same directory: root@beaglebone:~# nano /etc/ppp/peers/verizon-chat Enter the following information into the file: TIMEOUT 35 ECHO ON '' \ratz OK 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0' OK AT+CGDCONT=3,"IP","vzwinternet","0.0.0.0",0,0 OK ATD*99***3# CONNECT '' Note: The quotation marks at the beginning and end of the script file are two single-quote marks ( ), not one double-quotation mark ( ). Note: Replace vzwinternet with your APN. Save your file, and name it verizon-chat if prompted. PN 30112 rev 1 NimbeLink Corp. 2017. All rights reserved. 7

5.4 Start The PPP Connection and Test Now that your files have been created, you can start your PPP connection: root@beaglebone:~# pon verizon Towards the end of the script output, you should see the PPP protocol getting an IP address, similar to below: local IP address 100.104.24.9 remote IP address 10.64.64.64 primary DNS address 198.224.149.135 secondary DNS address 198.224.148.135 Once the script finishes running, you can test your PPP connection. First, enter: root@beaglebone:~# ifconfig and you should see your PPP connection, along with an IP address, something similar to below: ppp0 Link encap:point-to-point Protocol inet addr:100.104.24.9 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:30 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:2022 (1.9 KiB) TX bytes:1933 (1.8 KiB) Finally, you can ping an IP address to verify that you have data access. For instance, pinging 8.8.8.8 should return something similar to below: root@beaglebone:/etc/ppp/peers# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_req=1 ttl=43 time=277 ms 64 bytes from 8.8.8.8: icmp_req=2 ttl=43 time=89.5 ms 64 bytes from 8.8.8.8: icmp_req=3 ttl=43 time=58.6 ms 64 bytes from 8.8.8.8: icmp_req=4 ttl=43 time=200 ms ^C --- 8.8.8.8 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev = 58.676/156.659/277.946/87.663 ms You have now setup and tested your PPP connection over a direct SSH connection with your workstation. PN 30112 rev 1 NimbeLink Corp. 2017. All rights reserved. 8