一、描述
在重启centos系统后,让网口自动为promisc模式
二、方法
编辑/etc/rc.local文件
[root@localhost etc]# cat rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
ifconfig eth1 promisc
ifconfig eth2 promisc
ifconfig eth3 promisc
ifconfig eth4 promisc
[root@localhost etc]#