Difference between revisions of "Mesh/OpenWRT"

Jump to navigation Jump to search
1,240 bytes added ,  11:28, 2 July 2013
no edit summary
Line 152: Line 152:


Restart networking and you should be set.
Restart networking and you should be set.
/etc/init.d/network restart
There are a few other issues that might come up if you're trying to connect to the internet through the device. One is that 192.168.1.1 is a common ip (subnet?) for home routers. If you're connecting from your computer to your open-wrt router over 192.168.1.1 and the wifi router you're attempting to connect to is also on 192.168.1.1, there will be a (routing?) problem connecting to the internet.
One easy fix is to edit your networking config file so that the open-wrt router is on a different subnet.
vi /etc/config/network
<pre>
config interface lan
option ifname  eth0
option type    bridge
option proto  static
option ipaddr  192.168.2.1
option netmask 255.255.255.0
</pre>
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).
There may also be a need to update your nameserver.
vi /etc/resolv.conf
<pre>
search lan
nameserver 192.168.1.1
</pre>
Where 192.168.1.1 is the ip address of the wireless router you are attempting to connect to the internet over.
After making the changes, restart networking.
/etc/init.d/network restart
/etc/init.d/network restart


Navigation menu