(Optional) Configuring the Range of IPv4 Multicast Groups That an Interface Can Join
Context
To control the range of IPv4 multicast groups that hosts on an interface's network segment can join, use an access control list (ACL) to filter Membership Report messages received on the interface. This ACL allows the switch to maintain only memberships of the interface in these multicast groups. For details on how to configure an ACL, see "ACL Configuration" in the CloudEngine 12800 and 12800E Series Switches Configuration Guide - Security.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
NOTE:
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
- For a Layer 3 sub-interface, run the following commands to configure termination of single-tagged packets on it.
- Run igmp group-policy { acl-number | acl-name acl-name } [ 1 | 2 | 3 ]
An ACL is applied to specify the range of multicast groups that the interface can join.
By default, an interface can join any multicast group.
NOTE:
When configuring an ACL rule for an interface, use the permit parameter in the rule command to allow hosts connected to the interface to join groups within the specified range. If no rule is configured in the ACL, hosts connected to the interface cannot join any groups.
- Run commit
The configuration is committed.