# 设置网络连接(静态IPV4 IPV6地址 注意/24 /64这些CIDR代码要根据实际来定 可以小 但是不能大 CIDR代码要包含网关 ip addr show 看地址 ip -4 route 看V4网关 ip -6 route 看V6网关) cat <<EOF> /mnt/etc/config/network config interface ‘loopback’ option device ‘lo’ option proto ‘static’ option ipaddr ‘127.0.0.1’ option netmask ‘255.0.0.0’
config interface ‘lan’ option device ‘eth0’ option proto ‘static’ list ipaddr ‘IPV4地址/24‘ option ipgw ‘IPV4网关‘ list ip6addr ‘IPV6地址/64‘ option ip6gw ‘IPV6网关‘ list dns ‘2606:4700:4700::1111’ list dns ‘2606:4700:4700::1001’ list dns ‘1.1.1.1’ list dns ‘1.0.0.1’ EOF