MAC Address and IP Address

MAC Address

MAC address is 6 bytes (48 bits) long and represented by 12 hexadecimal digits. The first 3 bytes are assigned to the NIC manufacturer by IEEE which is globally unique and is known as the OUI (Organizationally unique identifier). The last 3 bytes are assigned to the device by the vendors, which results in each device having a unique identifier.

But if you issue this command to show the MAC address of your PC or switch/router.

PC

ipconfig /all

Switch / Router


        show interface gigabitEthernet 0/0/0
    

There may be an address called BIA (Burned-In Address) following the MAC address, which is identical to the MAC address.

what is the difference between MAC and BIA address?

By default the MAC and BIA address are identical. But MAC address can be motified by the software while BIA is permanent.

MAC address is only significant in local network, as it’s based on the layer 2(Data Link) of the OSI model.If a device wants to transit the messages to another one in the same local network, both of source and destination MAC address are required. However if the message is going to be transited to a remote network, the IP addresses become essential.

Spcial MAC addresses

Type Address Protocol
Broadcast ffff.ffff.ffff MAC
Broadcast 255.255.255.255 IPv4
Multicast Start with 00-01-5E IPv4
Multicast Class D Ipv4
Multicast Start with 33-33 IPv6
Multicast ff00::/8 IPv6

IP Address

There are two common versions of IP addresses

  • IPv4 address
  • IPv6 address

IPv4 address is 4 bytes (32 bits) in length and is represented by 12 decimal digits separated by . (period), with every 8 bits forming a block. Each of these block is called octet which ranges from 0 to 255.

IPv4 is classful addresses.

Class Range Feature
A 1.0.0.0 ~ 126.0.0.0 ———
B 128.0.0.0 ~ 191.255.0.0 ———
C 192.0.0.0 ~ 223.255.255.0 ———
D 224.0.0.0 ~ 239.255.255.255 Multicast
E 240.0.0.0 ~ 255.255.255.255 Experiments

Special IPv4 address

Address Note
127.0.0.0/8 Loop back address
169.254.0.0/16 Link-local address that is assigned by OS
255.255.255.255 Broadcast

IPv6 address

IPv6 address is 16 bytes (128 bits) in length and is represented by 32 hexadecimal digits seperated by : (colon), with every 4 hexadecimal digits forming a block.

When a message is transmitted over a network, it is first sent to the default gateway, which is typically a router. The router then uses its routing table to determine the best path to send the message to its intended destination. This allows the message to be delivered efficiently and quickly to the recipient.

Leave a Comment

Your email address will not be published. Required fields are marked *