Community discussions

MikroTik App
 
openwrt
just joined
Topic Author
Posts: 3
Joined: Sat Sep 24, 2011 1:10 pm

OpenWRT for Routerboard

Sat Sep 24, 2011 1:57 pm

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/openw ... tramfs.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 :D
Q
 
User avatar
elgo
Member Candidate
Member Candidate
Posts: 151
Joined: Sat Apr 02, 2011 2:34 am
Location: France

Re: OpenWRT for Routerboard

Sat Sep 24, 2011 2:03 pm

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

Did you managed to do some basic bench?
RB450G - OpenWrt (so much more stable than with routerOS)
-> now: UBNT EdgeRouter Lite

(very unlikely to be MT customer again in the future)
 
openwrt
just joined
Topic Author
Posts: 3
Joined: Sat Sep 24, 2011 1:10 pm

Re: OpenWRT for Routerboard

Sat Sep 24, 2011 2:40 pm

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
 
User avatar
elgo
Member Candidate
Member Candidate
Posts: 151
Joined: Sat Apr 02, 2011 2:34 am
Location: France

Re: OpenWRT for Routerboard

Sat Sep 24, 2011 4:36 pm

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 :)
RB450G - OpenWrt (so much more stable than with routerOS)
-> now: UBNT EdgeRouter Lite

(very unlikely to be MT customer again in the future)
 
openwrt
just joined
Topic Author
Posts: 3
Joined: Sat Sep 24, 2011 1:10 pm

Re: OpenWRT for Routerboard

Sat Sep 24, 2011 4:43 pm

Well, vlan ID 0 is sometimes not valid for a real VLAN configuration.
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.
 
User avatar
elgo
Member Candidate
Member Candidate
Posts: 151
Joined: Sat Apr 02, 2011 2:34 am
Location: France

Re: OpenWRT for Routerboard

Wed Dec 28, 2011 11:42 am

Hi,

I see that 10.03.1 final version is out.
OpenWRT patches for Routerboad compatibility are now integrated or not yet?
RB450G - OpenWrt (so much more stable than with routerOS)
-> now: UBNT EdgeRouter Lite

(very unlikely to be MT customer again in the future)
 
User avatar
elgo
Member Candidate
Member Candidate
Posts: 151
Joined: Sat Apr 02, 2011 2:34 am
Location: France

Re: OpenWRT for Routerboard

Fri May 24, 2013 6:03 pm

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/open ... rd-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.
RB450G - OpenWrt (so much more stable than with routerOS)
-> now: UBNT EdgeRouter Lite

(very unlikely to be MT customer again in the future)
 
hoatienii
just joined
Posts: 1
Joined: Fri Jul 04, 2014 10:54 am

Re: OpenWRT for Routerboard

Fri Jul 04, 2014 10:56 am

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/open ... rd-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!
 
azeem08179
just joined
Posts: 2
Joined: Fri Nov 07, 2014 3:41 pm

Re: OpenWRT for Routerboard

Mon Nov 10, 2014 10:32 am

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_ ... ns/SDN.pdf
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6284
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: OpenWRT for Routerboard

Wed Nov 12, 2014 10:29 am

just to chime in - you can install openflow package and have openflow 1.0 directly on the router with RouterOS.
 
ellerem
just joined
Posts: 2
Joined: Fri Feb 20, 2015 10:36 am

Re: OpenWRT for Routerboard

Fri Feb 20, 2015 10:40 am

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?

Who is online

Users browsing this forum: No registered users and 35 guests