/etc/network/interfaces 主要是用来对网路介面做设定 

例如 :

iface eth0 inet static // 设定固定 ip

iface eth0 inet dhcp // ip 由 dhcp 方式取得

 

下面这样写法 , 不会执行 up 后面的指令 , 还不清楚为什么

 

interfaces up command nok.png

 

iface eth1 inet6 static

address 2001:b021:34:007f::1

netmask 64

放到 up command 后面

这样就 up 后面的指令就会被执行

 

interfaces up command ok.png

 

更多详细可参考 man interfaces

 

待续

看完文章请按 赞 or 推 , 感谢啦 ~ 

相关文章