ip-maddress
manages link-layer multicast addresses
TLDR
SYNOPSIS
ip [options] maddress { command | help }ip maddress [add | del] MULTIADDR dev NAMEip maddress show [dev NAME]
DESCRIPTION
ip maddress manages link-layer multicast addresses. It displays which multicast groups (link, IPv4 and IPv6) a device is subscribed to and allows manual addition or removal of static link-layer multicast addresses. The object name can be abbreviated, e.g. maddr.Multicast addresses enable one-to-many communication, where a single packet can be received by multiple hosts that have joined the multicast group. This is commonly used for service discovery, streaming, and cluster communication.
PARAMETERS
show [dev DEVICE]
Display multicast addresses (optionally for specific device)add LLADDRESS dev DEVICE
Attach a static link-layer multicast address to listen on the devicedelete, del LLADDRESS dev DEVICE
Detach a static link-layer multicast address from the device-4, -6
Global ip options to restrict output to IPv4 or IPv6 groupshelp
Display help information
INSTALL
CAVEATS
Adding and deleting multicast addresses requires root privileges. Changes are not persistent across reboots. add and delete only manage link-layer (MAC) addresses: it is impossible to join protocol (IGMP/MLD) multicast groups statically with this command; applications join those via socket options.
HISTORY
The ip maddress command is part of iproute2, the modern replacement for the older net-tools package. iproute2 was developed by Alexey Kuznetsov in the late 1990s to provide a unified interface to Linux networking features.
SEE ALSO
ip(8), ip-link(8), ip-address(8)
