Penguin

Differences between version 30 and predecessor to the previous major change of DSL-302G.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 30 Last edited on Monday, August 14, 2006 4:52:51 pm by CraigMesservy Revert
Older page: version 29 Last edited on Saturday, August 5, 2006 12:22:36 pm by MattBrown Revert
@@ -1,9 +1,9 @@
 The DLink DSL-302G [ADSL] modem is actually a router/[DHCP]-server. What this means is that it is extremely simple to make this modem work with Linux. The following information describes how to get everything set up using the DebianLinux Sarge distribution running [GNOME] 2.8, but should be applicable to most [LinuxDistribution]s. 
  
 !Connecting 
  
- # Connect up the system physically. If the DSL-302G is the only thing you wish to connect to a particular phone jack, then you can just connect the [ADSL] modem directly to the socket. If you wish to run some other device (eg a standard modem, phone or fax) via the same phone jack then use the provided filter device which has both "[ADSL]" and "phone" outputs. In addition, all other phones/faxes/etc need to have a filter inserted between them and the existing phone jack in order to prevent the [ADSL] signal being audible to those devices. 
+ # Connect up the system physically. If the DSL-302G is the only thing you wish to connect to a particular phone jack, then you can just connect the [ADSL] modem directly to the socket. If you wish to run some other device (eg a standard modem, phone or fax) via the same phone jack then use the provided filter device which has both "[ADSL]" and "phone" outputs. In addition, all other phones/faxes/etc need to have a filter inserted between them and the existing phone jack in order o prevent the [ADSL] signal being audible to those devices. 
  
  # Connect the DSL-302G to your PC via an ethernet cable. The DSL-302G also provides a [USB] 1.1 connection; if you get this working then please add information on this to this page! 
  
  # Define an "eth0" network connection. You can do this using graphical desktop tools (eg "Applications|System Tools|Networking") or by editing /etc/network/interfaces (see "man 5 interfaces"). Simply select "[DHCP]" for this interface and ignore all other options. 
@@ -163,8 +163,37 @@
  
 The routine has been tested on an Optus supplied modem. Certain parameters such as timezone_combo may need to be customised by the user. Self explanatory instructions are included within the body of the code. 
  
 All corrections and improvements gratefully received. 
+  
+  
+! How to keep the clock accurate using SNTP  
+(stolen from http://www.sarguide.co.uk/sntp.php)  
+  
+''You will probably find that if you turn off your router that it looses the time that you had set. Also, you may find that the router just looses time gradually, meaning that alarms etc are not really that accurate.  
+Thanks to Oliver Broad for this.  
+''  
+  
+''You can keep the time accurate using SNTP (Simple Network Time Protocol). All you need to know is the address of an SNTP server. In this example i have used ntp2b.mcc.ac.uk  
+''  
+  
+''Log into the CLI and put in the following commands, pressing enter after each line:  
+''  
+  
+<verbatim>  
+create sntp servaddr dname ntp2b.mcc.ac.uk  
+modify sntp cfg enable  
+get sntp stats  
+</verbatim>  
+  
+''The first line creates an entry telling the router the address of the SNTP server. The second line enables SNTP on the router, and the third will give you the status of SNTP so you can check it has worked.  
+''  
+  
+''The router will then check periodically and update it's time so that it is always accurate. It checks every 15 minutes (I think!!)  
+''  
+  
+I have done the above on my 302G with success although after rebooting the time is as per the last SAVE operation until the link comes up and the time is automatically sync'd (however the UPTIME reported on the SYSTEM page is correct)  
+  
  
 ! Changing HTTP and Telnet Ports 
 If in half-bridge mode (or full-bridge) any attempts on port 80 or 23 on the external IP address if you have external access disabled in the 302g will refuse the connection. This is troublesome if you want port 80 or 23 to be sent to the router like all the rest of the ports for a web server. Changing the ports is done in the CLI via Telnet using the following commands: