Nasser Heidari

2010-05-02

Generating a Random mac Address

Filed under: Linux — Nasser Heidari @ 07:02

# 2>/dev/null dd if=/dev/urandom bs=1 count=6 | od -t x1|sed '2d;s/0000000 *//;s/ /:/g;s/::*$//'

Advertisements