Linux command
ip-maddress 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
List
ip maddress
Example
ip maddress show dev [eth0]
Join
sudo ip maddress add [33:33:00:00:00:02] dev [eth0]
Leave
sudo ip maddress delete [33:33:00:00:00:02] dev [eth0]
Example
ip maddress help
说明
ip maddress manages link-layer multicast addresses. It displays which multicast groups a device is subscribed to and allows manual addition or removal of static multicast memberships. 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.
参数
- show dev _DEVICE_
- Display multicast addresses (optionally for specific device)
- add _ADDRESS_ dev _DEVICE_
- Join a multicast group on specified device
- delete _ADDRESS_ dev _DEVICE_
- Leave a multicast group on specified device
- help
- Display help information
FAQ
What is the ip-maddress command used for?
ip maddress manages link-layer multicast addresses. It displays which multicast groups a device is subscribed to and allows manual addition or removal of static multicast memberships. 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.
How do I run a basic ip-maddress example?
Run `ip maddress` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does show dev _DEVICE_ do in ip-maddress?
Display multicast addresses (optionally for specific device)