Sunday, August 16, 2015

ipv4 map hex address tip

I was demo'ing a few ipv6 address format and one tip that I would like to point out. If you every wanted to generate a map ipv4  hex-address and using the 32bit address just use the ping6  & specify your 32bit address and the OS will convert it to a map hex decimal value.

Take the  ipv4 32bit address of ,  how do we find the  hex-decimal value?

SOC1>ping6 2001::
PING6(56=40+8+8 bytes) 2001:db8:99:101:74cd:bd15:c861:9abf --> 2001::

a0a5001 would our  hex-decimal for 10 10 80 1. So if you ever have a exam and one of the question is to transpose a 32bit ipv4 into the hex equal, this simple tip could speed up the conversion.

btw this works under macosx, linux , bsd, and cisco IOS/IOS-XR

Ken Felix
NSE ( Network Security Expert) and Route/Switching Engineer.
kfelix  -----a----t---- socpuppets ---dot---com

    ^     ^
=(  *  * )=
      /  \

No comments:

Post a Comment