这是一个创建于 3782 天前的主题,其中的信息可能已经有所发展或是发生改变。
不要问我有什么用,呵呵
下面这段加到/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
![sunxiaonian](https://cdn.v2ex.com/avatar/a545/05e6/11354_normal.png?m=1397624334) |
|
1
sunxiaonian 2014-02-10 15:37:38 +08:00
我们公司是MAC白名单形式,自动换了之后就没法上网了
|
![YouXia](https://cdn.v2ex.com/avatar/8b33/5fa0/44582_normal.png?m=1435406667) |
|
2
YouXia 2014-02-10 16:11:26 +08:00 via Android
赞。
|
![SoloCompany](https://cdn.v2ex.com/avatar/9faf/494a/33797_normal.png?m=1360164610) |
|
3
SoloCompany 2014-02-10 17:05:19 +08:00 1
这个帖子出现在 MAC 节点下有点莫名的喜感
|
![sweetomy](https://cdn.v2ex.com/avatar/79a6/5ef2/97508_normal.png?m=1423930680) |
|
4
sweetomy 2015-03-09 21:52:50 +08:00
第二位必须是偶数吧
|