Octet

Walk me through the IPv6 multicast address format and the well-known groups you see on a LAN.

Show the answer

Say this first

Multicast addresses start with ff. The next 4 bits are flags and the 4 after that are the scope, so ff02:: is link scope and ff05:: is site scope. On a LAN you see ff02::1 all nodes, ff02::2 all routers, ff02::5 and ff02::6 for OSPFv3, ff02::1:2 for DHCPv6 and the solicited-node groups ff02::1:ffXX:XXXX. On Ethernet each group maps to MAC 33:33 plus the low 32 bits of the address.

Go deeper

Format

Output
| 8 bits | 4 bits | 4 bits |       112 bits      |
|  ff    | flags  | scope  |      group ID       |

Flags: T=0 means a permanent, well-known group; T=1 a transient one. The P and R flags mark prefix-based and embedded-RP addresses used in multicast routing.

Scope valueScope
1interface-local
2link-local
4admin-local
5site-local
8organization-local
eglobal

Groups worth knowing by heart

AddressGroup
ff02::1all nodes
ff02::2all routers
ff02::5OSPFv3 all SPF routers
ff02::6OSPFv3 DR and BDR
ff02::9RIPng
ff02::aEIGRP
ff02::dPIM
ff02::12VRRP
ff02::16MLDv2 reports
ff02::1:2all DHCPv6 relay agents and servers
ff05::1:3all DHCPv6 servers (site scope)
ff02::1:ff00:0/104solicited-node groups

MAC mapping

33:33 followed by the last 32 bits of the group. ff02::1 becomes 33:33:00:00:00:01, and ff02::1:ff3c:4d5e becomes 33:33:ff:3c:4d:5e. Only 32 of the 112 group bits make it into the MAC, so several groups can share one MAC. The NIC lets them all in and the IP stack does the final check.

Traps

  • Saying ff02::2 reaches all routers in the network. Only the ones on the link.
  • Mixing up the IPv4 multicast MAC prefix 01:00:5e with the IPv6 one 33:33.
How did you do?Book 4.3 MulticastBook 4.2 IP Version 6