Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How to increment a MAC Address?

by Anonymous Monk
on Dec 13, 2011 at 13:51 UTC ( [id://943341]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/bin/sh
    mac=$(ifconfig eth0|grep HWaddr|awk '{print $5}'| tr '[a-z]' '[A-Z]' |
    + cut -d ':' -f1-5)
    ...
    macinc=$(echo "obase=16; $incout"|bc)
    fi
    echo "Mac address= $mac:$macinc"
    
  2. or download this
    Mac address= 00:19:D1:F6:F7:F1
    
    Mac address= 00:19:D1:F6:F7:00
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://943341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-23 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found