Multicast Filter Command List. D-Link DGS-3000 series
Reklama
Reklama
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Chapter 55 Multicast Filter Command List
create mcast_filter_profile {[ipv4 | ipv6]} profile_id <value 1-24> profile_name <name 1-32>
config mcast_filter_profile [profile_id <value 1-24> | profile_name <name 1-32> ] {profile_name <name 1-32> |
[add | delete] <mcast_address_list>}(1)
config mcast_filter_profile ipv6 [profile_id <value 1-24> | profile_name <name 1-32> ] {profile_name <name 1-
32> | [add | delete] <mcastv6_address_list>}(1)
delete mcast_filter_profile {[ipv4 | ipv6]} [profile_id [<value 1-24> | all] | profile_name <name 1-32>]
show mcast_filter_profile {[ipv4 | ipv6]} {[profile_id <value 1-24> | profile_name <name 1-32>]}
config limited_multicast_addr [ports <portlist> | vlanid <vlanid_list>] {[ipv4 | ipv6]} { [add | delete] [profile_id
<value 1-24> | profile_name <name 1-32>] | access [permit | deny]}
config max_mcast_group [ports <portlist> | vlanid <vlanid_list] {[ipv4 | ipv6]} {max_group [<value 1-1024> | infinite] | action [ drop | replace]}(1)
show max_mcast_group [ports <portlist> | vlanid <vlanid_list>] {[ipv4 | ipv6]}
show limited_multicast_addr [ports <portlist> | vlanid <vlanid_list>] {[ipv4 | ipv6]}
config cpu_filter l3_control_pkt <portlist> [{dvmrp|pim|igmp_query |ospf | rip | vrrp} | all] state [enable | disable]
show cpu_filter l3_control_pkt ports {<portlist>}
config control_pkt [ipv4 [{igmp | vrrp | rip | pim | dvmrp | ospf}(1) | all] | ipv6 [{mld | pim | ospf | ripng | nd}(1) | all]] replace {priority [<value 0-7> | none] | dscp [<value 0-63> | none]}(1)
show control_pkt {[ipv4| ipv6]}
55-1 create mcast_filter_profile
Description
This command is used to configure a multicast address profile. Multiple ranges of multicast addresses can be defined in the profile. If the IPv4 or ipv6 option is not specified, IPv4 is implied.
Format create mcast_filter_profile {[ipv4 | ipv6]} profile_id <value 1-24> profile_name <name 1-32>
Parameters
ipv4 - (Optional) Adds an IPv4 multicast profile.
ipv6 - (Optional) Adds an IPv6 multicast profile.
profile_id - The ID of the profile.
<value 1-24> - Enter the profile ID value here. This value must be between 1 and 24.
profile_name - Provides a meaningful description for the profile.
<name 1-32> - Enter the profile name here. The profile name can be up to 32 characters long.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To create a multicast address profile with a profile ID of 2 and a profile name of MOD:
514
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#create mcast_filter_profile profile_id 2 profile_name MOD
Command: create mcast_filter_profile profile_id 2 profile_name MOD
Success.
DGS-3000-26TC:admin#
55-2 config mcast_filter_profile
Description
This command is used to add or delete a range of multicast IP addresses to or from the profile.
Format config mcast_filter_profile [profile_id <value 1-24> | profile_name <name 1-32> ] {profile_name <name 1-
32> | [add | delete] <mcast_address_list>}(1)
Parameters
profile_id - ID of the profile.
<value 1-24> - Enter the profile ID value here. This value must be between 1 and 24.
profile_name - Provides a meaningful description for the profile.
<name 1-32> - Enter the profile name here. The profile name can be up to 32 characters long.
profile_name - (Optional) Provides a meaningful description for the profile.
<name 1-32> - Enter the profile name here. The profile name can be up to 32 characters long.
add - (Optional) Specify to add a multicast address.
delete - (Optional) Specify to delete a multicast address.
<mcast_address_list> - (Optional) List of the multicast addresses to be put in the profile. You can either specify a single multicast IP address or a range of multicast addresses using “-“.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To add the multicast address range 225.1.1.1 to 225.1.1.10 to the profile:
DGS-3000-26TC:admin#config mcast_filter_profile profile_id 2 add 225.1.1.1 - 225.1.1.10
Command: config mcast_filter_profile profile_id 2 add 225.1.1.1 - 225.1.1.10
Success.
DGS-3000-26TC:admin#
55-3 config mcast_filter_profile ipv6
Description
This command is used to add or delete a range of IPv6 multicast addresses to the profile.
Format config mcast_filter_profile ipv6 [profile_id <value 1-24> | profile_name <name 1-32> ] {profile_name <name
1-32> | [add | delete] <mcastv6_address_list>}(1)
515
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Parameters
profile_id - ID of the profile.
<value 1-24> - Enter the profile ID value here. This value must be between 1 and 24.
profile_name - Provides a meaningful description for the profile.
<name 1-32> - Enter the profile name here. The profile name can be up to 32 characters long.
profile_name - (Optional) Provides a meaningful description for the profile.
<name 1-32> - Enter the profile name here. The profile name can be up to 32 characters long.
add - (Optional) Specify to add an IPv6 multicast address.
delete - (Optional) Specify to delete an IPv6 multicast address.
<mcastv6_address_list> - (Optional) Enter a single IPv6 multicast IP address or a range of IPv6 multicast addresses This lists the IPv6 multicast addresses to put in the profile.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To add the IPv6 multicast address range FFF0E::100:0:0:20 – FFF0E::100:0:0:22 to profile ID 3:
DGS-3000-26TC:admin#config mcast_filter_profile ipv6 profile_id 3 add FF0E::100:0:0:20–
FFF0E::100:0:0:22
Command: config mcast_filter_profile ipv6 profile_id 3 add FF0E::100:0:0:20–
FFF0E::100:0:0:22
Success.
DGS-3000-26TC:admin#
55-4 delete mcast_filter_profile
Description
This command is used to delete a multicast address profile. If the IPv4 or IPv6 option is not specified, IPv4 is implied.
Format delete mcast_filter_profile {[ipv4 | ipv6]} [profile_id [<value 1-24> | all] | profile_name <name 1-32>]
Parameters
ipv4 - (Optional) Specify to delete an IPv4 multicast profile.
ipv6 - (Optional) Specify to delete an IPv6 multicast profile.
profile_id - Specify the ID of the profile
<value 1-24> - Enter the profile ID value here. This value must be between 1 and 24.
all - All multicast address profiles will be deleted.
profile_name - Specify to display a profile based on the profile name.
<name 1-32> - Enter the profile name value here. The profile name can be up to 32 characters long.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To delete the multicast address profile with a profile ID of 3:
516
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#delete mcast_filter_profile profile_id 3
Command: delete mcast_filter_profile profile_id 3
Success.
DGS-3000-26TC:admin#
To delete the multicast address profile called MOD:
DGS-3000-26TC:admin#delete mcast_filter_profile profile_name MOD
Command: delete mcast_filter_profile profile_name MOD
Total entries: 2
DGS-3000-26TC:admin#
55-5 show mcast_filter_profile
Description
This command is used to display the defined multicast address profiles. If the IPv4 or IPv6 option is not specified,
IPv4 is implied.
Format show mcast_filter_profile {[ipv4 | ipv6]} {[profile_id <value 1-24> | profile_name <name 1-32>]}
Parameters
ipv4 - (Optional) Specify to display an IPv4 multicast profile.
ipv6 - (Optional) Specify to display an IPv6 multicast profile.
profile_id - (Optional) Specify the ID of the profile
<value 1-24> - Enter the profile ID value here. This value must be between 1 and 24.
profile_name - (Optional) Specify to display a profile based on the profile name.
<name 1-32> - Enter the profile name here. The profile name can be up to 32 characters long.
Restrictions
None.
Example
To display all the defined multicast address profiles:
DGS-3000-26TC:admin#show mcast_filter_profile
Command: show mcast_filter_profile
Profile ID Name Multicast Addresses
---- ---------------- ---------------- ----------------
1 MOD 234.1.1.1 - 238.244.244.244
234.1.1.1 - 238.244.244.244
2 customer 224.19.62.34 - 224.19.162.200
Total Entries : 2
DGS-3000-26TC:admin#
517
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
55-6 config limited_multicast_addr
Description
This command is used to configure the multicast address filtering function on a port or VLAN. When there are no profiles specified with a port or VLAN, the limited function is not effective. When the function is configured on a port, it limits the multicast group operated by the IGMP or MLD snooping function. When this function is configured on a
VLAN, the multicast group is limited to only operate the IGMP or MLD layer 3 functions. If the IPv4 or IPv6 option is not specified, IPv4 is implied.
Format config limited_multicast_addr [ports <portlist> | vlanid <vlanid_list>] {[ipv4 | ipv6]} {[add | delete]
[profile_id <value 1-24> | profile_name <name 1-32> ] | access [permit | deny]}
Parameters
ports - Specify the range of ports to configure the multicast address filtering function.
<portlist> - Enter the list of port to be configured here.
vlanid - Specify the VLAN ID of the VLAN that the multicast address filtering function will be configured on.
<vlanid_list> - Enter the VLAN ID list here.
ipv4 - (Optional) Specify the IPv4 multicast profile.
ipv6 - (Optional) Specify the IPv6 multicast profile.
add - (Optional) Adds a multicast address profile to a port.
delete - (Optional) Deletes a multicast address profile to a port.
profile_id - (Optional) A profile to be added to or deleted from the port.
<value 1-24> - Enter the profile ID value here. This value must be between 1 and 24.
profile_name - (Optional) Specify the profile name used.
<name 1-32> - Enter the profile name here. The profile name can be up to 32 characters long.
access - (Optional) Specify the access of packets matching the addresses defined in the profiles.
permit - Specify that packets matching the addresses defined in the profiles will be permitted. The default mode is permit.
deny - Specify that packets matching the addresses defined in the profiles will be denied.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To add multicast address profile 2 to ports 1 and 3:
DGS-3000-26TC:admin#config limited_multicast_addr ports 1,3 add profile_id 2
Command: config limited_multicast_addr ports 1,3 add profile_id 2
Success.
DGS-3000-26TC:admin#
55-7 config max_mcast_group
Description
This command is used to configure the maximum number of multicast groups that a port can join.
If the IPv4 or IPv6 option is not specified, IPv4 is implied.
When the joined groups for a port or a VLAN have reached the maximum number, the newly learned group will be dropped if the action is specified as drop. The newly learned group will replace the eldest group if the action is specified as replace.
518
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Format config max_mcast_group [ports <portlist> | vlanid <vlanid_list] {[ipv4 | ipv6]} {max_group [<value 1-1024> | infinite] | action [ drop | replace]}(1)
Parameters
ports - Specify the range of ports to configure the max_mcast_group.
<portlist> - Enter the list of ports to be configured here.
vlanid - Specify the VLAN ID to configure max_mcast_group.
<vlanid_list> - Enter the VLAN ID list here.
ipv4 - (Optional) Specify that the maximum number of IPv4 learned addresses should be limited.
ipv6 - (Optional) Specify that the maximum number of IPv6 learned addresses should be limited.
max_group - (Optional) Specify the maximum number of multicast groups.
<value 1-1024> - Enter the maximum group value here. This value must be between 1 and 1024.
infinite - Specify that the maximum group value will be set to infinite. Infinite means that the maximum number of multicast groups per port or VLAN is not limited by the Switch.
action - (Optional) Specify the action for handling newly learned groups when the register is full.
drop - The new group will be dropped.
replace - The new group will replace the eldest group in the register table.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To configure the maximum number of multicast group that ports 1 and 3 can join to 100:
DGS-3000-26TC:admin#config max_mcast_group ports 1, 3 max_group 100
Command: config max_mcast_group ports 1, 3 max_group 100
Success.
DGS-3000-26TC:admin#
55-8 show max_mcast_group
Description
This command is used to display the maximum number of multicast groups that a port can join. If the IPv4 or IPv6 option is not specified, IPv4 is implied.
Format show max_mcast_group [ports <portlist> | vlanid <vlanid_list>] {[ipv4 | ipv6]}
Parameters
ports - Specify the range of ports for displaying information about the maximum number of multicast groups that the specified ports can join.
<portlist> - Enter the list of ports to be configured here.
vlanid - Specify the VLAN ID for displaying the maximum number of multicast groups.
<vlanid_list> - Enter the VLAN ID list here.
ipv4 - (Optional) Specify to display the maximum number of IPv4 learned addresses.
ipv6 - (Optional) Specify to display the maximum number of IPv6 learned addresses.
519
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Restrictions
None.
Example
To display the maximum number of multicast groups that ports 1 and 2 can join:
DGS-3000-26TC:admin#show max_mcast_group ports 1-2
Command: show max_mcast_group ports 1-2
Port Max Multicast Group Number Action
------ ---------------------------- ---------
1 100 Drop
2 Infinite Drop
Total Entries: 2
DGS-3000-26TC:admin#
To display the maximum number of multicast groups that VLANs 1 and 2 can join:
DGS-3000-26TC:admin#show max_mcast_group vlanid 1-2
Command: show max_mcast_group vlanid 1-2
VLAN Max Multicast Group Number Action
------ ---------------------------- ---------
1 Infinite Drop
2 10 Drop
Total Entries: 2
DGS-3000-26TC:admin#
55-9 show limited_multicast_addr
Description
This command is used to display the multicast address range by port or by VLAN.
When the function is configured on a port, it limits the multicast groups operated by the IGMP or MLD snooping function and layer 3 functions. When the function is configured on a VLAN, it limits the multicast groups operated by the IGMP or MLD layer 3 functions.
If the IPv4 or IPv6 option is not specified, IPv4 is implied.
Format show limited_multicast_addr [ports <portlist> | vlanid <vlanid_list>] {[ipv4 | ipv6]}
Parameters
ports - Specify the range of ports that require information displaying about the multicast address filtering function.
<portlist> - Enter the list of port to be configured here.
vlanid - Specify the VLAN ID of VLANs that require information displaying about the multicast address filtering function.
<vlanid_list> - Enter the VLAN ID list here.
ipv4 - (Optional) Specify to display the IPv4 multicast profile associated with the port.
520
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
ipv6 - (Optional) Specify to display the IPv6 multicast profile associated with the port.
Restrictions
None.
Example
To show the limited multicast address range on ports 1 and 3:
DGS-3000-26TC:admin#show limited_multicast_addr ports 1,3
Command: show limited_multicast_addr ports 1,3
Port : 1
Access : Deny
Profile ID Name Multicast Addresses
---------- -------------------------------- -------------------------------
2 MOD 225.1.1.1-225.1.1.10
Port : 3
Access : Permit
Profile ID Name Multicast Addresses
---------- -------------------------------- -------------------------------
2 MOD 225.1.1.1-225.1.1.10
DGS-3000-26TC:admin#
To show the limited multicast settings configured on VLAN 1:
DGS-3000-26TC:admin#show limited_multicast_addr vlan 1
Command: show limited_multicast_addr vlanid 1
VLAN ID : 1
Access : Permit
Profile ID Name Multicast Addresses
---------- -------------------------------- -------------------------------
2 MOD 225.1.1.1-225.1.1.10
DGS-3000-26TC:admin#
55-10 config cpu_filter l3_control_pkt
Description
This command is used to configure the port state for the Layer 3 control packet filter.
Format config cpu_filter l3_control_pkt <portlist> [{dvmrp|pim|igmp_query |ospf | rip | vrrp} | all] state [enable | disable]
521
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Parameters
<portlist> - Enter the port list to filter control packets.
dvmrp – (Optional) Specify to filter the DVMRP control packets.
pim - (Optional) Specify to filter the PIM control packets.
igmp_query - (Optional) Specify to filter the IGMP query control packets.
ospf - (Optional) Specify to filter the OSPF control packets.
rip - (Optional) Specify to filter the RIP control packets.
vrrp - (Optional) Specify to filter the VRRP control packets.
all - Specify to filter all the L3 protocol control packets.
state - Specify the filter function status. The default is disabled.
enable - Enables the filtering function.
disable - Disables the filtering function.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To filter the DVMRP control packets on ports 1 to 2:
DGS-3000-26TC:admin#config cpu_filter l3_control_pkt 1-2 dvmrp state enable
Command: config cpu_filter l3_control_pkt 1-2 dvmrp state enable
Success.
DGS-3000-26TC:admin#
55-11 show cpu_filter l3_control_pkt ports
Description
This command is used to display the L3 control packet CPU filtering state.
Format show cpu_filter l3_control_pkt ports {<portlist>}
Parameters
<portlist> - (Optional) Enter the port list to display the L3 control packet CPU filtering state.
Restrictions
None.
Example
To display the filtering status for port 1 and 2:
522
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#show cpu_filter l3_control_pkt ports 1-2
Command: show cpu_filter l3_control_pkt ports 1-2
Port IGMP Query DVMRP PIM OSPF RIP VRRP
---- ---------- -------- -------- -------- -------- --------
1 Disabled Enabled Disabled Disabled Disabled Disabl ed
2 Disabled Enabled Disabled Disabled Disabled Disabl ed
DGS-3000-26TC:admin#
55-12 config control_pkt
Description
This command is used to change the priority and/or Differentiated Services Code Point (DSCP) fields for specific control packets which are forwarded by software.
Format config control_pkt [ipv4 [{igmp | vrrp | rip | pim | dvmrp | ospf}(1) | all] | ipv6 [{mld | pim | ospf | ripng | nd}(1)
| all]] replace {priority [<value 0-7> | none] | dscp [<value 0-63> | none]}(1)
Parameters
ipv4 - Specify IPv4 protocols.
igmp - Specify that the Switch will examine the Internet Group Management Protocol (IGMP) field within each packet.
vrrp - Specify that the Switch will examine the Virtual Router Redundancy Protocol (VRRP) field within each packet.
rip - Specify that the Switch will examine the Routing Information Protocol (RIP) field within each packet.
pim - Specify that the Switch will examine the Protocol-Independent Multicast (PIM) field within each packet.
dvmrp - Specify that the Switch will examine the Distance Vector Multicast Routing Protocol (DVMRP) field within each packet.
ospf - Specify that the Switch will examine the Open Shortest Path First (OSPF) field within each packet.
all - Specify that the Switch will examine all above field within each packet.
ipv6 - Specify the IPv6 protocols.
mld - Specify that the Switch will examine the Multicast Listener Discovery (MLD) field within each packet.
pim - Specify that the Switch will examine the Protocol-Independent Multicast (PIM) field within each packet.
ospf - Specify that the Switch will examine the Open Shortest Path First (OSPF) field within each packet.
ripng - Specify that the Switch will examine the IP Version 6 (IPv6) Routing Information Protocol - next generation (RIPng) field within each packet.
nd - Specify that the Switch will examine the IP Version 6 (IPv6) Neighbor Discovery (ND) field within each packet.
all - Specify that the Switch will examine all above field within each packet.
replace - Specify to change the priority or DSCP.
priority - Specify the priority value
<value 0-7> - Enter the value between 0 and 7.
none - Specify not to change the priority.
dscp - Specify the DSCP.
<value 0-63> - Enter the value between 0 and 63
none - Specify not to change the DSCP.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
523
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Example
To change the priority of DVMRP packets to 3:
DGS-3000-26TC:admin#config control_pkt ipv4 dvmrp replace priority 3
Command: config control_pkt ipv4 dvmrp replace priority 3
Success.
DGS-3000-26TC:admin#
55-13 show control_pkt
Description
This command is used to display the priority and DSCP values configured for specific control packets.
Format show control_pkt {[ipv4| ipv6]}
Parameters
ipv4 - Displays the IPv4 protocols.
ipv6 - Displays the IPv6 protocols.
If no parameter is specified the system will display all protocols.
Restrictions
None.
Example
To display the priority and DSCP values configured for all protocols:
DGS-3000-26TC:admin#show control_pkt
Command: show control_pkt
Protocol Priority DSCP
--------- -------- ------ igmp None None vrrp None None rip None None pim None None dvmrp 3 None ospf None None mld None None ipv6 pim None None ipv6 ospf None None ripng None None nd None None
DGS-3000-26TC:admin#
524
Preuzimanje
Reklama