As of July 2013 only access via the router'​s emergency web interface ​is required to install OpenWRT on this device. The normal ​web interface ​might complain about invalid image files and thus not work (as seen with vendor firmware version 2.14).

+

+

How to access ​the emergency web interface is described [[#​emergency.web.interface|below]].

-

=== Older trunk revisions (DIR-300-B1 and DIR-600-B2 ONLY) ===

+

After you have uploaded ​an OpenWRT ​firmware image via the emergency web interface and waited 90 seconds the OpenWRT on the router should be running and accessibla with your webbrowser under [[http://192.168.1.1]].

-

If using an older trunk revision (pre r27808) you may need to **convert** the obtained OpenWrt ​firmware image file into a specific dir-300 or dir-600 format before flashing. For this you require ​the v2image utility included in ftp://gpl.dlink.com/​DIR-300_revB/​dir300b.v2.02.source.tar.gz

For connection of STB, or replacement of one of LAN ports on WAN (in case of faulty WAN) we involve the 4th port of a router of dir300b1 - in other port won't work!

+

Example /​etc/​config/​network

+

<​code>​

+

​config switch_vlan

+

option device '​rt305x'​

+

option vlan '​1'​

+

option ports '1 2 3 6t'

+

+

config switch_vlan

+

option device '​rt305x'​

+

option vlan '​2'​

+

option ports '0 4 6t'

+

</​code>​

+

==== Default Router Settings ====

==== Default Router Settings ====

=== Model DIR-300 B1 ===

=== Model DIR-300 B1 ===

Line 209:

Line 213:

===== SD-card slot mod =====

===== SD-card slot mod =====

There is a working mod to add a SD-card slot to your DIR-300b1. Read post: [[https://​forum.openwrt.org/​viewtopic.php?​pid=183660#​p183660]]

There is a working mod to add a SD-card slot to your DIR-300b1. Read post: [[https://​forum.openwrt.org/​viewtopic.php?​pid=183660#​p183660]]

+

+

===== Emergency Web Interface =====

+

+

The DIR-600 and DIR-300 B routers have an emergency HTTP web interface that is accessible at [[http://​192.168.0.1]]. With this you can upload firmware if you accidently locked yourself out of the router or broke the installed firmware.

+

+

First, download a pre-compiled build (as of 30NOV13) for the DIR-600 or DIR-300 B series. These can be found here:

NOTE: Use the correct build for your hardware version! This can be found on the router itself or on the box it came in. e.g.: H/W Ver: B2.

+

+

If you're flashing from D-Link firmware, use the '​factory'​ builds.

+

+

To access the emergency web interface for flashing, unplug the power cable from the router, depress and hold the reset button in whilst simultaneously plugging in the power cable for at least five seconds, then release the reset button. ​

+

+

Another method to access the emergency web interface is to hold the reset button for 30-45 seconds with power plugged in.

+

+

Attach a network cable to one of the LAN ports on the router and the other end to your computers Ethernet interface. Set Ethernet interface I.P address to: 192.168.0.2 and subnet of: 255.255.255.0

+

+

NOTE: Disable any other interfaces present on your computer before proceeding; such as wireless interfaces.

+

+

Open a web-browser on your computer and access the emergency web interface at [[http://​192.168.0.1]].

+

+

Choose '​browse'​ and select your previously downloaded firmware file (.bin file extension) Then press '​upload'​ and watch the timer countdown from 90 seconds. At the end of the countdown the webpage will trying and refresh only to fail at this point you should set your computers network interface to obtain an i.p address automatically via DHCP and it should obtain a new address in the 192.168.1.X range. ​

+

+

You can now login to your router flashed with OpenWRT via your web-browser at: http://​192.168.1.1

The DIR-600 has a special D-Link firmware mode that runs a HTTP server on 192.168.0.1 for uploading new firmware. If you get locked out and/or brick your device, you can get into this mode by holding down the reset button for 30-45 seconds while booting the device. Note that the IP of the server it runs is 192.168.*0*.1.