Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Change MAC address
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="imfromwales" data-source="post: 1550995" data-attributes="member: 299959"><p>Actually I have found that the following command strips the word ehter V1=$(ifconfig en1 | awk '/ether/ {print $2}')</p><p></p><p>Although I am having trouble, once I have created a MAC address, assigning it to a variable, I can only echo it. Why cant I set the following to a variable?</p><p></p><p>echo -n $V2; dd bs=1 count=3 if=/dev/random 2>/dev/null |hexdump -v -e '/1 "-%02X"'</p><p></p><p>V2 is the first 6 characters of my MAC address, formated like a2-a3-a4</p></blockquote><p></p>
[QUOTE="imfromwales, post: 1550995, member: 299959"] Actually I have found that the following command strips the word ehter V1=$(ifconfig en1 | awk '/ether/ {print $2}') Although I am having trouble, once I have created a MAC address, assigning it to a variable, I can only echo it. Why cant I set the following to a variable? echo -n $V2; dd bs=1 count=3 if=/dev/random 2>/dev/null |hexdump -v -e '/1 "-%02X"' V2 is the first 6 characters of my MAC address, formated like a2-a3-a4 [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Change MAC address
Top