0

If 000.a83.b1c.08e is a valid MAC address then why is 123.123.123.123 not a valid address? Also if how do we identify its 32 bit long or 48 bit long

2
  • 1
    An ethernet MAC is 48bits. IPv4 addresses are 32bits. They are two completely different things. Anything asking for a MAC will almost certainly be expecting hex input.
    – Ricky
    Commented Oct 29, 2021 at 6:57
  • @Ricky how do we know its 32 bit pls explain Commented Oct 29, 2021 at 7:01

1 Answer 1

0

The standard notation for 48-bit MAC addresses is with 12 hexadecimal digits (0-9,a-f), often grouped in two, four, or six, rarely three.

32-bit IPv4 addresses are usually written as four decimal octets, 0-255 each, separated by dots.

123.123.123.123 looks very much like an IPv4 address, but could actually be interpreted as a MAC address as well (hexadecimal, in groups of three), 12-31-23-12-31-23 in IEEE notation. However, 12... indicates a locally-administered address (the U/L bit is set) which might not be accepted in many environments.

Similarly, any odd value in the second digit would indicate a group address (I/G bit set) which cannot be used as a source address in general. 0, 4, 8, or c in the second hex digit would indicate a valid, global, unicast address.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.