Last updated
Converting Between Common MAC Address Formats
The same MAC address in all four common formats:
Input: 00:1A:2B:3C:4D:5E (Linux/macOS colon format)
Output in all formats:
─────────────────────────────────────────────────────────────────────
Colon-separated (Linux/macOS): 00:1A:2B:3C:4D:5E
Hyphen-separated (Windows): 00-1A-2B-3C-4D-5E
Dot-separated (Cisco): 001A.2B3C.4D5E
No separator (raw hex): 001A2B3C4D5E
Lowercase colon: 00:1a:2b:3c:4d:5e
Windows to Linux Format Conversion
Convert a MAC address from Windows Device Manager format to Linux format for use in iptables or network configuration:
Input (Windows format): 00-1A-2B-3C-4D-5E
Target format: Linux colon-separated
Output: 00:1A:2B:3C:4D:5E
Use in Linux iptables:
iptables -A INPUT -m mac --mac-source 00:1A:2B:3C:4D:5E -j ACCEPT
Cisco Dot Notation Conversion
Convert a MAC address from Cisco IOS format to standard colon format:
Input (Cisco format): 001A.2B3C.4D5E
Target format: Colon-separated
Output: 00:1A:2B:3C:4D:5E
Use in Cisco ACL:
mac access-list extended ALLOW-DEVICE
permit host 001A.2B3C.4D5E any
Batch Conversion of Multiple MAC Addresses
Convert a list of MAC addresses from mixed formats to a consistent format. Input (mixed formats):
00-1A-2B-3C-4D-5E
aa:bb:cc:dd:ee:ff
001A.2B3C.4D5E
001A2B3C4D5F
00:11:22:33:44:55
Settings: Convert all to uppercase colon-separated format
Output:
00:1A:2B:3C:4D:5E
AA:BB:CC:DD:EE:FF
00:1A:2B:3C:4D:5E
00:1A:2B:3C:4D:5F
00:11:22:33:44:55
OUI Manufacturer Lookup
After formatting, the tool identifies the manufacturer from the OUI prefix:
MAC Address: 00:1A:2B:3C:4D:5E
OUI Lookup:
OUI: 00:1A:2B
Manufacturer: Cisco Systems, Inc.
Address: San Jose, CA, US
Assignment type: MA-L (MAC Address Large)
MAC Address: 3C:22:FB:12:34:56
OUI Lookup:
OUI: 3C:22:FB
Manufacturer: Apple, Inc.
Address: Cupertino, CA, US
Case Conversion
Some systems require uppercase hex digits, others lowercase:
Input: aa:bb:cc:dd:ee:ff (lowercase)
Uppercase output: AA:BB:CC:DD:EE:FF
Lowercase output: aa:bb:cc:dd:ee:ff
Use case: Windows DHCP reservations require uppercase.
Linux systems typically use lowercase.
Cisco IOS uses uppercase without separators in some contexts.
IPv6 EUI-64 Address Generation
Generate the IPv6 link-local address from a MAC address using the EUI-64 process:
MAC Address: 00:1A:2B:3C:4D:5E
EUI-64 Process:
1. Split MAC in half: 00:1A:2B | 3C:4D:5E
2. Insert FF:FE in middle: 00:1A:2B:FF:FE:3C:4D:5E
3. Flip universal/local bit (bit 7 of first octet):
00 = 0000 0000 → flip bit 7 → 0000 0010 = 02
4. Result: 02:1A:2B:FF:FE:3C:4D:5E
IPv6 Link-Local Address: fe80::021a:2bff:fe3c:4d5e/64
Use in network planning:
This is the link-local address the device will use
for IPv6 neighbor discovery on the local network segment.
DHCP Reservation Format
Generate MAC address entries in the format required for DHCP reservations:
MAC Address: 00:1A:2B:3C:4D:5E
Windows DHCP Server (PowerShell):
Add-DhcpServerv4Reservation -ScopeId 192.168.1.0 `
-IPAddress 192.168.1.100 `
-ClientId "001A2B3C4D5E" `
-Description "Printer-Floor2"
Linux ISC DHCP (dhcpd.conf):
host printer-floor2 {
hardware ethernet 00:1a:2b:3c:4d:5e;
fixed-address 192.168.1.100;
}
Cisco IOS:
ip dhcp pool PRINTER-FLOOR2
host 192.168.1.100 255.255.255.0
client-identifier 001a.2b3c.4d5e