[TL-WR710N] Changement d’adresse ip

Changement d’adresse ip.

1) Branchement :

Routeur TL-WWR710N / Port LAN <--> Ordinateur / Port eth0

2) Connexion en ssh :

[~] ➔ ssh root@192.168.1.1
root@192.168.1.1's password:


BusyBox v1.22.1 (2014-09-18 14:05:13 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r42608)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:~#

3) Modification de l’adresse ip :

– Remplacer l’adresse du routeur par : 192.168.1.200
– Ajouter le gateway : 192.168.1.1
– Ajouter le dns de Google : 8.8.8.8

Ouvrir :

/etc/config/network

Chercher :

config interface 'lan'
        option ifname 'eth1'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

Remplacer par :

config interface 'lan'
        option ifname 'eth1'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.200'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option gateway '192.168.1.1'
        option dns '8.8.8.8'

4) Redémarrer le réseau :

root@OpenWrt:~# /etc/init.d/network restart

5) Connexion vers le routeur avec sa nouvelle adresse ip :

[~] ➔ ssh root@192.168.1.200
The authenticity of host '192.168.1.200 (192.168.1.200)' can't be established.
RSA key fingerprint is 94:7a:3c:c4:fe:e3:7c:f6:b7:31:67:e0:43:24:b7:e1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.200' (RSA) to the list of known hosts.
root@192.168.1.200's password:


BusyBox v1.22.1 (2014-09-18 14:05:13 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r42608)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:~#

6) Brancher le routeur et l’ordinateur sur la box internet.

7) Connexion en ssh sur le routeur :

[~] ➔ ssh root@192.168.1.200
...
root@OpenWrt:~#

8) Teste de la connexion internet :

root@OpenWrt:~# ping -c 5 ardenne-informatique.com
PING ardenne-informatique.com (5.135.181.217): 56 data bytes
64 bytes from 5.135.181.217: seq=0 ttl=51 time=37.121 ms
64 bytes from 5.135.181.217: seq=1 ttl=51 time=36.891 ms
64 bytes from 5.135.181.217: seq=2 ttl=51 time=36.902 ms
64 bytes from 5.135.181.217: seq=3 ttl=51 time=37.442 ms
64 bytes from 5.135.181.217: seq=4 ttl=51 time=36.751 ms

--- ardenne-informatique.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 36.751/37.021/37.442 ms
root@OpenWrt:~#

9) Liens :

http://cmikavac.net/2012/06/03/tp-link-wr703n-openwrt-post-installation-tips/
http://bluemarmot.ekibox.net/en/node/58

Partagez la publication !!! \m/