openWrt-builder-docker/immortalwrt/files/etc/uci-defaults/99-custom
2025-01-11 13:02:22 +08:00

10 lines
377 B
Plaintext

# 修改网络设置
uci set network.lan.proto='static' # 静态ip地址模式
uci set network.lan.ipaddr='192.168.50.7' # ip
uci set network.lan.netmask='255.255.255.0' # 子网掩码
uci set network.lan.gateway='192.168.50.1' # 网关
uci set network.lan.dns='223.5.5.5' # DNS
uci commit network
uci set dhcp.lan.ignore='1' # 禁用 LAN 接口的 DHCP
uci commit dhcp