Flashing Devices
Version 1 (Francisco Jiménez , 06/22/2014 03:19 pm) → Version 2/3 (Francisco Jiménez , 06/22/2014 03:19 pm)
h1. Flashing Devices <WORK IN PROGRESS>
It may be useful as reference https://wiki.eigenlab.org/index.php/Flashing
As example, we are going to flash a Tp-Link tl-wdr3600
h2. *DISABLE Network-Manager*
If you are using Network-Manager and want avoid problems that may brick our device disable it, so:
1.- Look for the Ethernet interface (usually eth0) mac address
<pre>
ip link show
</pre>
Let's hypothesize it is 00:16:aa:cd:bc:dd
2.- We are going to edit Network-Manager configuration using vim or your preferred text editor
<pre>
vim /etc/NetworkManager/NetworkManager.conf
</pre>
3.- Go to the main section of the file and add introduce
<pre>
no-auto-default=00:16:aa:cd:bc:dd
</pre>
4.- Then save and exit from the editor
5.- To finish, we restart Network-Manager
<pre>
service network-manager restart
</pre>
done! but now we have to configure the Ethernet interface manually.
h2. *SWITCH ON THE ETHERNET INTERFACE*
<pre>
ip link set up dev eth0
</pre>
Note: if you desire to switch it off for any reason:
<pre>
ip link set down dev eth0
</pre>
h2. *FIND YOUR ROUTER IP*
It is usually reported on the box, in our case it is 192.168.0.1, if you mis this information you can try to figure it out sniffing on the interface with the help of *wireshark* .
h2. *CONFIGURE YOUR ETHERNET INTERFACE*
To calculate a proper IP address for your interface you can use ipcalc, in our case
<pre>
ipcalc 192.168.0.1/24
</pre>
Note: 192.168.0.1/24 is the IP of our router
Choose an IP between HostMin and HostMax, we choosen 192.168.0.2/24
<pre>
sudo ip address add 192.168.0.2/24 dev eth0
</pre>
h2. *ENTER ADMINISTRATIVE INTERFACE OF YOUR ROUTER*
Open the page http://your_touter_ip with your browser in our case the url is http://192.168.0.1
It may be useful as reference https://wiki.eigenlab.org/index.php/Flashing
As example, we are going to flash a Tp-Link tl-wdr3600
h2. *DISABLE Network-Manager*
If you are using Network-Manager and want avoid problems that may brick our device disable it, so:
1.- Look for the Ethernet interface (usually eth0) mac address
<pre>
ip link show
</pre>
Let's hypothesize it is 00:16:aa:cd:bc:dd
2.- We are going to edit Network-Manager configuration using vim or your preferred text editor
<pre>
vim /etc/NetworkManager/NetworkManager.conf
</pre>
3.- Go to the main section of the file and add introduce
<pre>
no-auto-default=00:16:aa:cd:bc:dd
</pre>
4.- Then save and exit from the editor
5.- To finish, we restart Network-Manager
<pre>
service network-manager restart
</pre>
done! but now we have to configure the Ethernet interface manually.
h2. *SWITCH ON THE ETHERNET INTERFACE*
<pre>
ip link set up dev eth0
</pre>
Note: if you desire to switch it off for any reason:
<pre>
ip link set down dev eth0
</pre>
h2. *FIND YOUR ROUTER IP*
It is usually reported on the box, in our case it is 192.168.0.1, if you mis this information you can try to figure it out sniffing on the interface with the help of *wireshark* .
h2. *CONFIGURE YOUR ETHERNET INTERFACE*
To calculate a proper IP address for your interface you can use ipcalc, in our case
<pre>
ipcalc 192.168.0.1/24
</pre>
Note: 192.168.0.1/24 is the IP of our router
Choose an IP between HostMin and HostMax, we choosen 192.168.0.2/24
<pre>
sudo ip address add 192.168.0.2/24 dev eth0
</pre>
h2. *ENTER ADMINISTRATIVE INTERFACE OF YOUR ROUTER*
Open the page http://your_touter_ip with your browser in our case the url is http://192.168.0.1