Difference between revisions of "Mesh/OpenWRT"

Jump to navigation Jump to search
1,398 bytes added ,  12:54, 15 August 2013
 
(7 intermediate revisions by 2 users not shown)
Line 43: Line 43:


  telnet 192.168.1.1
  telnet 192.168.1.1
(I've found that if you get an error here--like no path to host or connection refused--immediately after flashing, unplugging the router and plugging it back in is useful)


If it asks for a password use 'passwd' (without the quotes).
If it asks for a password use 'passwd' (without the quotes).
Line 170: Line 172:


If you restart networking on the device after changing your lan ip address, you will be disconnected from your terminal session. Log back in using the new ip address. (You may have to manually update your ip address on your computer).
If you restart networking on the device after changing your lan ip address, you will be disconnected from your terminal session. Log back in using the new ip address. (You may have to manually update your ip address on your computer).
You may need to assign yourself a new manual IP
<pre>
  sudo ifconfig eth0 192.168.2.2 netmask 255.255.255.0 up
</pre>


There may also be a need to update your nameserver.
There may also be a need to update your nameserver.
Line 288: Line 295:
The Bullet will now be running a TFTP server 192.168.1.20
The Bullet will now be running a TFTP server 192.168.1.20


Ensure that you have an IP address different from 192.168.1.20 and in the 192.168.1.x range and do the following:
Ensure that you have an IP address different from 192.168.1.20 and in the 192.168.1.x range.
 
You may want to stop network-manager (I believe Ubuntu mostly)
 
sudo /etc/init.d/network-manager stop
 
On most linux machines (assuming your ethernet interface is eth0) setting your ip address looks like this:
 
sudo ifconfig eth0 192.168.1.12 netmask 255.255.255.0 up
Afterwards do the following:


  tftp 192.168.1.20
  tftp 192.168.1.20
Line 469: Line 486:


   sudo /etc/init.d/network-manager start
   sudo /etc/init.d/network-manager start
= OpenWRT on a VM =
For some development, it might be easier to run OpenWRT on a virtual machine. This keeps you from having to worry about a bunch of wires and carrying around a router everywhere and mostly keeps you from having to deal with flashing and some other more unpleasant stuffs.
OpenWRT has a page on how to setup a VM on virtualbox:
[http://wiki.openwrt.org/doc/howto/virtualbox OpenWRT Virtualbox HowTo]
This page has some helpful hints, especially on setting up network configurations:
[http://ediy.com.my/index.php/blog/item/31-openwrt-in-virtualbox OpenWRT in VirtualBox]
I've uploaded an already setup VM with a basic dev environment here:
[https://github.com/max-b/sudomesh-dev-vm Pre-configured VM]
The readme page should have some details on how to set it up and work around some issues.

Navigation menu