root@TinaLinux:~# ifup -a
ip: RTNETLINK answers: File exists
ifup: can't move '.new' to '': No such file or directory
root@TinaLinux:~# ls /etc/network/*
/etc/network/interfaces
/etc/network/if-down.d:
/etc/network/if-post-down.d:
/etc/network/if-pre-up.d:
wait_iface
/etc/network/if-up.d:
root@TinaLinux:~#
如上图,ifup是busybox里面的。。。 interfaces里面也有正确的ip设置,就是搞不懂这个 ifup: can't move '.new' to '': No such file or directory到底是哪里操作的。有大佬指点必有重谢!
离线
/sbin/ifup 是一个脚本,你可以添加一些打印语句,或者一步一步调试看是什么错误。
我这里ifup在busybox里面的 不是一个脚本
root@TinaLinux:~# ls -l /sbin/ifup
lrwxrwxrwx 1 root root 14 Mar 28 2022 /sbin/ifup -> ../bin/busybox
离线