Home

JetBox 8210 User Manual

image

Contents

1. JetBox 95304 clear Reset functions configure Configuration from vty interface copy Copy from one file to another debug Debugging functions see also undebug disable Turn off privileged mode command end End current mode and change to enable mode exit Exit current mode and down to previous mode list Print command List no Negate a command or set its defaults ping Send echo messages quit Exit current mode and down to previous show Show running system information ssh Open an ssh connection start shell Start UNIX shell telnet Open a telnet connection terminal Set terminal Line parameters traceroute Trace route to destination undebug Disable debugging functions see also debug write Write running configuration to memory network or terminal JetBox 95304 4 Display the current running config sh run etBox 9536 sh run sullding configuration Current configuration 1stname Router I password zebra enable password zebra interface dummy ipv6 nd suppress ra d 5 Enter config mode JetBox config terminal 6 Change hostname to KorenixRouter JetBox confg hostname KorenixRouter Korenix Network Feature 39 igure terminal JetBox 9530 contig hostname KorenixRouter a corenl Router config JetBox 9530 confia For all Zebra suppored command please refer htto www zebra org zebra Command Index html Command 20Index 4 18 Ser2net program name ser2net Description se
2. Master Network 192 168 2 0 IP address 192 168 2 11 Subnet mask 255 255 255 0 Default 192 168 2 1 vrrp_sync_group VG2 group VI WAN vi LAN vrrp_sync_group VG2 group VI WAN vi LAN vrrp_instance VI_WAN state MASTER interface wan virtual_router_id 151 priority 150 advert_int 1 vrrp_instance VI_WAN state BACKUP interface wan virtual_router_id 151 priority 100 advert_int 1 wu Network Feature Korenix authentication auth_type PASS auth pass 1111 virtual_ipaddress 192 168 3 1 24 brd 192 168 3 255 dev wan authentication auth_type PASS auth_pass 1111 virtual_ipaddress 192 168 3 1 24 brd 192 168 3 255 dev wan I I vrrp_instance VI_LAN state MASTER interface lan virtual_router_id 152 priority 150 advert_int 1 authentication auth_type PASS auth_pass 1111 virtual_ipaddress 192 168 2 1 24 brd 192 168 2 255 dev lan I Keyword Definition vrrp_instance VI_LAN state BACKUP interface lan virtual_router_id 152 priority 100 advert_int 1 authentication auth_type PASS auth_pass 1111 virtual_ipaddress 192 168 2 1 24 brd 192 168 2 255 dev lan I Type The linkbeat_use_polling keyword When device become unavailable both wan and lan port will stop send vrrp packet But if you Korenix Network Feature um need to monitor link status you will need to use linkbeat_use_polling keyword The following configuration tells Vi
3. Ob stay Up Onenn gt gt gt Enter the demand value default no no Korenix Network Feature DNS Please enter the IP address or your ISP s primary DNS Server gt gt gt Enter the secondary DNS server address here PASSWORD gt gt gt Please enter your PPPOE password Then use the pppoe start command to start dial to connect network 4 10 NFS program name mount Description A NFS client Usage mount t nfs o nolock NFS_Server_Address directory mount point Example A NFS server export it s root directory with IP address 192 168 1 10 want to mount to JetBox s mnt directory mount t nfs o nolock 192 168 1 10 root mnt NOTE E Read the following links for more information about setting up a NFS server e http nfs sourceforge net nfs howto e http nfs sourceforge net nfs howto ar01s04 html 4 11 E Mail program name sendmail Description A email client Usage sendmail w timeout U user P password X t to t to n s subject c charset server port from body attachment Options Ia Network Feature Korenix w timeout Set timeout on network operations U username Authenticate with specified username password P password t address Recipient s May be repeated Use openssl connection helper for secured servers Request delivery notification to sender S subject Subject c charset Assumed charset for body and subject utf 8 Example
4. media sdO can un mount the previous mounted directory NOTE E To be able to unmount a device you have to close all the open files in it Type sync can help commits all pending writes which can then be removed in a safe way Korenix System Feature CTE Chapter 4 Network Feature In this chapter we explain how to configure JetBox various communication functions 4 1 Telnet Service name telnetd Description A Telnet server Config files etc inetd conft Start file etc init d rcS Start command Stop command Support command Default Enabling the Telnet server The following example shows the default content of the file etc inetd conf The default is to enable the Telnet server Peer ee eres ecececececececececececerecececererececececerececerececececececererececececererecerecerererererererecerecececececececececececececerecececerecerererececerererererecereeererececereceeererecerececerecerererececeeererererer eres er eres erererecererereserecerererer er er er er tree cree er ererererererererererererererereretererer Disabling the Telnet server Disable the daemon by typing in front of the first character of the row to comment out the 4 2 sshd Service name Description A ssh server Config files etc sshd_config etc ssh_config etc ssh_host_dsa_key etc ssh_host_dsa_key pub etc ssh_host_key etc ssh_host_key pub etc ssh_host_rsa_key etc ssh_host_rsa_key pub Start file etc init d S50sshd Star
5. that means that standard in out will be used for the only input output and only one port should be specified in the config This way it can be used from inetd Control Port The control port provides a simple interface for controlling the ports and viewing their status To accomplish this it has the following commands showport lt TCP port gt Show information about a port If no port is given all ports are displayed showshortport lt TCP port gt Show information about a port each port on one line If no port is given all ports are displayed This can produce very wide output help Display a short list and summary of commands exit Disconnect from the control port version Display the version of this program monitor lt type gt lt tcp port gt Display all the input for a given port on the calling control port Only one direction may be monitored at a time The type field may be tcp or term and specifies whether to monitor data from the TCP port or from the serial port Note that data monitoring is best effort if the controller port cannot keep up the data will be silently dropped A controller may only monitor one thing and a port may only be monitored by one controller monitor stop Stop the current monitor fo Appendix Korenix disconnect lt tcp port gt Disconnect the tcp connection on the port setporttimeout lt tcp port gt lt timeout gt Set the amount of time in seconds before the port connecti
6. 4 6p1 openssl SSL SSL support package 0 9 7m openvpn OpenVPN VPN tool 2 0 9 openswan IPsec lpsec for Linux 2 4 9 pppd PPP PPP protocol for Linux 2 4 4 rp pppoe PPPoE PPPOE support package 3 8 pptp linux PPTP PPTP protocol for Linux 1 7 0 Korenix Appendix Item Protocol Notes JetBox 9500 proftpd FTP FTP daemon 1 3 1 samba SMB Windows network support package 3 0 28a goahead HTTP Web server sendmail email client bind DN DNS server 2tp L2TP L2TP protocol for Linux mrouted DVMRP DVMRP multicast routing protocol quagga OSPFv1 0 2 0 unicast routing protocol RIPv1 0 2 0 ng BGP4 ISIS 7 6 Busybox command busybox V1 8 2 Linux command collection File Manager a Appendix Korenix pwd display now file directly df list now file system space mkdir make new directory rmdir delete directory Korenix Appendix e Koll Cole i text editor a dump file context WM C C t t sleep sleep seconds echo Echo string awk Pattern scanning and processing language diff compare two files or directories sed perform text transformations on a file or input from a pipeline xargs execute a specified command on every item from standard input Archival Utilities unzip Extract files from ZIP archives System logging klogd Utility which intercepts and logs all messages from the Linux kernel and sends to the syslogd logger Utility to send arbitrary text messages to the system log e Appendix K
7. Feature on 5 4 Poecfg program name poecfg Description Get Set POE Device Configuration poecfg g PORT_NUM get PoE status poecfg s PORT_NUM 0 1 set PoE OFF ON poecfg S Save Config poecfg r Read Config poecfg c Clean Config Example e Get POE status on port 1 without PD on port 1 poecfg g 1 PoE Port 1 control status is On power delivery status is Off e Get POE status on port 4 PD on port 4 and power is 48 voltage poecfg g 4 PoE Port 4 control status is On power delivery status is On Voltage 46 2V Current 74mA Power 3 41W e Turn off POE on port 1 poectg s 1 0 Set PoE Port 1 to Off poectg g 1 PoE Port 1 control status is Off power delivery status is Off au Korenix Feature Korenix Chapter 6 Programmer s Guide 6 1 Toolchain Introduction To ensure that an application will be able to run correctly when installed on Jetbox you must ensure that it is compiled and linked to the same libraries that will be present on the Jetbox9500 The cross compiling toolchain that comes with Jetbox9500 contains a suite of Korenix compilers and other tools as well as the libraries and headers that are necessary to compile applications for Jetbox9500 The build environment must be running Linux and install with the Jetbox9500 Toolchain We have confirmed that the following Linux distributions can be used to install the tool chain Fedora Core 9 Centos 5 Source Codes Linux Native Cross compi
8. Le WII Gees Si ur ge Ze Ge TE SE RX packets 33 errors 0 agropped D ove Ty E a urba m m LU 4 Wi A Pac kets 1073 eee ae dropped collisions 0 txqu eue le RX bytes 3318 3 2 Ki Link encap Ethernet BROADCAST MULTICAST a RX eg kets 0 errors 0 TX packets 6 e collisions 0 RX 3 prr a 1500 AOU euel iii de e Delete a vlan interface vconfig rem lan 2 e Show all vian interface vconfig show HWaddr 00 12 Metric 1 dri TO OF D Ei ab D oye bes CN ri CN E m PPrProrsib dropped H 0YE D e TFF ca DBA Do i i R i el D SS D L B EC Korenix Feature Korenix Un Tag Port 1 2 3 4 When you add a VLAN interface you can only see it by typing ifconfig a It will display with lan 2 To enable it issue ifconfig lan 2 up 5 3 Diocfg program name diocfg Description Get Set DIO Configuration Usage diocfg g PORT_NUM get DIO status diocfg s PORT_NUM 0 1 set DO OFF ON diocfg T PORT_NUM 0 1 set DIO Type Output Input diocfg S Save Config diocfg r Read Config diocfg c Clean Config Example e Get status and type on port 7 diocfg g 7 Get data of DI7 to High e Set DIO type to DO on port 7 diocfg T 70 Set Port 7 to Ouput e Set DO 7 to High diocfg s 7 1 Set data of DO7 to High NOTE E The DIO number range is 0 7 The DIO types are configurable Default all DIO type are set with DI Korenix Korenix
9. and sections from object Lists symbols from object files armeb linux objdump Displays information about object files files usually debugging information oe Programmer s Guide Korenix 6 2 Device API ioctl Name ioctl control device Library Standard C Library libc Ic Synopsis include lt sys ioctl h gt int ioctl nt d unsigned long request Description The toctl system call manipulates the underlying device parameters of special files In particular many operating characteristics of character special files e g terminals may be controlled with toctl requests The argument d must be an open file descriptor The third argument to ioctlI is traditionally named char argp Most uses of ioctl however require the third argument to be a caddr_tor an nt An toctl request has encoded in it whether the argument is an in argument or out argument and the size of the argument argp in bytes Macros and defines used in specifying an ioctl request are located in the file lt sys ioctl h gt Return Values If an error has occurred a value of 1 is returned and errno is set to indicate the error Please use the desktop Linux s man page for detailed documentation man ioctl 6 3 RTC The device node is located at dev rtcO Jetbox supports Linux standard simple RTC control You must include lt linux rtc h gt Korenix Programmer s Guide ca 1 Function RTC
10. auth_pass 1111 virtual_ipaddress 192 168 2 1 24 brd ue Network Feature Korenix 192 168 2 255 dev lan 192 168 2 255 dev lan fy NOTE e The default port for linkbeat_use_polling is port 1 e keepalived currently not support Virtual MAC address 4 21 PTPD Service name ptpd Sanne Usage ptpd OPTION C run in command line non daemon mode send stats to FILE send output to syslog set multicast time to live display stats display stats in csv format record data about sync packets in a file do not reset the clock if off by more than one second do not reset the clock if offset is more than NUMBER nanoseconds do not accept delay values of more than NUMBER nanoseconds do not adjust the system clock a NUMBER NUMBER specify clock servo P and I attenuations w NUMBER specify one way delay filter stiffness b NAME bind PTP to network interface NAME u ADDRESS also send uni cast to ADDRESS 1 NUMBER NUMBER specify inbound outbound latency in nsec o NUMBER specify current UTC offset Korenix Network Feature le NUMBER specify epoch NUMBER specify half epoch NUMBER specify sync interval in 2 NUMBER sec NUMBER specify max number of foreign master records run as slave only make this a preferred clock NUMBER specify system clock stratum i NAME specify system clock identifier NUMBER specify system clock allen variance specify PTP subdomain name not related to IP or DNS k NUMBER NUM
11. command ps to list all processes currently running a ll x uw ben wf IO Je dun d ep rt OH in oi ebe GR CD o CD CO ra tdi command en ftdi respond en kpsmoused kmmed jtts2 gcd_mtd3 fusrysbinycroand 994 root IRQ Enable 995 root ixp4e a eth time 999 root ixp4eo eth time 1680 root EthMac Recovery 1005 aot fusr sbinfinetd fetc sinetd cont fus ry sbinfdioctg 1 00 ixp4oe wan fsbinfudevd d 1056 root crypto 1057 root crypto ret 1105 root fusr sbin sshd 1110 root fusr sbinfcmd server2 1175 root proftpd accepting connections 1264 root ixp4ea Lan 1277 root zebra u root g root 1 varfrun fzebra d 1280 root osptd u root g root 1 var runfospfd d 265 root sh pa a P D 5 E f E Lu E f f CD Ao daemons status The etc init d directory is the repository for all available init scripts The etc rc lt n gt d only contains links to the etc init d COM13 115200baud Tera Term T File Edit Setup Control Window Help ls l fetc init d T WXrT XT X 1 503 KE 1365 Oct 3 2606 TWXIr xr 1 563 ER 936 Oct 19 66 57 TWXIr xr 1 503 5 372 0c 9 07 07 T TWXT XT 1 503 52 16089 Oct 19 06 59 PWwxXr xXr 1 503 KE 864 Oct 19 06 35 TWXIr xr 1 503 EF 1153 Oc 9 06 23 TWXIr xr 1 503 EF 1121 Oc 9 07 21 T TWXT XT 1 503 321 591 Ji 26 2010 1 1 1 1 1 1 1 PwxXr xr 503 52 340 Fe 6 2009 PWxXr xr 503 521 486 Fe 6
12. program changes the clock gradually whereas ntpdate sets the clock no matter how great the difference between a device s current clock setting and the correct time 3 5 1 NTP Client The JetBox has a built in NTP Network Time Protocol client that is used to initialize a time request to a remote NTP server Use ntpdate to update the system time ntpdate Iie shee me Goe hwclock W m COM13 115200baud Tera Term YT Fie Edit Setop Control Window Help ntpdate time stdtime gov tw 15 Nov 06 02 41 ntpdate 1335 step time hwclock w date UTC 2016 11 15 06 62 51 Nov 15 06 02 56 crond 959 time disparity of server 220 130 158 52 offset 2164914 665108 se 26082 minutes detected NTP client request Visit http www ntp org for more information about NTP and NTP server addresses om System Feature Korenix NOTE Before using the NTP client utility check your IP and DNS settings to make sure that an Internet connection is available 3 5 2 NTP Server NTP is configured by the etc ntp conf file Here is a simple example See a cence EE driftfile ete GNOY Wile a lst ie The server option specifies which servers are to be used with one server listed on each line The driftfile option specifies which file is used to store the system clock s frequency offset The ntpd program uses this to automatically compensate for the clock s natural drift allowing it to maintain a reasonably correct setting eve
13. sendmail U sender korenix com P mypassword t receiver korenix com s A subject smtp korenix com sender korenix com home mail content 4 12 SNMP Service name snmpd Description SNMP Daemon Config files etc snmp snmpd conf Start command Stop command Support command snmpget snmpset Default down Net SNMP is a suite of applications used to implement SNMP v1 SNMP v2c and SNMP v3 using both IPv4 and IPv6 It supports RFC 1213 MIB II For more information read the following links about NET SNMP htto www net snmp org wiki index ohp Tutorials 4 13 OpenVPN Service name openvpn Description A full featured SSL VPN Config files etc openvpn etc openvpn easy rsa Start file etc init d openvpn Korenix Network Feature o Start command etc init d openvpn start Stop command etc init d openvpn stop Default down OpenVPN is a full featured SSL VPN which implements OSI layer 2 or 3 secure network extension using the industry standard SSL TLS protocol supports flexible client authentication methods based on certificates smart cards and or username password credentials and allows user or group specific access control policies using firewall rules applied to the VPN virtual interface For more information download the step by step how to from Korenix website htto www korenixembedded com support faqs von 4 14 OpenSwan Service name ipsec Description A full featured IPSec VPN Config fi
14. to add the DNS server address to the file Ask your network administrator which DNS server address you should use The DNS server s IP address is specified with the nameserver command For example add the following line to etc resolv conf if the DNS server s IP address is 168 95 1 1 File Edit Setup Control Window Help Figure 4 5 nameserver 4 5 Web Server Service name webs Description web server for embedded system Config files The GoAhead WebServer is an open standard web server that is compliant with all necessary standards to be an effective embedded web server The GoAhead web server s main start file is etc init d S7O0webs with the default homepage located at web home htm The web server default listening port is 8080 The default Web homepage is in the following directory web oe Network Feature Korenix Before you modify the homepage use a browser such as Microsoft Internet Explore or Mozilla Firefox from your PC to test if the goahead Web Server is working Type the LAN IP address in the browser s address box to open the homepage http 192 168 10 1 83080 home htm Because the web directory is not writable you can either mount a memory to it For more information read the following links about GoAhead web server http www goahead com products webserver specifications aspx NOTE E Start from firmware v1 3 you can simply change the web directory with the following co
15. usb 2 1 configuration 1 chosen from 1 choice scs12 SCSI emulation for USB Mass Storage devices iscS1 2 0 0 0 Direct Access SanDisk U3 Cruzer Micro 2 15 PQ D ANSI SCSI device sdc 2006673 512 byte hdwr sectors 1027 MB sdc Write Protect is off assuming drive cache write through gef rdert d ana 1027 ME c Write Protect is off assuming drive cache write through sdcl 0 0 0 Attached scsi removable disk sde 0 0 0 Attached scs1 generic sg type 0 usb storage device scan status JetBox9500 support auto mount external storage just use mount command to check the mount point mount rootfs on type rootfs rw fdev root on type squashfs ro dev mtdblock3 on etc type jffs2 rw proc on proc type proc rw devpts on dev pts type devpts rw wone on dev shm type tmpfs rw gt on tmp type tmpfs rw ne on home type tmpfs rw ne on var type tmpfs rw ne on proc bus usb type usbfs rw ne on usr etc type tmpfs rw wone on root type tmpfs rw tmpfs on media type tmpfs rw sys on sys type sysfs rw udev on dev type ramfs rw dev sdcl on media sdd type vfat rw nodev noatime fmask 0 2 dmask 002 codepage cp437 Loch 1508859 1 oad System Feature Korenix T As the picture shows the usb storage has been mounted on media sdO You can access your data in the media sdO folder To un mount the usb storage execute umount lt mount path gt For example issue umount
16. 192 168 10 0 lface wan inet dhcp fete fnetwork finterfaces 17 12 S Ve Edit Network configuration file e Static and Dynamic IP address Static IP address As shown in below 4 fields must be modified address netmask broadcast and network The default IP addresses are 192 168 10 1 iface lan inet static address 192 168 10 1 netmask 255 255 255 0 broadcast 192 168 10 255 network 192 168 10 0 Dynamic IP addresses By default the Jetbox9500 is configured for static IP addresses on LAN port and Korenix Getting Start dhcp on WAN interface To configure LAN port to request an IP address dynamically remove the original settings and add the following line Default setting for LAN port Default setting for WAN port iface lan inet static iface wan inet dhcp address 192 168 10 1 netmask 255 255 255 0 broadcast 192 168 10 255 network 192 168 10 0 Default Gateway When static IP Address setting is used add a default gateway is to set another keyword gateway For example KS Gr EE address 192 168 1 2 netmask 255 255 255 0 broadcast 192 168 1 255 network 192 168 1 0 gateway 192 168 1 1 This will set default gateway to eo ZG oe on WAN pear 2 2 2 Static and Dynamic IP address After the etc network interfaces file have been modified issue the following command 2 2 3 Modifying Network Settings over the Network Same the previous section IP settings can be modified over the network too
17. 27009 TWXT XT 303 53 129608 Feb 10 2009 Lrwxrwxrwx 503 521 13 Sep 28 14 20 1 TWxr xr xX 503 52 5092 Feb 10 2009 WXr XT X 503 521 356 Oc 09 02 rWXr Xr X 503 ki 416 Feb 27 2009 KO LEES d S50sshd start Starting sshd OK fetc init d S50sshd stop stopping sshd OK You can start the service by adding the first argument start and stop the service by adding the 18 System Feature Korenix first argument stop 3 3 Setting Run Level The run level setting can be configuring at the file etc inittab Conventionally seven runlevels exist numbered from zero to six though up to ten from zero to nine may be used You can change the number to boot JetBox into different runlevel DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTER In this example runlevel 3 is the default and the scripts that define runlevel 3 can be found in etc rc3 d NOTE Scripts are run in file name lexical order Just use Is I to find out the start order KI d F F 5 L dh d ef de effet TWX TWE 1 503 kel A Self 1 563 503 I eet L obs 3 4 Setting System Time The JetBox9500 has two time settings One is the system t
18. Available in the Host Environment 56 6 2 VNC ME 57 6 3 L GE 57 6 4 W CR DOE RE 58 Chapter 7 APP NOI EE 60 7 1 PAN Te UDE IdE erien EE EE OE EE E EEEE 60 7 2 TE et 60 7 2 1 BU 60 7 2 2 JetView for JetBox 9 90 O EE 60 7 3 USB Driver TOF GSM MOGCMS visssicssaviveascsccoiasasavanccavenatasanetoasanadavanacdatenasasanadaravedesaanadeste 61 7 4 Change RS485 mode On JetCard 1608 ccceccccsssecccesecccesecceeseceeeeceseeseeeseeeseeeeeees 61 7 5 SOW ae SOC CIIICA e EE 62 7 6 BE ae kelen un e 64 7 7 SOK ZOE aia EE 69 7 8 Hale GEO oer errena EE EE 73 7 9 CU TOMO SOV e a EE E E E S E ee 73 Ia Overview Korenix Korenix Overview ES Chapter 1 Overview The advantage of adopting Korenix JetBox series is ready to use Korenix is devoted to improve the usability of embedded computer in industrial domain Besides operating system Korenix provides device drivers protocol stacks system utilities supporting services and daemons to make system integration simple Further Korenix provides application development toolkits for users to build up their own applications easily The stylish JetBox 9500 series is an industrial layer 3 router with power over Ethernet technology and Linux computing It is a gateway to connect different network groups Ethernet fieldbus serial or IO control in a complex networking architecture and manage peripherals at the front end site through its Linux programs or Java applications It is reliable net
19. BER send a management message of key record then exit Example e Start ptpd in slave mode ptpd g e Stop ptpd in master mode preferred clock ptpd p The PTP daemon PTPd implements the Precision Time protocol PTP as defined by the relevant IEEE 1588 standard PTP Version 1 implements IEEE 1588 2002 and PTP Version 2 implements IEEE 1588 2008 PTP was developed to provide very precise time coordination of LAN connected computers 4 22 PTPDv2 Service name ptpd2 Description Precision Time protocol PTP version 2 daemon Config files Start command ptpd2 Default down Usage Ptpv2d runs on UDP IP P2P mode by default run in command line non daemon mode send output to FILE Le Network Feature Korenix a NUMBER NUMBER w NUMBER b NAME u ADDRESS 1 NUMBER NUMBER 0 NUMBER i NUMBER n NUMBER y NUMBER m NUMBER v NUMBER r NUMBER s NUMBER p NUMBER q NUMBER Example e Start ptpd2 in slave mode ptpd2 g send output to syslog set multicast time to live display stats display stats in csv format record data about sync packets in a file do do do do not not not not reset the clock if off by more than one second reset the clock if offset is more than NUMBER nanoseconds accept delay values of more than NUMBER nanoseconds adjust the system clock specify clock servo P and I attenuations specify one way delay filter stiffness bind PTP to netw
20. TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTER Where media sdO is the usb mounted directory and Jetbox95 20100916 bin is the firmware name 7 2 JetView 7 2 1 Overview The JetView is a device management utility which support various device management features such as device recovery firmware and boot loader upgrade configuration backup and restore system event log listing basic system IP address modify 7 2 2 JetView for JetBox 9500 Start from firmware v1 3 JetBox9500 can be discovered on LAN port change IP address firmware upgrade open web GUI and reboot through JetView File IP Setting Configuration Fie Firmware BootLoader Log Diagnose Help H Discovery Ge Signal Off CA a sat AAE paes sasao Mano SS o E raren E 1059 E A T 3 Ton WII 7 3 USB Driver for GSM modems Some USB 3G modems use the driver USB_SERIAL_COPTION in linux kernel However not all user specified USB idProduct and idVendor are include in the driver For USB idProduct and idVendor not included in linux kernel v2 6 20 JetOS has other way to add it 7 4 Change RS485 mode on JetCard 1608 Before you start using JetCard 1608 RS 422 485 configure the DIP Switch settings of each port DIP Switch can configure RS 422 4 wire RS 485 or 2 wire RS 485 In addition to configure the DIP Switch to setup hardware use setserial command to tell the JetCard driver to change RS 485 mode is necessary Only RS 485 need to invoke se
21. There is another way to change the IP address without modifying the file etc network interfaces but the new settings will not be saved to the flash disk mS Getting Start Korenix For example type the command ifconfig lan 192 168 10 2 to change the IP address of LAN interface to 192 168 10 2 ifconfig Lan Lan Link encap Ethernet Hwaddr OO 12 77 50 04 CB inet addr 197 166 10 1 Beast 192 166 10 255 Mask 255 255 255 0 Lnet addr fteS 212 77tt feso 4cb 64 Scope Link UP BROADCAST RUNNING MULTICAST MTU 1500 Metric RX packets 2371 errors 0 dropped 0 overruns frame 0 TX packets 624 errors 0 dropped 0 overruns 0 carrier collisions tx queue len 512 RX bytes 217168 212 0 K1B TX 31 94 9 KiB ifconfig Lan 182 168 10 2 ifconfig Lan Lan Link encap Ethernet Hwaddr OO 12 77 50 04 CB inet addr 192 1668 10 2 Beast 192 168 10 255 Mask 255 255 255 0 inet addr fesO 212 77tt teao 4cb 64 Scope Link UP BROADCAST RUNNING MULTICAST MTU 1500 Metric l PX packets 2371 errors 0 dropped 0 overruns 0 frame TX packets 624 errors dropped overruns carrier collisions txqueuelen 312 RX bytes 217168 212 0 K1B TX bytes 97231 94 9 K Network Seiting over the Network 2 3 Test Program Developing Hello c In this section we use the standard Hello programming example to illustrate how to develop a program for the JetBox9500 In general program development involves the following seven steps Step 1 Connect th
22. _RD_TIME int ioctl fd RTC_RD_TIME struct rtc_time time Description read time information from RTC It will return the value on argument 3 2 Function RTC_SET TIME int ioctl fd RTC_SET_TIME struct rtc_time time Description set RTC time Argument 3 will be passed to RTC 6 4 Watch Dog Timer A Watchdog Timer WDT is a hardware circuit that can reset the computer system in case of a software fault You probably knew that already The Watchdog Driver has one basic role to talk to the card and send signals to it so it doesn t reset your computer at least during normal operation The ioctl API e Pinging the watchdog using an ioctl WDIOC_KEEPALIVE This ioctl does exactly the same thing as a write to the watchdog device so the main loop in the program could be Poet EE EE EE EE sleep 10 The argument to the ioctl is ignored e Setting and getting the timeout To modify the watchdog timeout on the fly with the SETTIMEOUT ioctl driver has the WDIOF_SETTIMEOUT flag set in their option field The argument is an integer representing the timeout in seconds The driver returns the real timeout used in the same variable and this timeout might differ from the requested one due to limitation of the hardware der E EIERE ioctl Ed WDIOC_SETTIMEOUT amp timeout printf The timeout was set to Sd seconds n timeout se Programmer s Guide Korenix Starting with the Linux 2 4 18 kernel it is poss
23. and destination address MUST be reachable otherwise fastpath can t learn their MAC address 4 20 keepalived Service name keepalived Description keepalived implements an independent VRRPv2 stack to handle director failover It can deal with the Linux Virtual Server LVS framework Config files etc keepalived keepalived cont a Network Feature Korenix Start command Stop command Default down Usage keepalived keepalived n keepalived f keepalived conf keepalived keepalived keepalived Commands Either long or short options are allowed keepalived vrrp P Only run with VRRP subsystem keepalived check C Only run with Health checker subsystem keepalived dont release vrrp V Dont remove VRRP VIPs amp VROUTES on daemon stop keepalived dont release ipvs I Dont remove IPVS topology on daemon stop keepalived dont fork n Dont fork the daemon process keepalived use file f Use the specified configuration file Default is etc keepalived keepalived conf keepalived dump conf d Dump the configuration data keepalived log console 1 Log message to local console keepalived log detail Detailed log messages keepalived log facility 0 7 Set syslog facility to LOG LOCAL 7 default LOG DAEMON keepalived help Display this short inlined help screen keepalived version Display the version number keepalived pid pidfile keepalived checkers pid checkers pidfile keepalived vrrp_pid vrrp p
24. cified multiple times for multiple lines This is just like a line in the config file This disables the default config file you must specify a c after the last C to have it read a config file too n Stops the daemon from forking and detaching from the controlling terminal This is useful for running from init d Like n but also sends the system logs to standard output This is most useful for debugging purposes P pidfile If specified put the process id pid of ser2net in the pidfile replacing whatever was in that file previously A pidfile is not created by default you must specify this to create one Note also that this filename must be specific with the full path as ser2net will change directory to when it becomes a daemon when it U If UUCP locking is enabled this will disable the use of UUCP locks Korenix Appendix e Cisco IOS uses a different mechanism for specifying the baud rates than the mechanism described in RFC2217 This option sets the IOS version of setting the baud rates The default is RFC2217 s Prints the version of the program and exits p controlport Enables the control port and sets the TCP port to listen to for the control port A port number may be of the form host port such as 127 0 0 1 2000 or localhost 2000 If this is specified it will only bind to the IP address specified for the port Otherwise it will bind to all the addresses on the machine If the port number is zero
25. e JetBox9500 to a Linux PC Step 2 Install Toolchain on the Linux PC Step 3 Set the cross compiler and PATH environment variables Step 4 Code and compile the program Korenix Getting Start Step 5 Download the program to the JetBox9500 via FTP Step 6 Debug the program e If bugs are found return to Step 4 e If no bugs are found continue with Step 7 Step 7 Back up the user directory distribute the program to additional JetBox9500 units if needed 2 3 1 Installing the Toolchain Linux The Linux Operating System must be pre installed in the PC before installing the JetBox9500 Toolchain Fedora core or compatible versions are recommended The Toolchain requires approximately 208 MB of hard disk space on your PC The JetBox9500 Toolchain is included with JetBox9500 SDK which can download from Korenix web site To install the Toolchain it is simply a matter of extracting a tarball at the proper place NOTE E e To install the Toolchain you must grant root permission e Toolchains used to not be relocatable You must install them in the location they were built for Install toolchain is simple just extract to the opt directory with the command We have include the opt dir in the tarball so just uncompress it to Next set up the PATH environment variable add the toolchain path with export command The PATH is a variable of your current SHELL This is also the default search path of Linux command S
26. eer eee eee e eee eeeee ee eere ee eeeree sere e ee ieee eee erreeeeeer eee eer eee eeeee eee ieeee ee eereee eer eee ieee e ee erreeeeereeeeereeee tree eeeeeree ee eeree seer e ester e ee eeeree seer eee eeee ee eeeeee etree e etree ee iret ee eereeee terres rere e ee eee eee eeeee einer ee eee tireeeetireeeeeeere terre e ns iptables SE ES Network Feature Korenix Flush rules To flush drop all the rules we can use DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTER A more complete tutorial can be found at http www linode com wiki index php Netfilter IPTables Mini Howto 4 7 NAT Network address translation NAT is the process of modifying network address information in datagram IP packet headers while in transit across a traffic routing device for the purpose of remapping one IP address space into another A basic NAT scenario The 2 interfaces concerned will be WAN and LAN WAN This will be the interface connected to the Internet LAN This interface will be connected to the private network NAT onc 192 168 10 10 Internet WAN 192 168 10 11 192 168 10 12 Assuming that you have already configured your system to be able to connect to I
27. ess of the server SSERVER e The authentication domain name SDOMAIN e The username you are to use SUSERNAME e The password you are to use SPASSWORD In the steps below substitute these values manually Edit the config file etc ppp options pptp which sets options common to all tunnels Meee OOOO COCO CeCe eee eCC CCC CCC CCC CeCe CeCe errr eee ee eee Cet CCC CeCe errr rere rete eee CeCe CeCe eee terre rere eee e eee CeCe CeCe eter etree eee eee CCC CeCe eee CeCe terre eee eee e tee CCC eee eee tere eer eeee eet eee C CCC Cette terre eeeee eee ete CeCe eter errr rere ree terete et ett Cette tere rrr ere rer ee eet e ete te terre terete tree errr r rrr rrr ret a LCTO DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTEN d SSCS iter elohelaSiare 1 ac om SDOMAIN SUSERNAME PME SPAS SCID 4 Seen ae wow eae deel sein pty BEE hee Ketter name DOMAIN SUSERNAME remotename EE require mppe 128 file EES ipparam STUNNEL NAME The following picture is the success output with tunnel name test and server ip address 192 168 1 54 D I d d EN d Te d ppp e debu 1 jetc ppp peers test Jump from fetc ppp options EI ith trom f
28. esseeesseesesersssessrrrsse 10 2 2 2 Static dna Dynamic H len 12 2 2 3 Modifying Network Settings over the Ne twork ccccssscccssscceesseceeeseceeeeeeeeeees 12 TestPrograni Kiel 13 2 3 1 Installing the Toolchain LINUX sassuceitwk eege dee ege ege et 14 2 3 2 OMNIS e TE e EE 14 2 3 3 Uploading test to JetBox9500 and Running the Program 15 SV SUSI E 17 SV SUSIE VOS ON EE 17 Enable Disable Daenmons 17 Setting RU MSLOVEl ee EE EE 19 SECU System HEI 19 Adjust System TINE casein tice hee ia ree ee ee a 20 3 5 1 INSPIRE IC 20 3 5 2 NIP SS OTV EE 21 Cron Daemon Schedule ee CAE 21 Connect PMID Ol EE 22 VIE elei EE 24 TEINE EE 24 le WEE 24 Eeer eege 25 INS EE 25 WEDS AV gaara Serene E eet eR aE er OE ek 26 IEN 27 INA EE 29 4 9 PIE GLE ET 30 4 10 INES AE E E non case A nse va exe du cioeu a O E E E E T A E 32 4 11 Fe TI 32 4 12 VE 33 4 13 SIN ME 33 4 14 REENEN 34 4 15 PPEP CICE cenn E E E E EEE 35 4 16 Wa 37 4 17 ROUTINE Zebra DaM OM sean dees ses canarezesanenscdeessuar aves anaaseescesevensncieatossseanaeesmuasdeaneaeaorsacen 37 4 18 EE 40 4 19 TASC ACI AT EEN PEN AET EE TE E vag T E N ENE 41 4 20 date E 42 4 21 Dat Ce iaaeao oa steers ia aurea EEE ne sua aad EE E oes ena eacseaeeee eons 47 4 22 BY E 48 Chapter 5 dai TE t 51 5 1 Dain ele 51 5 2 VECON ebe 52 5 3 DEE et 53 5 4 Neier 54 Chapter 6 Proca nmn T S Ee 55 6 1 ee e tie lg ge et e E 55 6 1 1 Compiling Applications and Dbraries 56 6 1 2 Tools
29. etc ppp options pptp j1 from fetc ppp peers test a Sam ame PPTP from etc ppp peers test from fetc ppp options pptp pty pptp 192 168 1 54 nolaunchpppd from etc ppp peers tes 1pparam test from etc ppp peers test nobsdcomp from etc ppp options pptp nodeflate from etc ppp options pptp require mppe 126 from fetc ppp peers test oe Network Feature Korenix 1 T all re To further diagnose a failure add options to the command MOPOCCCCCCOCOCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCeCC CC CeCe eet eee ee teee eet teeeeCCCeeeCCCCeeee eC CeeeeeCteee eet eeee etree eet eee eet tere Cet teee eee teee eee t eee eee teeeeeCteee eee teeeCeCeeeeeCCeeeeeeCeeeee et eeeeeeteeee CCC eee eee rece eC eeeeeeeeeeeeeeteeeeeeteeeeetereree terete t teeter tereret terete e terete ertettrreettrtrrettttrerttrrrrty me pppd E TUN e a Eet oa o e oe red NOTE E lf you are using a PPTP Server that does not require an authentication E domain name omit the slashes as well as the domain name If you need to setup a PPTP server on Windows XP as a test target please see the following link http www onecomputerguy com networking xp vpn server htm 4 16 PPTP Server Service name Description A Point to Point potocol server Config files etc pptpd conf etc ppp chap secrets etc ppp options pptpd Start file etc init d pptpd Start command etc init d pptpd start Stop command etc init d pptod stop Default down
30. etting the PATH allows you to run the compiler from any directory 2 3 2 Compiling Hello c If you have been compiling a program on X86 then you will find the only difference is the GCC command is start with armeb linux That is because we want to differentiate with the stand GCC compiler and the prefix also tell In Getting Start Korenix you it is for arm big endian platform program Below is a simple hello c program i pra Le 1 x Fle Edit View Terminal Tabs Help 1 1nclude lt stdio h gt d 3 int main 4 5 printf hello world n D return 0 H The output executable file is the helloworld 2 3 3 Uploading test to JetBox9500 and Running the Program Use the following command to upload helloworld to the JetBox9500 via FTP 1 From the PC type ftp XXX XXX XXX XXX 2 Use bin command to set the transfer mode to Binary mode and the put command to initiate the file transfer ftp gt bin ftp gt put test IS SS E Se EE Connected OZ ANG OO sl ALO EE eu 220 EE EE EE Name o Miers OR geen ool 331 Password required for root Password 230 User root logged in Remote system type is UNIX Using binary mode to transfer files ftp gt cd home 250 CWD Command successtul ftp gt Pue he men ronal id local helloworld remote helloworld Korenix Getting Start me SEN aer Ee Eer GE e Men a Opening BINARY mode data connection for helloworld 226 Transfer complete 4455 by
31. hree chains 1 INPUT used for traffic which is entering our system and belongs to an IP address which is on our local machine 2 OUTPUT used for traffic which originated on the local system otherwise known as the firewall 3 FORWARD used for traffic which is being routed between two network interfaces on our firewall There are three main targets for a rule within the filter table 1 ACCEPT allows the packet to be passed through the firewall without any noticeable interaction DROP simply drops the packet as if it has never been in the system REJECT drops the packet then sends a ICMP reply back to the client telling it why the connection failed Example Add rules The basic syntax of an iptables command is This would add a rule into the INPUT chain which matches any packet with a source address in the 192 168 20 0 subnet If a packet matches this criteria then it would use the ACCEPT target which simply allows the packet on through Remove rules To delete the first rule in the chain we would do DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTOTTTTTTTTTTCR List rules To list the rules we have on our system use SOO POO OC eR Cee ee P Gere e Peer e eee eee e ee
32. ible to query the current timeout using the GETTIMEOUT ioctl DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTER ioctl Ed WDIOC_GETTIMEOUT amp timeout print The PUNCCUENWcds ie oC SeCOnds MF EES Korenix Programmer s Guide so Chapter 7 Appendix 7 1 Firmware Upgrade Firmware upgrade can be done by the firmware up command DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTER 4 firmware up Usage f firmware file t firmware file tftp server i e Cie ine AER For example put the new firmware in a USB storage and plug in to JetBox9500 After it automatic mounted you can upgrade with the following command DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
33. idfile Example e Start keepalived with VRRP subsystem only keepalived P Virtual Router Redundancy Protocol VRRP is an IETF standard that provides a redundant router mechanism to increase the reliability of existing networks The VRRP process provides Korenix Network Feature um dynamic failover of the forwarding responsibility to a Backup secondary router if the Master primary router becomes unavailable VRRP provides the advantage of a single default path that has higher availability without requiring network devices to be reconfigured if a failure occurs Virina IP address 192 168 3 1 JetBox 9500 1 Master Victual IP address 192 168 2 1 IP address 192 168 2 10 Subnet mask 255 255 255 0 Default 192 168 2 1 Virbual IP address 192 168 3 1 Virtual IP address 192 168 2 1 IP address 192 168 2 10 The VRRP protocol provides rapid Network aoe transition from Master to Backup to minimize service interruption Jet Box One of the JetBox becomes the Master 9500 2 Slave and the other becomes a Backup when the VRRP protocol starts up Election of the Master is based on the Network eech configuration file Both Master and Backup have identical Virtual IP IP address neem Addresses 255 255 255 0 Default Gateway 192 168 2 1 pee When Master becomes unavailable traffic between JetBox 9500 1 and JetBox 9500 2 is interrupted Then JetBox E S JetBox 9500 2 will take the place as Master
34. ime and the other is the RTC Real Time Clock time kept by the JetBox9500 s hardware Use the date command to query the current system time or set a new system time date MMDDhhmmYYYY MM Month DD Dake hhmm Imotie Nd mnte Use hwclock to query the current RTC time Use the following command to set system time from hardware clock PELIETTTTETTTTTETTTTETTTTTYTTTETYTTTETTTTTYTTTEYTTTEYTTTEYTYTETYTTTTYTTTYYTTTEYTTTTYTTTEYTTTEYTTTTTTTTTTTTTTEYTYTTYYTTEYYTTTYTYTTTYTTTYYTTTTYTTTEYTTTTYTTTTYTTTTTTTTTETTYTTYTTTTYTTTTYYYTTYYTYTEYTTTTYTTTETTTTEYTTTTYYTTTTTTTETYTYTETTTTEYTYTTYTTTTYTTTEYYTTTYYTTTTYTTTETTTTEYTTTEYTYTTYYTTTYYTTTYYTETTTTYYTTEYYTTEYYTTTETTTTETTTTETE The following figure illustrates how to update the system time and set the RTC time Korenix System Feature 19 w COM13 115200band Tera Term YT Fie Edit Setup Control Window Help date 2010 19 21 04 04 34 ic Lock Thu Oct 21 64 64 36 2010 6 660080 seconds hwelock w date hwclock UTC 2010 10 21 04 04 52 e A EI CN e EN E oh ch EN m m E ONE EA ENN HEES Si hu Oct 21 04 04 52 2010 6 000000 seconds Setting the Time Manually 3 5 Adjust System Time If you only wish to synchronize your clock when the device boots up you can use ntpdate This may be appropriate for some devices which are frequently rebooted and only require infrequent synchronization Using ntpdate at boot time is also a good idea for devices that run ntpd The ntpd
35. individual config lines may be specified with the C option This file consists of one or more entries with the following format lt TCP port gt lt state gt lt timeout gt lt device gt lt options gt or BANNER lt banner name gt lt banner text gt FIELDS TCP port Name or number of the TCP IP port to accept connections from for this device A port number may be of the form host port such as 127 0 0 1 2000 or localhost 2000 If this is specified it will only bind to the IP address specified for the port Otherwise it will bind to all the ports on the machine state Either raw or rawlp or telnet or off off disables the port from accepting Korenix Appendix ay connections It can be turned on later from the control port raw enables the port and transfers all data as is between the port and the long raw p enables the port and transfers all input data to device device is open without any termios setting It allow to use dev IpX devices and printers connected to them fe net enables the port and runs the telnet protocol on the port to set up telnet parameters This is most useful for using telnet timeout The time in seconds before the port will be disconnected if there is no activity on it A zero value disables this funciton device The name of the device to connect to This must be in the form of dev lt device gt device configuration options Sets operational parameters for the serial port Values may be separated by s
36. korenix JetOS95 User Manual www korenix com Copyright Notice Copyright 2011 Korenix Technology Co Ltd All rights reserved Reproduction without permission is prohibited Information provided in this manual is intended to be accurate and reliable However the original manufacturer assumes no responsibility for its use or for any infringements upon the rights of third parties that may result from its use The material in this document is for product information only and is subject to change without notice While reasonable efforts have been made in the preparation of this document to assure its accuracy Korenix assumes no liabilities resulting from errors or omissions in this document or from the use of the information contained herein Korenix reserves the right to make changes in the product design without notice to its users Acknowledgments Korenix is a registered trademark of Korenix Technology Co Ltd All other trademarks or registered marks in the manual belong to their respective manufacturers ES Overview Korenix Table of Content Chapter 1 1 1 Chapter 2 2 1 2 2 2 3 Chapter 3 3 1 3 2 3 3 3 4 3 5 3 6 3 7 Chapter 4 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 COPEN NOCO EE 2 e ET EC 2 Ee ee a 3 OVEN EW ege 6 Applied Model EE 6 Getin EE 7 EE 7 2 1 1 EIERE 7 2 1 2 TENCE CONS EE 8 2 1 3 SSPIMC OMS Ol EE 9 GEHEESCHT 10 2 2 1 Modifying Network Settings with the Serial Console sssssse
37. les etc ipsec cont Start file etc init d ipsec Start command etc init d ipsec start Stop command etc init d ipsec stop Default down ipsec setup showonly start stop restart losec setup status ipsec auto showonly asynchronous up connectionname ipsec auto showonly add delete replace down connectionname ipsec auto showonly route unroute connectionname ipsec auto showonly ready status rereadsecrets rereadgroups ipsec auto showonly rereadcacerts rereadaacerts rereadocspcerts ipsec auto showonly rereadacerts rereadcrls rereadall ipsec auto showonly utc listopubkeys listcerts ipsec auto showonly utc listcacerts listaacerts listocspcerts ipsec auto showonly utc listacerts listgroups ipsec auto showonly utc listcrls listocsp listall losec auto showonly purgeocsp ou Network Feature Korenix OpenSwan is an implementation of IPsec Protocol for Linux You can create a VPN using ipsec command ipsec invokes any of several utilities involved in controlling the IPsec encryption authentication system running the specified command with the specified arguments as if it had been invoked directly For more information download the step by step how to from Korenix website http www korenixembedded com support fags vpn Or read OpenSwan Wiki htto wiki openswan or 4 15 PPTP Client program name pptp Descrip
38. ling Toolchains Toolchains ork Station fo x86 binary f ARM binary Targat Platform The Toolchain will need about 208 MB of hard disk space on your Linux PC The Jetbox9500 toolchain is included in the JetBox9500 SDK which can download from http www korenixembedded com The SDK can be extract at any directory for example your HOME directory You can extract the SDK with following command BTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTOTTTTTTTTTTCR Fedora 9 ls ap_srcf environment sh jetbox9500 toolchain tar bz2 README The README file will teach you how to install the Toolchain and application examples are in the ap_src directory 6 1 1 Compiling Applications and Libraries To compile a simple C application just use the aremb linux gcc compiler instead of the regular one 6 1 2 Tools Available in the Host Environment The following cross compiler tools are provided armeb linux ranlib Generates indexes to archives static libraries armeb linux readelf Displays information about ELF files Lists object file section sizes armeb linux strings Prints strings of printable characters from files usually object files armeb linux strip Removes symbols
39. ll reread it configuration file and make the appropriate changes If an inuse port is changed or deleted the actual change will not occur until the port Ia Appendix Korenix is disconnected Error Almost all error output goes to syslog not standard output Files etc ser2net conf See Also telnet 1 hosts access 5 Known Problems None Author Corey Minyard lt minyard acm org gt 7 8 Revision history V0 0 9 by 2011 3 8 update for JetOS93 v1 3 release 7 9 Customer Service Korenix Technology Co Ltd Business service sales korenixembedded com sales korenix com Customer service koreCARE korenix com Web Site http www korenixembedded com http www korenix com Korenix Appendix AS
40. mmand 4 6 IPTABLES program name iptables Description A NFS client iptables AD chain rule specification options iptables RI chain rulenum rule specification options iptables D chain rulenum options iptables LFZ chain options iptables NX chain iptables E old chain name new chain name iptables P chain target options iptables h print this help information iptables is a user space application program on JetBox9500 that allows to configure the tables provided by the Linux kernel firewall implemented as different Netfilter modules and the chains and rules it stores Different kernel modules and programs are currently used for different protocols iptables applies to IPv4 ip6tables to IPv6 arptables to ARP and ebtables as a special for Ethernet frames A firewall using iptables is said to be a stateful firewall Korenix Network Feature CEE iptables splits the packet handling into three different tables each of which contain a number of chains The firewalling rules which we create are included within a particular chain The three tables are 1 filter used for packet filtering 2 nat used to provide packet modification capabilities NAT PAT and IP masquerading 3 mangle used for setting packet options and marking packets for further filtering or routing The filter table is the default table for any rule It is where the bulk of the work in an iptables firewall occurs This table contains t
41. n if it is cut off from all external time sources for a period of time To start the server execute the command For more information read the following links about setting up a NTP server htto www freebsd org doc handbook network ntp htm 3 6 Cron Daemon Schedule jobs Cron is a daemon to execute scheduled commands Cron wakes up every minute examining the etc crontab checking each command to see if it should be run in the current minute Crontab syntax A crontab file has five fields for specifying day date and time followed by the command to be run at that interval SOePOUOCee eee ee errr ee terre ee eeree errr eee terres e terres reree terre ee errr ee terres terres e irre ee terre eeeerree errr ee eters e ee erree errr ee terres eeereeeeirreee terres iereeeierreeeeeere ester e eee erree sere eee irre ee terres e teres e rere ee errr eeeerreee etree eeerreeeirreee terres e errr et tees ireree trees etirrre titer ee is b x command to be executed Korenix System Feature EN EE poach Il 12 I EE da Or mone E ANER hour 0 23 4 a ee oe oes ee gies gig CC eke Crontab example A line in crontab file like below removes the tmp files from tmp each day at 6 30 PM 3 7 Connect Peripherals While plug in a USB mass storage or a SD card use dmesg command can help showing USB storage device status usb 2 1 new high speed USB device using 1xp4xx ehe1 and address 3
42. nternet run the following command to enable NAT oe SS en EE EEN iptables A FORWARD i wan o lan m state state RELATED ESTABLISHED 3 ACCEPT iptables A PORWARD i lan EECH Korenix Network Feature ee NOTE lf WAN interface use PPPOE to connect to ISP use pppo0 interface instead of WAN port To save current setting of iptables to a file use the following command DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTEN 4 8 Dail up Service Service name pppd Config files etc options etc pap secrets etc chap secrets Start command Stop command Support command pppd chat pppdump Default down PPP Point to Point Protocol is used to run IP Internet Protocol and other network protocols over a serial link PPP can be used for direct serial connections using a null modem cable over a Telnet link and links established using a modem over a telephone line Usually pppd is called by other daemon like PPPoE PPTP and Wvdial 4 9 PPPoE Service name ll Description Point to Point Protocol over ethernet Config files etc ppp pppoe cont o Network Feature Korenix Start command Stop command Support command pppoe connect ppp
43. oe setup pppoe start pppoe stop pppoe status Default Point to Point Protocol over Ethernet is a network protocol for encapsulating Poing to Point Protocol PPP frames inside Ethernet frames It is used mainly with ADSL services where individual users connect to the ADSL transceiver over Ethernet You can just inpput pppoe setup to configure the PPPoE First you should obtain PPPOE username and password from your Internet provider Second filled in these parameters to pppoe setup dialog Ethernet Interface wan User name lt from your ISP gt Activate on demand No Primary DNS 168 95 1 1 Firewalling NONE DTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTOTTTTTTTTTTCR d pppoe setup Welcome to the Roaring Penguin PPPoE client setup Paes ele Wael lee ii some checks on your system to make sure the PPPoE client is installed properly Looks good Now please enter some information USER NAME gt gt gt Enter your PPPoE user name default bxxxnxnx sympatico ca 7360011 hinet net INTERFACE gt gt gt Enter the Ethernet interface connected to the DSL modem default eth0 wan Do Vou want the link EO c ome up On emand
44. on will be shut down if no activity has been seen on the port setportconfig lt tcp port gt lt config gt Set the port configuration as in the device configuration in the etc ser2net conf file If conflicting options are specified the last option will be the one used Note that these will not change until the port is disconnected and connected again Options 300 1200 2400 4800 9600 19200 38400 57600 115200 set the various baud rates EVEN ODD NONE set the parity 1STOPBIT 2STOPBITS set the number of stop bits 7DATABITS 8DATABITS set the number of data bits XONXOFF turns on off XON XOFF support R7TSCTS turns on off hardware flow control LOCAL ignores checks the modem control lines DCD DTR etc setportcontrol lt tcp port gt lt controls gt Modify dynamic port controls These do not stay between connections Controls are DTRHI DTRLO Turns on and off the DTR line R7SHZ RTSLO Turns on and off the RTS line setportenable lt tcp port gt lt enable state gt Sets the port operation state Valid states are off to shut the TCP port down raw to enable the TCP port transfer all I O as is raw p to enable the TCP port input and device output without termios setting and te net to enable the TCP port is up run the telnet negotiation protocol on the port Configuration Configuration is accomplished through the file etc ser2net conf A file with another name or path may be specified using the c option or
45. orenix Network tftp Trivial File Transfer Protocol client telnet Telnet client ftp FTP client Others dmesg dump kernel log message stty stty is used to change and print terminal line settings zcat dump gz file context mknod make device node free display system memory usage date print or set the system date and time env run a program in a modified environment clear clear the terminal screen kill killall Send specified signal to the specified process or process group For complete command usage and explanation please refer to following website Korenix Appendix ER htto www busybox net downloads BusyBox html es Appendix Korenix 7 7 Ser2net Manual Name ser2net Serial to network proxy Synopsis ser2net c configfile C configline p controlport n d b v P pidfile Description The ser2net daemon allows telnet and tcp sessions to be established with a unit s serial ports The program comes up normally as a daemon opens the TCP ports specified in the configuration file and waits for connections Once a connection occurs the program attempts to set up the connection and open the serial port If another user is already using the connection or serial port the connection is refused with an error message Options C contig file Set the configuration file to one other than the default of etc ser2net conf C config line Handle a single configuration line This may be spe
46. ork interface NAME also send uni cast to ADDRESS run in ethernet mode level2 run in End to End mode specify inbound outbound latency in nsec specify current UTC offset specify PTP domain number specify announce interval in 2 NUMBER sec specify sync interval in 2 NUMBER sec specify max number of foreign master records run as slave only specify system clock allen variance specify system clock accuracy specify system clock class specify priority1 attribute specify priority2 attribute e Start ptpd2 in master mode otod2 The PTP daemon PTPd implements the Precision Time protocol PTP as defined by the Korenix Network Feature mm relevant IEEE 1588 standard PTP Version 1 implements IEEE 1588 2002 and PTP Version 2 implements IEEE 1588 2008 PTP was developed to provide very precise time coordination of LAN connected computers om Network Feature Korenix Chapter 5 Korenix Feature 5 1 Ethertool program name ethtool Description LAN switch port configuration tool ethtool DEVNAME get port status ethtool a DEVNAME get flow control ethtool A DEVNAME set flow control rx onloft ethtool q DEVNAME get QoS ethtool Q DEVNAME set QoS type 0 1 0 weighted 1 Strict trust 0 4 0 Port Based 1 CoS Only 2 DSCP Only 3 CoS First 4 DSCP First pri 0 7 Port default frame priority cos QUEVE_ID COS _ID dsco QUEUE_ID DSCP_ID ethtool p DEVNAME get
47. outing daemons in use and there is one manager daemon e ospfd ripd bgpd isisd for optional e Zebra Configuration options e Each of the daemons has its own config file For example zebra s default config file name is etc zebra conf e The daemon name plus conf is the default config file name You can specify other config file using the f options when starting the daemon e Check the log files for proper operation For example you can type less f var log zebra log to check the zebra log Keep in mind that you have to add the log file location to the respective daemon configuration file The administrator has two options to modify runtime configurations via the command line interface CLI 1 Preferred Use the integrated Zebra shell vtysh by typing vtysh vtysh expects its configuration to reside in etc vtysh conf 2 Telnet localhost lt port gt e g port 2601 connects to the ospfd Zebra uses ports from 2600 to 2607 for daemon connections Port 2601 2602 2604 2605 2607 Example 1 Start zebra etc init d zebra start 2 Type vtysh to enter Zebra shell 3s Network Feature Korenix fetc init d zebra start Starting zebra services done vtysh Hello this is Quagga version 99 9 Copyright 1996 2605 Kunihiro Ishiguro et al JetBox 95304 3 Query for supported command with vtysn ello this 1s Quagga version 99 9 Copyright 1996 2605 Kunihiro Ishiguro et al
48. owing figure shows an example of the configuration that is required Korenix Getting Start ES i PulTY Configuration Category EL Sessor Basic options for your Pul Ty session Logging E Terminal kaboa Host Name or IF address Fort 192 168 10 1 22 Features Connection type E Window C Raw Telnet Alogin f SSH Serial Appearance Behaviour Tarlon Saved Sessions Specity the destination you want to connect to Load save or delete a stored session S lection Colours Default Settings Load ER Connection Save Delete Close window on exit Always C Never fe Only on clean exit Windows PuT Ty setting 2 2 Configure Ethernet Interface JetBox9500 network setting can be modified with the serial console or over the network 2 2 1 Modifying Network Settings with the Serial Console In this section we use the serial console to modify JetBox9500 s network settings e Change Network Configuration Follow the instructions given in a previous section to access JetBox9500 s Console Utility via the serial Console port and then type vi etc network interfaces to edit network configuration file with vi editor io Getting Start Korenix E COM13 115200bavd Tera Term VT BIsIE File Edit Setup Control Window Help Configure Loopback auto lo wan Lan iface Lo inet Loopback face Lan inet static address 192 165 10 1 netmask 255 255 255 0 broadcast 192 168 10 255 network
49. paces or commas Options 300 1200 2400 4800 9600 19200 38400 57600 115200 set the various baud rates EVEN ODD NONE set the parity 1STOPBIT 2STOPBITS set the number of stop bits 7DATABITS 8BDATABITS set the number of data bits XONXOFF turns on off XON XOFF support R7TSCTS turns on off hardware flow control LOCALignores checks the modem control lines DCD DTR etc HANGUP_WHEN_DONE lowers does not lower the modem control lines DCD DTR etc when the connection closes MOBREAK Disables automatic clearing of the break setting of the port rem_ct allows remote control of the serial port parameters via RFC 2217 See the README for more info lt banner name gt displays the given banner when a user connects to the port banner name A name for the banner this may be used in the options of a port banner text The text to display as the banner This may contain normal C escape strings and it may also contain d for the device name p for the TCP port number and s for the serial port parameters eg 9600N81 of the given connection Blank lines and lines starting with Zi are ignored Security ser2net uses the tcp wrappers interface to implement host based security See hosts _access 5 for a description of the file setup Two daemons are used by ser2net ser2net is for the data ports and ser2net control is for the control ports Signals SIGHUP If ser2net receives a SIGHUP it wi
50. pptpd is the Poptop PPTP daemon which manages tunneled PPP connections encapsulated in GRE using the PPTP VPN protocol It may contain features like IP address management and TCP wrappers if compiled in Example Edit the configuration file etc pptpd conf for IP ranges and option file for example DEE ee localip O ZG Oil remoteip 192 168 0 234 238 192 168 0 245 POPP ete ILLL LLLE LLL LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL LLL titi tet LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL LLL LLLI LLL LLL LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL LLL LLL LLL LL LLLLLLL LLL LLL LLL LL LLL LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL LLLE LLLLLLLLLLLLLLLLLLLLLLLLLLI FELEEEEEEEEEEEEEEEEETEEEEEEEEEEEEEEEEETETEEEEETETTEEEEEEEEEEEEEEEEETEEEEETEEETEEEEEEEEEEEEEETEETEEEEEEEETETEEEEEEEEEEEEEEETEEEEEEETEEETEEEEEEEEEETEEEEEEEEEEEEEEEETETEEETETETETEEEEEEEETEEEEEEEETEETEEEEEETEEEEEEEEEEEEETETEETEEEEEEEEEEEEEEEEEEEEEEEETEEETEEEEEEEEETEEEEEEEEEETEEEEEEEEEEEEETEEEEEEETEEEEEEEEEEEEEEEEEEEETETETEEETEE Leave the etc ppp options pptpd unchanged Start the tunnel using the command 4 17 Routing Zebra Daemon Service name Korenix Network Feature EZ Description Zebra is an advanced routing software package that provides TCP IP based routing protocols Config files etc zebra cont Start file etc init d zebra Start command etc init d zebra start Stop command etc init d zebra stop Default down There are four r
51. ptions D rulenum delete fastpath rule rulenum Options source ip address destination ip address Example e Start fastpath fastpath start FastPath auto ipv4 routing start e Stop fastpath fastpath stop FastPath auto ipv4 routing stop e Add a static route in fastpath with source ip address 192 168 1 1 and destination address 192 168 10 101 fastpath A s 192 168 1 1 d 192 168 10 101 e List current fastpath rules fastpath L root JetBox 9530 etc fastpath L FastPath Show rulenum Lan IP Wan IP 0 192 168 10 101 192 168 1 1 e Remove a fastpath rule by rule number fastpath D 0 Korenix Network Feature ke As the figure bellow the traffic handled by the JetBox9500 moves through the fast path alone without any CPU intervention Application Layer Firewall NIC driver NPE fast pat emm Normal traffic Fast path traffic This fast path can receive packets perform rule look ups determine the ip address to which the packet should be routed to and transmit the packet out using hardware engines Packets that cannot be processed by fast path routed to the CPU control path As a result higher level stack services such as HTTP DHCP etc can still be provided via the CPU path while still maintaining throughput performance consistently using the fast path NOTE ER e The fast path database is limit to 16 rules connections e Both source
52. r2net is a Linux program which will connect a network to the serial port It could be like a bridge between the ethernet cable and the serial cable Usage C lt config file gt use a config file besides etc ser2net conf C lt config line gt Handle a single configuration line This may be specified multiple times for multiple lines This is just like a line in the config file This disables the default config file you must specify a c after the last C to have it read a config file too p lt controller port gt Start a controller session on the given TCP port P lt file gt set location of pid file n Don t detach from the controlling terminal d Don t detach and send debug O to standard output u Disable UUCP locking b Do CISCO IOS baud rate negotiation instead of RFC2217 V print the program s version and exit Example e Setup a TCP server with following operation parameter Serial port 1 TCP port 62001 Baud rate 9600 Data bits 8 Parity none Stop bit 1 Hardware flow control none State raw state timeout never timeout modem mode none 400 Network Feature Korenix For more information please see section 7 7 4 19 fastpath Service name fastpath Description Hardware accelerated packet flow path Config files Start command fastpath start Stop command fastpath stop Default down start fastpath stop fastpath list fastpath rules add fastpath rule o
53. rtual IP address Network Peran keepalived to monitor lan interface port 1 s link status When JetBox 1 JetBox JetBox lan port 1 link is down both wan 9500 1 9500 2 Failed Master and lan will turn into FAULT state Thus JetBox 2 will turn into MASTER state and route packet Virtual IP address Network keete between two interfaces IP address IP address 192 168 2 10 192 168 2 11 Subnet mask Subnet mask 255 255 255 0 255 255 255 0 Default Gateway Default 192 168 2 1 192 168 2 1 linkbeat_use_polling vrrp_sync_group VG2 group VU WAN Vi LAN i linkbeat_use_polling vrrp_sync_group VG2 group VU WAN Vi LAN i vrrp_instance VI_WAN state MASTER interface wan virtual_router_id 151 priority 150 advert_int 1 authentication auth_type PASS auth_pass 1111 virtual_ipaddress 192 168 3 1 24 brd 192 168 3 255 dev wan vrrp_instance VI_WAN state BACKUP interface wan virtual_router_id 151 priority 100 advert_int 1 authentication auth_type PASS auth_pass 1111 virtual_ipaddress 192 168 3 1 24 brd 192 168 3 255 dev wan I i vrrp_instance VI_LAN state MASTER interface lan 1 virtual_router_id 152 priority 150 advert_int 1 authentication auth_type PASS auth_pass 1111 virtual_ipaddress 192 168 2 1 24 brd vrrp_instance VI_LAN state BACKUP interface lan 1 virtual_router_id 152 priority 100 advert_int 1 authentication auth_type PASS
54. t command etc init d SSOsshd start Stop command etc init d SSOsshd stop Support command Default up Re generate sshd host keys The JetBox9500 comes with a set of default sshd host keys To re generate it remove them and restart the ssh daemon Pom e ay EEEE E E a enone mA EE Ke etc ssh_host_key pub f etc ssh host rsa _ key etc ssh host rsa_key pub 4 ce e cl uk Service name proftpd Description A Highly configurable FTP server Config files etc proftpd conf Enabling root login Edit the etc proftpd conf and add the following line then restart the FTP server Peer ee er eer ececececececececececerecececererecerererererererecececercececercerececerecer eres erecererecececerececerececererererererecececececerecececerecececerececerecerererecererererececerececerererecerererecererererececerecerererececererecerererecerer eres er ecerererererer er er er er erect erererererererererererererrrerereteretrr rs 4 4 DNS To set up DNS client you need to edit two configuration files etc resolv conf etc hosts optional etc hosts The static table lookup for host names Korenix Network Feature o This is the first file that the Linux system reads to resolve the host name and IP address etc resolv conf DNS resolver configuration file This is the most important file that you need to edit when using DNS for the other programs For example before you use ntpdate time nist goc to update the system time you will need
55. ted The default values as following Login root Password none 2 1 2 Telnet Console If you know IP addresses and netmasks then you can use Telnet to connect to JetBox9500 The default IP address and Netmask for each port is given below LAN 192 168 10 1 255 255 255 0 WAN DHCP Default IP address and Netmask Use a cross over Ethernet Cable to connect directly from your PC to JetBox 8100 You should first modify your PC s IP address and netmask so that your PC is on the same subnet as JetBox To connect to a hub or switch connected to your local LAN use a straight through Ethernet cable The default IP address and netmasks are shown above To login type the Login name and password as requested The default values as following le Getting Start Korenix Login root Password none po Telnet 192 162 10 1 Telnet console screen You can proceed with the configuration of JetBox9500 s network settings when you reach the bash command shell Configuration instructions are given in the next section 2 1 3 SSH Console Start from firmware v1 3 JetBox9500 supports an SSH Console to offer users with better security options Click on the link putty to download PuTTy freeware and set up an SSH console for JetBox 9500 in a Windows environment The foll
56. tes sent in 4 1le 05 secs 108658 54 Kbytes sec ftp gt exit 221 Goodbye 3 From the JetBox9500 console type chmod x helloworld helloworld The word hello world will be printed on the screen CG COM13 115200band Tera Term YT File Edit Setup Control Window Help Please read Chapter 6 for more detail about Toolchain Im Getting Start Korenix Chapter 3 System Feature This chapter includes information about version control deployment updates and peripherals The information in this chapter will be particularly useful when you need to run the same application on several JetBox units 3 1 System Version To determine the hardware capability of your JetBox and what kind of software functions are supported check the version numbers of your JetBox s hardware kernel and user file system Contact Korenix to determine the hardware version You will need the Production S N Serial number which is located on the JetBox9500 s back label To check the firmware version type Bo COM13 115200band Tera Term VI File Edit Setup Control Window Help if version Firmware 1 2 1 2010 11 05 18 00 47 E Figure 3 1 Firmware version 3 2 Enable Disable Daemons The following daemons are enabled when the JetBox 9500 boots up for the first time Service name Description inetd internet daemons telnetd telnet daemon sshd secure shell daemon crond schedule jobs daemon Type the
57. tion A Point to Point potocol client Config file etc ppp options pptp etc ppp chap secrets Usage pptp lt hostname gt lt pptp options gt lt pppd options gt Or using pppd s pty option pppd pty pptp lt hostname gt nolaunchpppd lt pptp options gt Available pptp options ohone lt number gt Pass lt number gt to remote host as phone number nolaunchpppd Do not launch pppd for use as a pppd pty quirks lt quirk gt Work around a buggy PPTP implementation Currently recognised values are BEZEQ_ISRAEL only debug Run in foreground for debugging with gdb SyNc Enable Synchronous HDLC pppd must use it too timeout lt secs gt Time to wait for reordered packets 0 01 to 10 secs nobuffer Disable packet buffering and reordering completely idle wait Time to wait before sending echo request max echo wait Time to wait before giving up on lack of reply logstring lt name gt Use lt name gt instead of anon in syslog messages localbind lt addr gt Bind to specified IP address instead of wildcard loglevel lt level gt Sets the debugging level O low 1 default 2 high Korenix Network Feature o PPTP establishes the client side of a Virtual Private Network VPN using the Point to Point Tunneling Protocol PPTP Use this program to connect to an employer s PPTP based VPN or to certain cable and ADSL service providers Example The PPTP Server has the following information e The IP addr
58. tserial command RS485 2W isetserial 6 Glew oll wiece ASS 2 ON cereel Ie 0s setserial Sy ew eyo bymode 40 9 Zi NOE ear d Toe RS485 4W Korenix Appendix CE isetserial a dev ttyS1l mode 485 4W ON card 1608 setserial a dev ttyS1 mode 485 AN OFF card 1608 RS 232 Default RS 422 reen Torr on o orr on on on aca sway orr ow ore orF a on on Pers sway rr on oF orr on on on Pena sme orr ow ore ore on on on RS 485 4W Pomem on Pore on on o rena swe on ore on on o eem on forr on on o oaea on fore on on 0 7 5 Software Specification Item Protocol Notes JetBox 9500 Boot Loader Red boot le Appendix Korenix Item Protocol Notes JetBox 9500 Shell OS shell command GNU ash Busybox Linux normal command utility 1 11 1 telnetd Telnet telnet server daemon X inetd TCP server manager program udhcp DHCP DHCP client server X syslogd X e2fsprogs Ext2 Ext3 file system utilities 1 39 i2c tools I2C I2C tools for Linux 3 0 1 Itp testsuite Linux Test Project 20070228 usbmount USB automatically mounts USB mass storage 0 0 14 1 devices usbutils USB USB utilities 0 72 Network related SW package bridge utils Ethernet bridge utility 1 0 6 ethtool Ethernet configure tool 6 iptables NAT setting tool 1 3 8 net snmp SNMP SNMP support package 5 1 2 v1 v2c v3 ntp NTP NTP utility 4 2 4p2 openssh SSH1 0 2 0 SSH support package
59. vian pvid ethtool P DEVNAME set vlan pvid pvid N ethtool t DEVNAME reset statistic ethtool s DEVNAME set port status soeed 10 100 duplex half full port onloff Enable or Disable this port autoneg on loff ethtool S DEVNAME get statistic Example e Get LAN interface port 3 status ethtool lan 3 Port Status Speed 100Mb s Duplex Full Flow Control off Port Setting Port on Auto negotiation on Link detected Down e Set LAN interface port 3 status ethtool s lan 3 speed 100 ethtool s lan 3 port off ethtool s lan 3 autoneg off ethtool s lan 3 duplex half e Set LAN interface port 3 vian pvid to 2 ethtool P lan 3 pvid 2 5 2 Vconfig program name vconfig Description Create and remove VLAN devices on LAN port Usage Options interface name vlan_id tag port_id untag port_id example vconfig add lan 2 tag 1 2 3 untag 4 rem vlan name show Display Vlan Table set_flag set_egress_map interface name flag num 0 1 vlan name skb_ priority vlan_qos set_ingress_map vian name skb_ priority vian_qos set_name_type name type Example e Add a vlan interface vconfig add lan 2 untag 1 2 3 4 Link Ethernet inet addr 192 168 Ee Beast SE P ET fr 212 ET li iet 6 qi d d m TE del s n i ae e F HwWaddr Eer 04 CE i f f D fe E E a Ac Dy i H4 d l UP BROADCAST RUNNING MULTICAST OI VT Coc
60. work redundancy system recovery and robust passive cooling protected against the dusts and spills shock amp vibration resistance to adopt in severe industrial vertical markets such as transportation substation or hazardous environment 1 1 Applied Models JetBox9500 series JetBox9400 series JetBox5400 series JetCard5400 Note SW features might be different according to different products le Overview Korenix Chapter 2 Getting Start 2 1 System login Users can enter the JetBox Linux environment via the user name root and no password is required login root password none 2 1 1 Serial Console The serial console port gives users a convenient way of connecting to JetBox console utility This method is particularly useful when using JetBox for the first time The signal is transmitted over a direct serial connection so you do not need to know either of JetBox s IP address in order to connect to the serial console utility Use the serial console port settings shown below Pay fne Serial console port setting Once the connection is established the following windows will open Korenix Getting Start pe GC COM13 115200 band Tera Term YT File Edit Setup Control Window Help Welcome to the Korenix Embedded Linux environment JetBox 9530 Login root Oct 16 69 19 21 Login 1141 root Login on ttys a Serial console screen To log in type the Login name and password as reques

Download Pdf Manuals

image

Related Search

Related Contents

FastRTPSGEN User`s Manual  Philips Motor protection filter CRP774  Protimeter MMS  Télécharger (gratuit)  Commercial Electric EC5930BK-XC Installation Guide    Zanussi fm 9611 Use & Care Manual  

Copyright © All rights reserved.
Failed to retrieve file