这是一个创建于 3904 天前的主题,其中的信息可能已经有所发展或是发生改变。
不要问我有什么用,呵呵
下面这段加到/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;
4 条回复 • 2015-03-09 21:52:50 +08:00
|
|
1
sunxiaonian 2014-02-10 15:37:38 +08:00
我们公司是MAC白名单形式,自动换了之后就没法上网了
|
|
|
2
YouXia 2014-02-10 16:11:26 +08:00 via Android
赞。
|
|
|
3
SoloCompany 2014-02-10 17:05:19 +08:00 1
这个帖子出现在 MAC 节点下有点莫名的喜感
|
|
|
4
sweetomy 2015-03-09 21:52:50 +08:00
第二位必须是偶数吧
|