5433 views|3 replies

3238

Posts

5

Resources
The OP
 

MTK7688 OP router IP modification [Copy link]

This post was last edited by wateras1 on 2018-3-5 17:02 Why do we need to modify the IP address of the OP router for MTK7688? If you follow my previous post, you may find that the evaluation board can access the Internet, but the computer or mobile phone cannot access the Internet when connected to an unencrypted WIFI hotspot. Why? It is likely that the network segment of the upper-level router conflicts with the network segment of your current router. For example, the upper-level router I use is a TPLINK router with a network segment of 192.168.1.1. The IP of my development board is also 192.168.1.1. The IP segment assigned to connect to the WIFI hotspot cannot be the network segment of 192.168.1.1. We need to modify it to other network segments, such as setting the IP of the evaluation board to 192.168.4.1. This can solve the problem. At this time, we need to modify the configuration file of /etc/config/network. Let's first use the cat command to see what's in the network file We only need to change the IP in the red circle to 192.168.4.1 and it will be OK. The method is as follows: We enter 192.168.4.1 to enter the LUCI interface and you can see that my computer has logged into WIFI. In this way, a router function is realized. You can also configure the network access method like your home router, such as DHCP or PPPOE. The commands are as follows: The first one is used as a repeater mode. For wired mode, you don't need to enter the SSID and password. The second one is used as STA mode. Only you can access the Internet. It does not support access to devices. The third one is router mode. You can access the Internet by yourself and support devices connected to WIFI to access the Internet. The fourth one is PPPOE Internet access. Buy an Internet card from the operator to log in to the Internet. This is what I have at home. "widora_mode repeater" or "widora_mode repeater ssid key""widora_mode client" or "widora_mode client ssid key""widora_mode router""widora_mode pppoe" or "widora_mode pppoe name key" It is really simple to use OP to realize WIFI amplifier or router. All the configurations are realized. Life should be about drinking the strongest wine, singing the wildest songs, and DIY your own router. This content is originally created by EEWORLD forum user wateras1. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source



This post is from RF/Wirelessly

Latest reply

Thanks for sharing  Details Published on 2018-3-5 17:45
Personal signature淘宝:https://viiot.taobao.com/Q群243090717
多年专业物联网行业经验,个人承接各类物联网外包项目
 

1903

Posts

0

Resources
2
 
Thanks for sharing
This post is from RF/Wirelessly
 
 

3238

Posts

5

Resources
3
 
          Considering that our own DIY routers usually use DHCP to obtain the Internet IP, the default IP of many routers is 192.68.1.1, and we often need to modify the firmware. It is troublesome to configure it manually every time. It is better to modify it directly during OP configuration and then compile it into BIN and burn it to the evaluation board. At this time, we need to modify the uci-defaults.sh file. This file is in my project path as follows: openwrt_widora/package/base-files/files/lib/functions. Change the circled IP in the picture to 192.168.4.1, save and exit, and it will be ok after make -j3. Just burn OP to the board.

This post is from RF/Wirelessly
Personal signature淘宝:https://viiot.taobao.com/Q群243090717
多年专业物联网行业经验,个人承接各类物联网外包项目
 
 
 

3238

Posts

5

Resources
4
 
This post was last edited by wateras1 on 2018-3-6 16:55 If you modify the IP according to my configuration method, you will find that the IP still cannot take effect after burning the firmware. Why is this? In versions before openwrt 15.05, you only need to configure the lan ip address in /package/base-files/files/lib/functions/uci-default.sh. However, this part of the configuration has been modified in version 15.05, using the new uci-new-default.sh, which no longer includes the lan ip configuration and needs to be configured in /package/base-files/files/bin/config_generate. Configuration of uci-default.sh: That is to say, in 15.05 and later versions, you need to configure two files in the source code.

1. Change:/package/base-files/files/lib/functions/uci-default.sh

ucidef_set_interface_lan() { local ifname=$1 uci batch <<EOFset network.lan='interface'set network.lan.ifname='$ifname'set network.lan.type='bridge'#Change the way the LAN port obtains IP to staticset network.lan.proto='static'#Change the LAN port IP to 4.1set network.lan.ipaddr='192.168.4.1'set network.lan.netmask='255.255.255.0'set network.lan.ip6addr='fd04:bd3:80e8:1::1/64'EOF}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

2. Version 15.05 may also need to be changed: /package/base-files/files/bin/config_generate

[ -n "$vlan" ] && ifname=${ifname}.${vlan} uci -q batch <Firmware" align][="" batch="" calmer="" chaos="" color]="" color].force_link="[color=rgb(0," color].ifname="[color=rgb(0," color].ip6assign="[color=rgb(0," color].ipaddr="[color=rgb(0," color].macaddr="[color=rgb(0," color].netmask="[color=rgb(0," color].proto="[color=rgb(0," color].type="[color=rgb(0," color][="" color][color="rgb(0," color]eof="" color]eof如何查看自己的op的版本呢?可以登录luci查看也是web页面,我的版本信息如下:[table="98%,rgb(255," div="" lan)="" luci="" master="" menuconfig下,不然可能生成固件无法生效。="" network.[color="rgb(0," r49378="" table]正好需要配置两步。="" td][="" td][td][align="left]OpenWrt" tr]="" uci="" version[="" 切记,在make之前make="">
MTK7688 OP router IP modification


This post is from RF/Wirelessly
Personal signature淘宝:https://viiot.taobao.com/Q群243090717
多年专业物联网行业经验,个人承接各类物联网外包项目
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list