1、更改:/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'#更改lan口获取ip的方式为staticset network.lan.proto='static'#更改lan口ip为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}2、 15.05版本可能还需要更改:/package/base-files/files/bin/config_generate
[ -n "$vlan" ] && ifname=${ifname}.${vlan} uci -q batch <Firmware Version | OpenWrt Chaos Calmer 15.05.1 r49378 / LuCI Master (git-17.348.06533-e8c8020) |
Kernel Version | 3.18.29 |