LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ip-maddress

manages link-layer multicast addresses

TLDR

List all multicast addresses
$ ip maddress
copy
List multicast addresses for a specific device
$ ip maddress show dev [eth0]
copy
List only IPv6 multicast group memberships
$ ip -6 maddress show
copy
Add a static link-layer multicast address
$ sudo ip maddress add [33:33:00:00:00:02] dev [eth0]
copy
Remove a static link-layer multicast address
$ sudo ip maddress delete [33:33:00:00:00:02] dev [eth0]
copy
Display help
$ ip maddress help
copy

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 device
delete, 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 groups
help
Display help information

INSTALL

sudo apt install iproute2
copy
sudo pacman -S iproute2
copy
sudo apk add iproute2-minimal
copy
sudo zypper install iproute2
copy
brew install iproute2
copy
nix profile install nixpkgs#iproute2
copy

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)

RESOURCES

Copied to clipboard
Kai