DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Generate a correct mac addr.

10 months ago 1 min read www.commandlinefu.com

Summary: This is a summary of an article originally published by CommandLineFu. Read the full original article here →

$ od -An -N6 -tx1 /dev/urandom |sed -e 's/^ *//' -e 's/ */:/g' -e 's/:$//' -e 's/^\(.\)[13579bdf]/\10/' 1) The last sed expression ensures the unicast/multicast bit is set to zero 2) The greedy space replacements are for portability across UNIX seds View this command to comment, vote or add to favourites View all commands by wuseman1 Diff your entire server config at ScriptRock.com

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com