This commit is contained in:
spiritlhl 2023-06-26 01:20:03 +00:00
parent 204407545c
commit bafa41e4f9
2 changed files with 2 additions and 1 deletions

View file

@ -198,6 +198,7 @@ ${sysctl_path} -p
# 重启配置
service networking restart
systemctl restart networking.service
ifreload -ad
# 已加载网络,删除对应缓存文件
if [ -f "/etc/network/interfaces.new" ];then
chattr -i /etc/network/interfaces.new

View file

@ -166,7 +166,7 @@ do
output=$(ip addr)
matches=$(echo "$output" | grep "inet6.*global dynamic")
if [ -n "$matches" ]; then
# SLAAC动态分配IPV6的处理
# SLAAC动态分配暂不做IPV6的处理
sed -i "/iface $interface inet6 auto/d" $1
echo "$interface" > "/root/iface_auto.txt"
else