普通路由模式和桥接模式的设置和提交的区别
但可能一开始是默认是桥接的关系,所以路由设置的节点可能没有设好。
配置升级时是会恢复出厂设置的,重启时会调用脚本 cfg_config_init.sh,脚本也是代码的一部分,所以要达到 只需修改配置不用修改代码的目的时,脚本就必须写好。
点击配置默认将配置存放到 /data/etc/rzcfg 目录下的 main_config
普通路由模式mdl脚本配置:(需要优化下,在cfg_judge里加判断)
#!/bin/shfunction route()
{echo -e "\033[;7;32mSetting Route Mode\033[0m"mdlcfg -a USR_BROADBAND_PROTOCOL_TYPE=IPv4mdlcfg -a USR_BROADBAND_PD_ENABLE=Nomdlcfg -a USR_BROADBAND_MTU_IP=1500mdlcfg -a USR_BROADBAND_ACTION=Modifymdlcfg -a USR_NETWORK_AP_ENABLE=Routemdlcfg -a USR_BROADBAND_VLANID=4096mdlcfg -a USR_BROADBAND_DOT1P=0mdlcfg -a USR_BROADBAND_VLANMode=UNTAGmdlcfg -a USR_BROADBAND_ENCAP=1483mdlcfg -a USR_BROADBAND_TYPE=0mdlcfg -a USR_BROADBAND_ACTIVE=Yesmdlcfg -a USR_BROADBAND_SERVICELIST=INTERNETmdlcfg -a USR_BROADBAND_BANDACTIVE=N/Amdlcfg -a USR_BROADBAND_LAN1=Nomdlcfg -a USR_BROADBAND_WANMODE=Routemdlcfg -a USR_BROADBAND_LINKTYPE=linkIPmdlcfg -a USR_BROADBAND_DOT1Q=Nosmdlcfg -a USR_BROADBAND_DOT1P=Nomdlcfg -a USR_BROADBAND_NAT_ENABLE=Enablemdlcfg -a USR_BROADBAND_IGMPPROXY=Nomdlcfg -a USR_BROADBAND_DHCPEnable=1mdlcfg -a USR_BROADBAND_PD_ORIGIN=Nonemdlcfg -a USR_BROADBAND_IFIDX=1}route
echo -e "\033[;7;33mNow you can use: ./main WANINFO_WANIF APWANINFO_COMMON WANINFO_WANPVC\033[0m"
本文链接:https://my.lmcjl.com/post/5089.html
展开阅读全文
4 评论