我有以下 IP,但是我无法将它们绑定到我的机器,我收到了错误。
这是我拥有的 IP。
2607:5300:60:1234::/64 - 随服务器
158.69.123.123/29 一起提供 - 在所有者服务器 167.114.123.123 之后购买 - 随服务器一起提供
这是我的文件
auto eth0
iface eth0 inet static
address 116.114.123.98
netmask 255.255.255.0
network 116.114.123.0
broadcast 116.114.123.255
gateway 116.114.123.254
iface eth0 inet6 static
address 2607:5300:60:1234::
netmask 64
post-up /sbin/ip -family inet6 route add 2607:5300:60:79ff:ff:ff:ff:ff dev eth0
post-up /sbin/ip -family inet6 route add default via 2607:5300:60:79ff:ff:ff:ff:ff
pre-down /sbin/ip -family inet6 route del default via 2607:5300:60:79ff:ff:ff:ff:ff
pre-down /sbin/ip -family inet6 route del 2607:5300:60:79ff:ff:ff:ff:ff dev eth0
感谢您花时间阅读这个问题!
这是我得到的错误
# /etc/init.d/networking restart
[....] Running /etc/init.d/networking restart is deprecated because it may not r[warnble some interfaces ... (warning).
[....] Reconfiguring network interfaces...RTNETLINK answers: File exists
**Failed to bring up eth0.**
RTNETLINK answers: File exists
RTNETLINK answers: File exists
done.
答案1
您无法启动已启动的接口。“文件存在”错误表示您正在尝试添加已存在的 IP 地址和路由。请确保接口已关闭且 IP 和路由已消失,然后运行脚本,您就不会收到这些错误。