User Tools

Site Tools


linux:ubuntu_generate_macaddress

Bash Script For Generating 10 Random Mac Addresses

#!/bin/bash
count=10
for i in $(seq $count); do
    echo -n 00-60-3F-DF; dd bs=1 count=2 if=/dev/random 2>/dev/null |hexdump -v -e '/1 "-%02X"' ; echo ""
done
linux/ubuntu_generate_macaddress.txt · Last modified: 24/11/2023 12:18 by Allan