V2406C Series Linux Software User's Manual
Total Page:16
File Type:pdf, Size:1020Kb
V2406C Series Linux Software User’s Manual Version 2.0, January 2021 www.moxa.com/product © 2021 Moxa Inc. All rights reserved. V2406C Series Linux Software User’s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice © 2021 Moxa Inc. All rights reserved. Trademarks The MOXA logo is a registered trademark of Moxa Inc. All other trademarks or registered marks in this manual belong to their respective manufacturers. Disclaimer Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa. Moxa provides this document as is, without warranty of any kind, either expressed or implied, including, but not limited to, its particular purpose. Moxa reserves the right to make improvements and/or changes to this manual, or to the products and/or the programs described in this manual, at any time. Information provided in this manual is intended to be accurate and reliable. However, Moxa assumes no responsibility for its use, or for any infringements on the rights of third parties that may result from its use. This product might include unintentional technical or typographical errors. Changes are periodically made to the information herein to correct such errors, and these changes are incorporated into new editions of the publication. Technical Support Contact Information www.moxa.com/support Moxa Americas Moxa China (Shanghai office) Toll-free: 1-888-669-2872 Toll-free: 800-820-5036 Tel: +1-714-528-6777 Tel: +86-21-5258-9955 Fax: +1-714-528-6778 Fax: +86-21-5258-5505 Moxa Europe Moxa Asia-Pacific Tel: +49-89-3 70 03 99-0 Tel: +886-2-8919-1230 Fax: +49-89-3 70 03 99-99 Fax: +886-2-8919-1231 Moxa India Tel: +91-80-4172-9088 Fax: +91-80-4132-1045 Table of Contents 1. Introduction ...................................................................................................................................... 1-1 Software Specifications........................................................................................................................ 1-2 Software Components ......................................................................................................................... 1-2 2. Software Configuration ..................................................................................................................... 2-1 Account Management .......................................................................................................................... 2-2 Setting Up a Desktop Environment........................................................................................................ 2-3 Starting From a VGA Console ............................................................................................................... 2-3 Connecting From an SSH Console ......................................................................................................... 2-4 Windows Users ........................................................................................................................... 2-5 Linux Users ................................................................................................................................ 2-6 Adjusting the System Time .................................................................................................................. 2-6 Setting the Time Manually ............................................................................................................ 2-6 NTP Client or system-timesyncd Service ......................................................................................... 2-6 Managing the Service Using the systemd Script............................................................................... 2-7 Cron—Daemon for Executing Scheduled Commands ................................................................................ 2-9 Installing a USB Storage Device ........................................................................................................... 2-9 APT—Installing and Removing Packages .............................................................................................. 2-11 3. Managing Communications ............................................................................................................... 3-1 Changing the interfaces Configuration File ............................................................................................. 3-2 Adjusting IP Addresses During Runtime .......................................................................................... 3-3 DNS Client ......................................................................................................................................... 3-3 /etc/hostname ............................................................................................................................ 3-3 /etc/resolv.conf ........................................................................................................................... 3-3 /etc/nsswitch.conf ....................................................................................................................... 3-4 Configuring Ethernet Bonding ............................................................................................................... 3-5 IPTABLES .......................................................................................................................................... 3-6 IPTABLES Hierarchy ..................................................................................................................... 3-7 IPTABLES Modules ....................................................................................................................... 3-7 Observing and Erasing Chain Rules ................................................................................................ 3-8 Defining the Policy for Chain Rules................................................................................................. 3-9 Appending or Deleting Rules ......................................................................................................... 3-9 Network Address Translation .............................................................................................................. 3-10 NAT Example ............................................................................................................................ 3-10 Enabling NAT at Bootup .............................................................................................................. 3-11 PPP (Point-to-point Protocol) .............................................................................................................. 3-12 Connecting to a PPP Server Over a Dial-up Connection ................................................................... 3-12 Connecting to a PPP Server Over a Hard-wired Link ....................................................................... 3-13 Checking the Connection ............................................................................................................ 3-13 Setting Up a Machine for Incoming PPP Connections ...................................................................... 3-14 PPPoE .............................................................................................................................................. 3-15 Network File System Client ................................................................................................................ 3-17 Simple Network Management Protocol ................................................................................................. 3-18 OpenVPN ......................................................................................................................................... 3-19 Installing OpenVPN .................................................................................................................... 3-19 Ethernet Bridging for Private Networks on Different Subnets ........................................................... 3-20 Ethernet Bridging for Private Networks on the Same Subnet ........................................................... 3-23 Routed IP ................................................................................................................................. 3-24 4. System Restore and Backup .............................................................................................................. 4-1 Restore Environment ........................................................................................................................... 4-2 Restoring the System From a USB Drive ................................................................................................ 4-2 Backing Up the System to a USB Drive ................................................................................................ 4-10 5. Advanced Configuration .................................................................................................................... 5-1 Checking the Linux Version .................................................................................................................. 5-2 Checking the Version .......................................................................................................................... 5-2 Device Suspend .................................................................................................................................