不要问我有什么用,呵呵
下面这段加到/etc/rc.common 最后
#########################
#Random mac address every time#
MAC1=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`;
MAC2=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`;
ifconfig en0 ether $MAC1;
ifconfig en1 ether $MAC2;
ifconfig en0 down;
ifconfig en0 up;
ifconfig en1 down;
ifconfig en1 up;
下面这段加到/etc/rc.common 最后
#########################
#Random mac address every time#
MAC1=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`;
MAC2=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`;
ifconfig en0 ether $MAC1;
ifconfig en1 ether $MAC2;
ifconfig en0 down;
ifconfig en0 up;
ifconfig en1 down;
ifconfig en1 up;