问题:我有一些基于Debian或Ubuntu的服务器
allow-hotplug eth0
有的跟
auto eth0
在/ etc / network / interfaces中。 他们有什么区别? 如果我是正确的,那么在启动期间,如果插入了一个cobel,它们都会启动接口。对吧?
谢谢
allow-hotplug允许你插入一个新的networking设备(比如打开网卡,PCMCIA卡等)。
auto只是自动检测被插入IIRC的端口以使接口联机。
allow-hotplug而不是auto的一个潜在的严重后果是allow-hotplug接口通常在发出
/etc/init.d/network restart
他们走下来,但不要再上来,这让你留下一个“下”的界面。