NGW/Quick Start
From AVRFreaks Wiki
Contents |
NGW user and password
The NGW is set up with the followin user and password by default
user: root pwd: roota
Using the NGW as a router
The NGW can be used as a router and includes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS).
- Connect the NGW to an external network using the WAN.
- Connect to the NGW from your pc/client using the LAN
- The following settings apply:
IP address is in the range 10.0.0.20 - 10.0.0.25 DNS is set to 10.0.0.1 Gateway is set to 10.0.0.1 Reverse of IP address is dhcp-xxx.ngw.example.net
The client on the LAN network is now ready and can access the internet through the NGW.
Configuring the NGW router settings
The NGW can be configured through the NGW web interface. The NGW uses webif (part of OpenWRT) which allows users to change host, firewall and network settings.
- Open http://ngw.example.net
- Browse and change settings
Samba
The NGW can be used to share files using samba
- Map
\\samba\netdisk
to a local drive. - You will now access to the parallel flash if no SD-card is inserted. Access to the SD-card is given if card is inserted. The NGW samba server will behave as any other windows shares.
Configuring samba
The NGW includes Samba Web Administration Tool (SWAT) and this can be used to configure samba.
- Open http://www.example.net:901/
- Browse and change settings
USB
The NGW can be used as a USB mass-storage device when an SD-card is inserted.
- Connect to the NGW using an USB cable
- Follow the steps described in the USB mass storage device reference
- The NGW is now available as a mass-storage device
Note that the USB mass-storage can not be used at the same time as other applications access the storage device.
FTP
The NGW includes includes troll-ftpd, which is a freely available, small, but unsupported, FTP daemon from Trolltech AS.
- Use a ftp-client and go to ftp://ftp.example.net
- You can now upload files to the NGW. Uploads will be located under
/home/ftp
Terminals
Three possible terminal connections are available on the NGW
- Serial terminal.
- Available on the serial port (RS232) on the NGW, also used for kernel messages
- Run a terminal program (GtkTerm or hyperterm/realterm/minicom or) with communication speed to 115200 bps, 8 data bits, no parity, 1 stop bit.
- Easy and commonly used interface, low security
- Telnet terminal
- Available by connecting to telnet when connected to the LAN port using any telnet client
- Fast but low security
- SSH terminal
- Available by connecting to ssh when connecter to the LAN port using any ssh client
- High security
Dynamic web pages
The NGW allows user to create dynamic web pages. This can be a C/C++ program, shell script, Perl or any other executable format run on the web server. The NGW includes an example of a C program called cgipio.cgi
. The program allows users to toggle a LED on the NGW
- Open http://www.example.net
- Click on and follow the NGW GPIO demonstration