1
ryd994 2015 年 3 月 9 日 via Android
生成一个,验证如果不是就重新生成
检查第二位不难吧 |
2
Septembers 2015 年 3 月 9 日
echo "from random import randint, choice; mac = map(lambda _: randint(0, 0xFF), xrange(6)); mac[2] = choice(range(0, 255, 2)); print ':'.join(map(lambda x: '%02x' % x, mac))" | python
see https://www.centos.org/docs/5/html/5.2/Virtualization/sect-Virtualization-Tips_and_tricks-Generating_a_new_unique_MAC_address.html |
3
sweetomy OP @Septembers 第二位不是偶数
|
4
invite 2015 年 3 月 10 日
你需要用哪类代码生成。
|