Table of Contents
1. Introduction...................................................................................................................................... 1-1
Overview ...........................................................................................................................................1-2
Software Specifications........................................................................................................................1-2
Software Components .........................................................................................................................1-3
2. Software Configuration ..................................................................................................................... 2-1
Starting from a VGA Console................................................................................................................2-2
Connecting from a Telnet Console......................................................................................................... 2-3
Connecting from an SSH Console..........................................................................................................2-4
Windows Users ...........................................................................................................................2-4
Linux Users ................................................................................................................................2-4
Adjusting the System Time .................................................................................................................. 2-5
Setting the Time Manually ............................................................................................................2-5
NTP Client .................................................................................................................................. 2-5
Updating the Time Automatically ................................................................................................... 2-6
Enabling and Disabling Daemons ..........................................................................................................2-7
Setting the Run-Level..........................................................................................................................2-9
Cron—Daemon for Executing Scheduled Commands.............................................................................. 2-10
Inserting a USB Storage Device into the Computer ............................................................................... 2-11
Inserting a CompactFlash Card into the Computer ................................................................................ 2-12
Checking the Linux Version ................................................................................................................ 2-12
APT—Installing and Removing Packages .............................................................................................. 2-13
3. Managing Communications ............................................................................................................... 3-1
Changing the Network Settings ............................................................................................................ 3-2
Changing the “interfaces” Configuration File ................................................................................... 3-2
Adjusting IP Addresses with “ifconfig” ............................................................................................3-3
Configuring Multiple LAN Ports for Expansion Modules ......................................................................3-3
Configuring Multiple Serial Ports for Expansion Modules ...................................................................3-5
Serial Port Operation Mode ..................................................................................................................3-6
Telnet/FTP Server ...............................................................................................................................3-7
DNS Client ......................................................................................................................................... 3-8
Apache Web Server.............................................................................................................................3-9
Default Homepage.......................................................................................................................3-9
Disabling the CGI Function ......................................................................................................... 3-10
Saving Web Pages to a USB Storage Device.................................................................................. 3-10
IPTABLES ........................................................................................................................................ 3-12
IPTABLES Hierarchy ................................................................................................................... 3-13
IPTABLES Modules ..................................................................................................................... 3-13
Observe and Erase Chain Rules ................................................................................................... 3-14
Define Policy for Chain Rules....................................................................................................... 3-15
Append or Delete Rules .............................................................................................................. 3-15
NAT (Network Address Translation)..................................................................................................... 3-16
NAT Example ............................................................................................................................ 3-16
Enabling NAT at Bootup.............................................................................................................. 3-17
PPP (Point to Point Protocol)............................................................................................................... 3-18
Connecting to a PPP Server over a Simple Dial-up Connection......................................................... 3-18
Connecting to a PPP Server over a Hard-wired Link........................................................................ 3-19
Checking the Connection ............................................................................................................ 3-19
Setting up a Machine for Incoming PPP Connections ...................................................................... 3-20
PPPoE.............................................................................................................................................. 3-21
NFS (Network File System) Client ....................................................................................................... 3-24
SNMP (Simple Network Management Protocol) ..................................................................................... 3-24
OpenVPN ......................................................................................................................................... 3-25
Ethernet Bridging for Private Networks on Different Subnets........................................................... 3-26
Ethernet Bridging for Private Networks on the Same Subnet ........................................................... 3-29
Routed IP ................................................................................................................................. 3-29
4. Programmer’s Guide ......................................................................................................................... 4-1
Device API ......................................................................................................................................... 4-2
RTC (Real Time Clock).........................................................................................................................4-2
UART ................................................................................................................................................4-2
Digital I/O..........................................................................................................................................4-4
Programmable LEDs.......................................................................................................................... 4-10
5. System Recovery............................................................................................................................... 5-1
Recovery Environment ........................................................................................................................5-2
Recovery Procedure ............................................................................................................................ 5-2