OpenWRT on RB2011UAS-2HnD

Hi,

I’m fairly new to Mikrotik and I’ve been trying to burn the Openwrt firmware on my RB2011UAS-2HnD router.

I don’t have a serial cable (yet) so I’ve been trying to use ether boot to burn the firmware.

I’m using a virtual machine with Ubuntu on it, it has a bridged connection with my host machine.

Ubuntu is running dnsmasq with a DHCP and TFTP server, I’ve followed the dnsmasq configuration from this tutorial:

http://wiki.openwrt.org/toh/mikrotik/rb433

When I hold down the RESET button after ~20 seconds the LCD screen says “ether boot”, and then randomly restarts and goes into normal mode without loading the ramdisk, I have no clue why it does this.

After it restarts normally, the LCD shows it has successfully been assigned the IP address 192.168.6.101, which is correct according to the manual.
(At this point I am able to PING the router, but can’t telnet it?)

Which leaves me to think my DHCP server is working, but my TFTP server isn’t.

I also keep getting this message in my /var/log/syslog

Nov 14 16:59:50 ubuntu dnsmasq-dhcp[2911]: BOOTP(eth0) d4:ca:6d:ec:09:d8 no address configured

Snippets from my dnsmasq config:

interface=eth0

dhcp-range=192.168.6.100,192.168.6.119,12

dhcp-host=d4:ca:6d:ec:09:d9,192.168.6.101

enable-tftp

tftp-root=/tftpboot

dhcp-boot=/tftpboot/openwrt.elf,boothost,192.168.6.1

Host settings:

IP address: 192.168.6.1
Broadcast Address: 192.168.6.255
Subnet Mask: 255.255.255.0
Default Route: 192.168.6.101
Primary DNS: 192.168.6.101

Router LCD:

user: admin
password:
local ip: 192.168.88.1
ether1-gateway: 192.168.6.101

ifconfig:

thom@ubuntu:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:35:52:18  
          inet addr:192.168.6.1  Bcast:192.168.6.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe35:5218/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13282 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2370 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1201201 (1.2 MB)  TX bytes:204101 (204.1 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2873 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2873 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:262974 (262.9 KB)  TX bytes:262974 (262.9 KB)

Been stuck for a while now, I would appreciate it if anyone here could help me.

Thank you

Turns out I set the wrong MAC address in the dhcp-host option.

Now getting the following error:

Nov 14 17:51:17 ubuntu dnsmasq-tftp[4291]: cannot access /tftpboot/openwrt.elf: Permission denied

After a while, I managed to get the following message:

Nov 14 18:36:51 ubuntu dnsmasq-tftp[4849]: sent /tftpboot/openwrt.elf to 192.168.6.101

I should now be able to telnet 192.168.6.101, however, I get this:

thom@ubuntu:~/Desktop$ ping 192.168.6.101
PING 192.168.6.101 (192.168.6.101) 56(84) bytes of data.
From 192.168.6.1 icmp_seq=1 Destination Host Unreachable
From 192.168.6.1 icmp_seq=2 Destination Host Unreachable
From 192.168.6.1 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.6.101 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3999ms
pipe 3
thom@ubuntu:~/Desktop$ telnet 192.168.6.101
Trying 192.168.6.101...
telnet: Unable to connect to remote host: No route to host
thom@ubuntu:~/Desktop$

Any ideas?