OpenWRT for Routerboard

For the lazy one or those who just want to try it out:

openwrt trunk - ATTITUDE ADJUSTMENT (bleeding edge, r28279)

download

ftp://ftp.drivehq.com/routerboard/openwrt/openwrt-ar71xx-nand-vmlinux-initramfs.elf

setup an tftp/bootp server

linux (as root):
#>
ifconfig eth0 192.168.1.99
dnsmasq -i eth0 --dhcp-range=192.168.1.100,192.168.1.200
–dhcp-boot=openwrt-ar71xx-nand-vmlinux-initramfs.elf
–enable-tftp --tftp-root=/tftp/ -d -u test -p0 -K --log-dhcp --bootp-dynamic

telnet or ssh into the RouterBoard and change to boot once over tftp:

#>
/system routerboard settings set boot-device=try-ethernet-once-then-nand

reboot and load tftp-image

connect the ethernet cable to eth1/wan port
disconnect and reconnect the powercable
wait until the led stops flashing

telnet into ramfs-image

connect the ethernet cable to eth2/lan port (or any other 2-5)
#>
telnet 192.168.1.1

now you can try everything out until you proceed to the next step

flash openwrt on the routerboard

WARNING this will override RouterOS and permanently install OpenWRT
it will also void you warranty and delete all data on the rootfs (it still keeps the bootloader and licences)
(in openwrt)
#>
wget2nand ftp://ftp.drivehq.com/routerboard/openwrt

install software
(in openwrt)
#>
opkg update
opkg list (install packages)
opkg install luci (for web-interface if you need it)
opkg install [any other software]

passwd (after it you can use ssh to login)


I testet it on RB450G and it work well :smiley:
Q

Mmmm, great news and thanks for proposing this release :slight_smile:
Switch chip is manageable through cli too?

Did you managed to do some basic bench?

luci is a bit broken I am uploading the latest trunk pkg

replace /etc/opkg.conf

#>
cd /etc/
rm opkg.conf
wget ftp://ftp.drivehq.com/routerboard/openwrt/opkg.conf

or edit /etc/opkg.conf and add
src drivehq ftp://ftp.drivehq.com/routerboard/openwrt/packages

I didn’t do any performance tests but it works faster than under qemu-kqemu trunk on 800Mhz intel

Q

switch works (tested including vlans)
here is my /etc/config/network for using it with vlan and each port seperated!

config ‘interface’ ‘loopback’
option ‘ifname’ ‘lo’
option ‘proto’ ‘static’
option ‘ipaddr’ ‘127.0.0.1’
option ‘netmask’ ‘255.0.0.0’

config ‘interface’ ‘lan’
option ‘ifname’ ‘eth0’
option ‘proto’ ‘static’
option ‘ipaddr’ ‘192.168.1.253’
option ‘netmask’ ‘255.255.255.0’

config ‘switch’
option ‘name’ ‘eth1’
option ‘reset’ ‘1’

config ‘switch_vlan’
option ‘device’ ‘eth1’
option ‘vlan’ ‘1’
option ‘vid’ ‘1’
option ‘ports’ ‘0t 1’

config ‘switch_vlan’
option ‘device’ ‘eth1’
option ‘vlan’ ‘2’
option ‘vid’ ‘2’
option ‘ports’ ‘0t 4’

config ‘switch_vlan’
option ‘device’ ‘eth1’
option ‘vlan’ ‘3’
option ‘vid’ ‘3’
option ‘ports’ ‘0t 3’

config ‘switch_vlan’
option ‘device’ ‘eth1’
option ‘vlan’ ‘4’
option ‘vid’ ‘4’
option ‘ports’ ‘0t 2’

config ‘interface’ ‘port2’
option ‘ipaddr’ ‘192.168.202.1’
option ‘proto’ ‘static’
option ‘device’ ‘eth1.1’
option ‘netmask’ ‘255.255.255.0’

config ‘interface’ ‘port3’
option ‘ipaddr’ ‘192.168.203.1’
option ‘proto’ ‘static’
option ‘device’ ‘eth1.2’
option ‘netmask’ ‘255.255.255.0’

config ‘interface’ ‘port4’
option ‘ipaddr’ ‘192.168.204.1’
option ‘proto’ ‘static’
option ‘device’ ‘eth1.3’
option ‘netmask’ ‘255.255.255.0’

config ‘interface’ ‘port5’
option ‘ipaddr’ ‘192.168.205.1’
option ‘proto’ ‘static’
option ‘device’ ‘eth1.4’
option ‘netmask’ ‘255.255.255.0’

config ‘interface’ ‘lan2’
option ‘ifname’ ‘eth0.2’
option ‘proto’ ‘dhcp’





it has a vlan.2 on eth0 and that works fine
I didn’t test vlan trunk on eth1-5…
took me quite a while to figure out and if somebody knows why I can’t use “vlan0” on the switch than please write back

Well, vlan ID 0 is sometimes not valid for a real VLAN configuration. It is sometime associated with "untagged’ frames… although a real frame can be tagged with 0 as an ID…
Just avoid this ID and you’ll be fine most of the times :slight_smile:

I mean of course using “vlan0=no vlan” using the switch in plain untagged mode. I tried but it seems it always needs vlan1 at least to forward any packets.

Hi,

I see that 10.03.1 final version is out.
OpenWRT patches for Routerboad compatibility are now integrated or not yet?

Some update: Lateste stable version, Attitude Adjustment, now works out of the box with the RB450G.
I used this procedure twice with success, to migrate from rOS to OpenWRT (backfire then AA): http://blog.poettner.de/2011/05/27/openwrt-trunk-on-mikrotik-routerboard-411750/

The only negative point is that the initramfs file is not provided yet. But you can use their other official ar71xx-nand files without the need to customize/compile them to get them working on a RB450G. I guess you can still use the initramfs file in the original post of this thread to do the work.

can use this image for RB750?
Thanks in advance!

We have made a tutorial to make RouterBoard 750GL Openflow enabled.
What this tutorial contain:
-Installation procedure of OpenWRT on RouterBoard GL750
-Installation procedure of Openflow v1.0 on RouterBoard GL750
-Installation of NOX/POX/Floodlight Controller
-Testing of OpenFlow enabled Network
This tutorial can be downloaded from the following link:
http://andash.seecs.nust.edu.pk/andash_publications/SDN.pdf

just to chime in - you can install openflow package and have openflow 1.0 directly on the router with RouterOS.

When is openflow V1.3 expected to be integrated into routeros? Or at least V1 with hardware switching?