OpenWrt Forum Archive

Topic: OpenWrt kamikaze 8.09 - is DIR-300 fully supported?

The content of this topic has been archived on 4 Feb 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've installed openwrt kamikaze 8.09 with x-wrt (from x-wrt downloads).

The problem is it comes up with only one interface eth0 and behaves like a switch.

I found the following information below at
http://oldwiki.openwrt.org/OpenWrtDocs( … d)300.html
It seems to require a patch to the kernel which was committed into the trunk at version 15305 while kamikaze 8.09
was built from 14365.  This suggests that users of DIR-300 would need to get a recent build of openwrt and install that.

As a novice, I am daunted by the idea of building the kernel and installing my own custom build.
Is there a clean way to patch the kernel that I have?

I tried to apply the following without any patching, and the result is that I cannot contact the router any more; so back to
redboot and reload the squashfs before trying anything else, I guess.

--------------------------------------------------------------------------------
Setting up the switch
If you applied the patch as described in 2.1 you can set up the switch with VLAN's by editing /etc/config/network :
config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

#Setup the swith
config 'switch' '0'
        option 'vlan1' '0 1 2 3 5*t'  #assign port 0 1 2 & 3 to VLAN1
        option 'vlan2' '4 5t'         #assign port 4 to VLAN2

#Create a local interface
config 'interface' 'lan'
        option 'ifname' 'eth0.1'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'
        option 'defaultroute' '0'
        option 'peerdns' '0'

#Create a WAN (internet) interface
config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'dhcp'

TODO: I haven't tested to see if the VLAN port numbers correspond to the actual switch port numbers, you might find that port 4 is the WAN port now and the 'WAN' port is part of the lan VLAN.
This part is not finished yet, but here you can read about it: https://dev.openwrt.org/ticket/4050 (see '2.1 compile image' also)

The discussion might have continued from here.