ip-maddress
Display or modify multicast addresses
TLDR
List multicast addresses and how many programs are subscribed to them
List device specific addresses
Join a multicast group statically
Leave a static multicast group
Display help
SYNOPSIS
ip maddress { show | add | delete } [ dev DEVICE ] [ maddr MULTICAST_ADDRESS ]
PARAMETERS
show
Display multicast addresses configured on interfaces. Can be optionally filtered by device.
add
Add a multicast address to a specific interface.
delete
Delete a multicast address from a specific interface.
dev DEVICE
Specify the network interface to work with.
maddr MULTICAST_ADDRESS
The multicast address to add, delete, or filter by.
DESCRIPTION
The `ip-maddress` command is part of the `iproute2` suite and is used to display and modify multicast addresses associated with network interfaces. It provides a way to manage multicast group memberships for specific interfaces. You can list all multicast addresses or filter the output based on a particular interface. Operations include adding or deleting multicast addresses from interfaces. The command is crucial for applications that rely on multicast communication, allowing system administrators to control the flow of multicast traffic at the interface level. It's a low-level tool, often used in conjunction with other networking utilities, and understanding its functionality is essential for network configuration and troubleshooting. Incorrectly configuring multicast addresses can disrupt network communication, so it's important to use this command with caution and understanding.
EXAMPLES
To show all multicast addresses on the system:
ip maddress show
To show multicast addresses on eth0:
ip maddress show dev eth0
To add the multicast address 224.0.0.1 to eth0:
ip maddress add dev eth0 maddr 224.0.0.1
To delete the multicast address 224.0.0.1 from eth0:
ip maddress delete dev eth0 maddr 224.0.0.1