match
(for CDP groups)
Syntax
match [seq ] {platform | sw-version | voice-vlan-query< vlan id >} no match [seq ] {platform | sw-version | voice-vlan-query< vlan id >}
Description
Defines a rule to match devices for a CDP group. A maximum of 32 CDP groups can be configured on the switch. Up to 64 match or ignore rules can be defined for each group.
Theno
form of this command removes a rule for adding devices to a CDP group.
Command context
config-cdp-group
Parameters
-
seq
- Specifies the ID of the rule to create or modify. If no ID is specified when adding a rule, an ID is automatically assigned in increments of 10 in the order in which rules are added. When more than one rule matches the command entered, the rule with the lowest ID takes precedence.
-
platform
-
Specifies the hardware or model details of the neighbor. Range: 1 to 128 alphanumeric characters.
-
sw-version
-
Specifies the software version of the neighbor. Range: 1 to 128 alphanumeric characters.
-
voice-vlan-query< vlan id >
-
Specifies the VLAN query value of the neighbor. Range: 1 to 65535.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Adding rules to match a Cisco device with a specific software version on VLAN512to the CDP groupgrp01:
switch(config)#port-access cdp-group grp01switch(config-cdp-group)#match platform CISCOswitch(config-cdp-group)#match sw-version 11.2(12)Pswitch(config-cdp-group)#match voice-vlan-query 512switch(config-cdp-group)#match seq 50 platform cisco sw-version 11.2(12)P voice-vlan-query 512switch(config-cdp-group)#exitswitch(config)#do show running-configCurrent configuration: ! !Version ArubaOS-CX Virtual.10.0X.000 !export-password: default led locator on ! ! vlan 1 port-access cdp-group grp01 seq 10 match platform CISCO seq 20 match sw-version 11.2(12)P seq 30 match voice-vlan-query 512 seq 50 match platform cisco sw-version 11.2(12)P voice-vlan-query 512
删除一个规则that matches the sequence number25从CDP集团命名grp01:
switch(config)#port-access cdp-group grp01switch(config-cdp-group)#no match seq 25
Adding a rule that matches the value of vendor-OUI000b86to the CDP group namedgrp01:
switch(config)#port-access cdp-group grp01switch(config-cdp-group)#match vendor-oui 000b86