Agent and Edge AI
文章
标签
系列
测验
API 实测
方法
留言板
关于
EN
登录
注册
测验
OpenWrt 基础测试
青铜 10 题、白银 10 题;青铜偏基础,白银含 netifd/procd/ubus 进阶。练习模式覆盖对应段位全部题目。
倔强青铜 · 随机 10 题 · 考试模式
我的试卷
每个段位最多保留 3 份,生成第 4 份会自动移除最早一份。
1
协议处理器把地址/路由回传给 netifd,用哪组接口?
proto_init_update / proto_add_ipv4_address / proto_send_update
procd_open_instance / procd_close_instance
amxd_trans_apply
uci set / uci commit
2
`uci commit network` 之后 netifd 会自动应用吗?
只有重启才生效
会,procd 自动重启系统
会,commit 就是 reload
不会,还要 network reload 或 ifup
3
在 OpenWrt 里改完 LAN IP 后,最合适的提交并生效方式是?
只改 /etc/config/network,不 commit
删除 /etc/config/network 后重启
直接 reboot,UCI 会自动 commit
uci commit network && /etc/init.d/network reload
4
查看所有网络接口状态,常用?
reboot
uci commit network
opkg update
ubus call network.interface dump
5
`ifstatus wan` 底层主要调用什么?
ubus call network.interface status
uci set network.wan
ip link set wan up
procd_set_param respawn
6
netifd 的主要配置来源是?
/etc/opkg.conf
/etc/config/firewall
/etc/amx
/etc/config/network
7
`ubus wait_for network.interface.wan` 的语义是?
启动 ubusd
修改 IP 地址
立即删除对象
等对象出现,基于事件而不是 sleep 轮询
8
OpenWrt 22.03+ 默认防火墙框架是?
firewalld
ufw
fw4 + nftables
iptables-legacy
9
`opkg update` 的作用是?
重启网络服务
升级所有已安装软件
清理固件缓存
更新软件包索引列表
10
netifd 不负责下面哪件事?
呈现 LuCI 页面
通过 ubus 暴露接口状态
调用协议处理器
管理接口状态
提交并查看解析
返回