Summary of the content on the page No. 1
WebNet User’s Guide
I/O Consulting A/S
Preliminary Version
6 April 2001
Summary of the content on the page No. 2
2 WebNet User’s Guide
Summary of the content on the page No. 3
Contents 1 Introduction 7 1.1 What is the WebNet? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.2 The WebNet Start kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3 About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2 Unpacking 9 2.1 Package Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2 The WebNet DIMM Module . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3 The WebRJS Adapter Boar
Summary of the content on the page No. 4
5 Monitoring and Statistics 24 5.1 Console output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.2 File System Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.3 Network Quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.4 Socket Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.5 Test and Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.5.1 Hardware Tests
Summary of the content on the page No. 5
B.2 Your ARP table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 B.3 AutoIP Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 C References 41 WebNet User’s Guide 5
Summary of the content on the page No. 6
List of Figures 1 The WebRJS module with the WebNet module inserted . . . . . . . . . . . 7 2 The WebNet DIMM module . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 The component side of the WebRJS-DCE board . . . . . . . . . . . . . . . 10 4 The WebNet module is being inserted into the WebRJS module . . . . . . . 11 5 The WebNet module inserted into the WebRJS module . . . . . . . . . . . 11 6 The WebNet home page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 7 Setup of
Summary of the content on the page No. 7
1 Introduction 1.1 What is the WebNet? The WebNet is a small electronic device, capable of serving as a gateway between another electronic device and an ethernet network – for instance an intranet or the Internet. The WebNet can connect to other electronic devices via e.g. its RS-232 interface. The user interface of the WebNet consists of a number of web pages contained in the device andpresentedbyitsbuilt-inwebserver. Astandardwebbrowserisusedtoviewandbrowse these pages. Once connected to the u
Summary of the content on the page No. 8
1.3 About this Manual ThepurposeofthismanualistomakethenewWebNetowneracquaintedwiththeWebNet 1 start kit and get started using it . First, in section 2 we unpack and identify the parts of the start kit. Then, in section 3 we install the unit and connect to it with a web browser. Sections 4, 5 and 6 are a tour round the various configuration and monitoring/statistics pages of the WebNet. In section 7 we look at the basics in writing and running scripts for making dynamic web pages. In section 8, w
Summary of the content on the page No. 9
2 Unpacking 2.1 Package Contents The WebNet Start kit consists of the following items: ² How To Get Started sheet (See also apendix A). ² The WebNet DIMM module. ² The WebRJS adapter board. ² An AC adapter (240V/50Hz). ² An ethernet UTP Cat. 5 interface cable (2 m). ² An RS-232 DB9BU interface cable (1,8 m) ² WebNet User’s Guide. 2.2 The WebNet DIMM Module The front side of the WebNet module is the one with the IC with the white label on it. On Figure 2, the numbers indicate: Figure 2: The WebNe
Summary of the content on the page No. 10
3. Label with ethernet MAC-address (hardware address) 4. Connector The status LED’s on the board indicate: Green Server activity level (“heartbeat”) Red Internet activity — input/output via the network. Yellow Network activity — general activity on the attached ethernet. 2.3 The WebRJS Adapter Board The WebRJS adapter board has a component side and a side with the connector for the WebNet DIMM module. The component side is shown on Figure 3, and the numbers indicate the following: 1. RS-232 sock
Summary of the content on the page No. 11
2.4 Connecting the boards The WebNet DIMM module is inserted into the connector on the WebRJS board, at an angle of approx. 20 degrees. It is pushed gently into the socket, and when the connector on the WebNet module cannot be seen anymore, the module is pushed towards the WebRJS board until it “clicks”. The modules are now connected. Figure 4 show the connector side of the WebRJS board, with the WebNet module being inserted. Figure 5 show the WebRJS board with the WebNet module properly inserte
Summary of the content on the page No. 12
3 Installation 3.1 Connecting to the Network Besides the WebNet Start Kit, you need a computer with TCP/IP and a web browser installed on it. The computer must be equipped with a network adapter. You can either connect the WebNet Start Kit directly to the network adapter on the computer, or you can connect it to a network hub or switch on the local area network. 3.1.1 Connecting to a hub When connecting to a hub to which the computer is attached, the “straight” network cable supplied with the St
Summary of the content on the page No. 13
3.2 Applying power The AC adapter is connected to the power socket on the WebRJS board and power is switched on. The LED’s should start flashing after a few seconds, and after an additional few seconds the unit has finished booting. 3.3 Assigning an IP Address AWebNetmoduleis,fromthefactory,configuredtoruninaso-called“Auto-IPmode”. The technicaldetailsofassigninganIP-addresswithAuto-IPmodeareexplainedinsection3.3.1 below,butyoumaywanttoskipthatsectionandproceedtothedescriptionofthenecessary steps t
Summary of the content on the page No. 14
² Are the WebNet and the PC on the same network segment? ² Is the connected hub/switch or network adapter capable of running 10Mbit? ² Did you type the correct MAC/IP addresses in the arp-command? Check it with arp -a (lists all arp entries) ² Is the unit properly connected (check the link indicator LED on the hub/switch or network adapter that the board is connected to)? ² Did you wait approx 10 seconds after power-on before issuing the ping? Theauto-IPistypicallythewaytoassignanIPaddressthefirs
Summary of the content on the page No. 15
Figure 6: The WebNet home page WebNet User’s Guide 15
Summary of the content on the page No. 16
4 Configuration Configuration of the WebNet module is done via the configuration pages accessible from the WebNet home page described above, under the headline “System Configuration”. The sectionsbeloweachdescribeonesuchconfigurationpage. Toaccessthesepages,ausername and password should be entered. By default, these are “admin” and “admin”, but they should be changed – see how in section 4.1 below. 4.1 Access Control Access control can be implemented at a more or less fine-grained level. By default, a
Summary of the content on the page No. 17
Figure 7: Setup of access rights for web users dir or ls list files in current working directory on the server !dir list files in current working directory locally (on the client) cd dirname change directory ( cd .. to go backwards) on the server lcd change directory ( lcd .. to go backwards) locally dirname (on the client) put file- upload a file to the server name get file- download a file from the server name bin set transfer mode to “binary” (8 bit transfer) ascii set transfer mode to “ascii” (7 b
Summary of the content on the page No. 18
A list of the most useful ftp commands is provided in Figure 8. Doing an “ls” after connecting with FTP will show a number of files and directories. The most important are shown in Figure 9. WebNet The “operating system” itself. autoexec Configuration file describing which scripts to run at startup. cgi-bin Root directory of dynamic webpages (WebScript scripts) etc Directory for configuration files webpages Root directory for static webpages (html pages) Figure 9: A list of the most important directo
Summary of the content on the page No. 19
Each user is also assigned a number of privileges: “Get” is the ability to read files from the WebNet (download), “Put” is the ability to write files (upload), “Delete” is the ability to deletefilesfromtheWebNet,“Mkdir”istheabilitytocreatenewdirectoriesontheWebNet and “Rmdir” is the ability to remove directories on the WebNet. In Figure 10, the default settings are shown. 4.2 Network Settings The configuration form for the Network settings initially contains only a small number of entries, but can b
Summary of the content on the page No. 20
Figure 11: The configuration page for network settings 20 WebNet User’s Guide