openwrt更换软件源

openwrt更换软件源_第1张图片

一、打开openwrt终端

vi /etc/opkg/distfeeds.conf

注释原有软件源,如下

#src/gz openwrt_base http://mirrors.ustc.edu.cn/openwrt/releases/$(uname -r)/targets/$(uname -m)/packages/base
#src/gz openwrt_luci http://mirrors.ustc.edu.cn/openwrt/releases/$(uname -r)/targets/$(uname -m)/packages/luci
#src/gz openwrt_packages http://mirrors.ustc.edu.cn/openwrt/releases/$(uname -r)/targets/$(uname -m)/packages/packages
#src/gz openwrt_routing http://mirrors.ustc.edu.cn/openwrt/releases/$(uname -r)/targets/$(uname -m)/packages/routing
#src/gz openwrt_telephony http://mirrors.ustc.edu.cn/openwrt/releases/$(uname -r)/targets/$(uname -m)/packages/telephony

src/gz openwrt_base http://downloads.openwrt.org/releases/21.02.0/packages/x86_64/base
src/gz openwrt_luci http://downloads.openwrt.org/releases/21.02.0/packages/x86_64/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/21.02.0/packages/x86_64/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/21.02.0/packages/x86_64/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/21.02.0/packages/x86_64/telephony

Esc wq保存退出

更新源

opkg update

测试安装软件

opkg install snmpd
opkg install snmp-utils

找到snmp配置文件打开添加如下

设置系统信息

sysLocation Location
sysContact Admin [email protected]

设置 SNMP 团体名(Community)

rocommunity public 10.10.10.106

更多

参考链接:https://developer.aliyun.com/article/842665

你可能感兴趣的:(openwrt更换软件源)