Skip to content

2. MAC Addresses

Layer 2 - MAC address or physical address and a way for switches to communicate

hexadecimal value - below ether ether 02:42:65:f9:ea:5d - 6 pairs of 2 1st 3 pairs are identifiers - ether 02:42:65:f9:ea:5d mac address lookup websites - use to identify devices on a network

Use ifconfig or ip a

boost@skilstak:~$ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:65:f9:ea:5d  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.67  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::20c:29ff:fe24:de52  prefixlen 64  scopeid 0x20<link>
        inet6 ::20c:29ff:fe24:de52  prefixlen 64  scopeid 0x0<global>
        ether 00:0c:29:24:de:52  txqueuelen 1000  (Ethernet)
        RX packets 2226  bytes 533356 (533.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 402  bytes 46905 (46.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 96  bytes 7640 (7.6 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 96  bytes 7640 (7.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0