Supported Platforms
Related Documentation
- EX, J, M, MX, PTX, T Series
- show mld statistics in the Junos OS Operational Mode Commands
- J, M, MX, SRX, T Series
- Understanding MLD
- M, PTX, T Series
- Defining Routing Policies in the Routing Policy Configuration Guide
Filtering Unwanted MLD Reports at the MLD Interface Level
Suppose you need to limit the subnets that can join a certain multicast group. The group-policy statement enables you to filter unwanted MLD reports at the interface level.
When the group-policy statement is enabled on a router, after the router receives an MLD report, the router compares the group against the specified group policy and performs the action configured in that policy (for example, rejects the report if the policy matches the defined address or network).
You define the policy to match only MLD group addresses (for MLDv1) by using the policy's route-filter statement to match the group address. You define the policy to match MLD (source, group) addresses (for MLDv2) by using the policy's route-filter statement to match the group address and the policy's source-address-filter statement to match the source address.
To filter unwanted MLD reports:
- Configure an MLDv1 policy.[edit policy-statement reject_policy_v1]user@host# set from route-filter fec0:1:1:4::/64 exactuser@host# set then reject
- Configure an MLDv2 policy.[edit policy-statement reject_policy_v2]user@host# set from route-filter fec0:1:1:4::/64 exactuser@host# set from source-address-filter fe80::2e0:81ff:fe05:1a8d/32 orlongeruser@host# set then reject
- Apply the policies to the MLD interfaces where you prefer
not to receive specific group or (source, group) reports. In this
example, ge-0/0/0.1 is running MLDv1 and ge-0/1/1.0 is running MLDv2.[edit protocols mld]user@host# set interface ge-0/0/0.1 group-policy reject_policy_v1user@host# set interface ge-0/1/1.0 group-policy reject_policy_v2
- Verify the operation of the filter by checking the Rejected Report field in the output of the show mld statistics command.
Related Documentation
- EX, J, M, MX, PTX, T Series
- show mld statistics in the Junos OS Operational Mode Commands
- J, M, MX, SRX, T Series
- Understanding MLD
- M, PTX, T Series
- Defining Routing Policies in the Routing Policy Configuration Guide
Published: 2012-11-16
Supported Platforms
Related Documentation
- EX, J, M, MX, PTX, T Series
- show mld statistics in the Junos OS Operational Mode Commands
- J, M, MX, SRX, T Series
- Understanding MLD
- M, PTX, T Series
- Defining Routing Policies in the Routing Policy Configuration Guide