说我有eth0 – 我的pipe理界面,然后eth1与mac1和eth2与mac 2 – 额外的nics运行。 我怎样才能重新分配eth1与mac2和eth2与mac1,并把他们没有重新启动?
编辑文件/etc/init.d/network
你可以评论/删除行./ifdown $i boot从下面./ifdown $i boot
action $"Shutting down interface $i: " ./ifdown $i boot
喜欢这个 :
action $"Shutting down interface $i: " # ./ifdown $i boot
停止系统在/etc/init.d/network restart上/etc/init.d/network restart 。
你将不得不通过这个检查mac地址是否被改变。 或者你将不得不重新启动系统。
您可以使用ip命令更改接口的名称。