![]() | 1 ryd994 2015-03-09 23:11:08 +08:00 via Android 生成一个,验证如果不是就重新生成 检查第二位不难吧 |
![]() | 2 Septembers 2015-03-09 23:38:32 +08:00 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-03-10 10:20:49 +08:00 你需要用哪类代码生成。 |