Pages

Tuesday, September 11, 2012

network configuration openwrt

after login to our device. we can set the network configuration of the tp-link. Here's the step:

vi /etc/config/network

network configuration tp link mr3020 openwrt



vi = visual editor to edit file in linux.
/etc/config/ = location of the folder.
network = the configuration file network.


example configuration of mine:




config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option ifname 'eth0'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.3.10'           -> ip address's our  tplink
        option netmask '255.255.255.0'
        option gateway '192.168.3.1'          -> this should be the source gateway of your internet lan.
        option dns '192.168.3.1 8.8.8.8'  



please match with your local area network setting.   after that press    esc then :wq  to write the change and save it. After that type

/etc/init.d/network restart
or

uci commit network


to restarted the network and commit/run  all our new configuration..




test it by ping to any address. for example ping 8.8.8.8 and ping google.com



if it success then the packet will reply back.....  

congratulations...  we already connected our device to internet.... we can now download some software / library from the repository that can be used for adding some functionality of our device.


nb : if ping 8.8.8.8 works, and ping google.com dont works,  you have to set the dns first.
      it can be done by editting vi /etc/resolv.conf.



now proceed to install extroots to our tplink to move all the instalation of the program to external devices like usb / hardisk that can be found here.






7 comments:

  1. I did something wrong, and cannot connect my device via telnet or putty. I tried failsafe mode. Still getting just time-out. What can u advise?

    ReplyDelete
  2. which firmware do u flash before? the failsafe will work if u flash the firmware in my post at http://tplinkmr3020.blogspot.com/2012/08/basic1-choosing-openwrt-version.html.

    cos i have tried it before.


    are u already make sure to change the ip of ur computer to 192.168.1.x? and when u press the button, the led will blinked. watch this out. no blink = fail safe reset not started.

    ReplyDelete
  3. i installed openwrt but batman version. how can i take it?

    ReplyDelete
  4. Very interesting. I really like this post..
    routerlogin.net

    ReplyDelete
  5. Nice Blog Post thanks for sharing it.
    Go for the best services and devices to help yourself. Talk to the customer care executives with the free spirit if some kinds of issues stop you to make the necessary decisions. TP-Link Support phone Number

    ReplyDelete
  6. Best online slots machines - JT Hub
    Find the best slots machines in Vegas online. 남원 출장마사지 We have the 울산광역 출장샵 best online slots machines in the 의왕 출장샵 state of 거제 출장샵 Michigan. Find top sites, games and 경산 출장샵 offers!

    ReplyDelete