ignore (for MAC groups)

Syntax

[seq <SEQ-ID>] ignore {mac <MAC-ADDR> | mac-mask <MAC-MASK> | mac-oui <MAC-OUI>}

no [seq <SEQ-ID>] ignore {mac <MAC-ADDR> | mac-mask <MAC-MASK> | mac-oui <MAC-OUI>}

Description

Defines a rule to ignore devices for a MAC group based on the criteria of MAC address, MAC address mask, or MAC Organizational Unique Identifier (OUI). Up to 64 ignore rules can be defined for a group.

The no form of this command removes a rule for ignoring devices from a MAC group.

Command context

config-mac-group

Parameters

seq <SEQ-ID>
Specifies the entry sequence ID of the rule to create or modify a MAC group. 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. Range: 1 to 4294967295.
mac <MAC-ADDR>

Specifies the MAC address of the device to ignore.

mac-mask <MAC-MASK>

Specifies the MAC address mask to ignore devices in that range. Supported MAC address masks: /32 and /40.

mac-oui <MAC-OUI>

Specifies the MAC OUI to ignore devices in that range. Supports MAC OUI address of maximum length of 24 bits.

Authority

Administrators or local user group members with execution rights for this command.

Usage

To achieve the required configuration of matches for devices, it is recommended to first ignore the devices that you do not want to add. Then match the criteria for the rest of the devices that you want to add to the MAC group.

For example, if you want to ignore a specific device but add all the other devices that belong to a MAC OUI, then you must first configure the ignore criteria with a lower sequence number. And then configure match criteria with a higher sequence number.

Examples

Adding a rule to the MAC group grp01 to ignore a device based on MAC address, but match all other devices belonging to a MAC OUI:

switch(config)# mac-group grp01
switch(config-mac-group)# ignore mac 1a:2b:3c:4d:5e:6f
switch(config-mac-group)# match mac-oui 1a:2b:3c
switch(config-mac-group)# exit
switch(config)# do show running-config
Current configuration:
!
!Version ArubaOS-CX Virtual.10.0X.0001
!export-password: default
led locator on
!
!
!
!
ssh server vrf mgmt
!
!
!
!
!
vlan 1
interface mgmt
    no shutdown
    ip dhcp
mac-group grp01
     seq 10 ignore mac 1a:2b:3c:4d:5e:6f
     seq 20 match mac-oui 1a:2b:3c

```

Adding a rule to the MAC group grp01 to ignore devices based on MAC address mask, but match all other devices belonging to a MAC OUI:

switch(config)# mac-group grp01
switch(config-mac-group)# ignore mac-mask 1a:2b:3c:4d/32
switch(config-mac-group)# match mac-oui 1a:2b:3c
switch(config-mac-group)# exit
switch(config)# do show running-config
Current configuration:
!
!Version ArubaOS-CX Virtual.10.0X.0001
!export-password: default
led locator on
!
!
!
!
ssh server vrf mgmt
!
!
!
!
!
vlan 1
interface mgmt
    no shutdown
    ip dhcp
mac-group grp01
     seq 10 ignore mac-mask 1a:2b:3c:4d/32
     seq 20 match mac-oui 1a:2b:3c

```

Adding a rule to the MAC group grp01 that ignores a device based on complete MAC address:

switch(config)# mac-group grp01
switch(config-mac-group)# ignore mac 1a:2b:3c:4d:5e:6f

Adding a rule to the MAC group grp02 that ignores devices based on MAC mask:

switch(config)# mac-group grp01
switch(config-mac-group)# ignore mac-mask 1a:2b:3c:4d:5e/40
switch(config-mac-group)# ignore mac-mask 18:e3:ab:73/32

Adding a rule to the MAC group grp03 that ignores devices based on MAC OUI:

switch(config)# mac-group grp03
switch(config-mac-group)# ignore mac-oui 81:cd:93

Adding a rule to the MAC group grp01 that ignores devices with a sequence number and based on MAC address:

switch(config)# mac-group grp01
switch(config-mac-group)# seq 10 ignore mac b2:c3:44:12:78:11
switch(config-mac-group)# exit
switch(config)# do show running-config
Current configuration:
!
!Version ArubaOS-CX Virtual.10.0X.0001
!export-password: default
led locator on
!
!
vlan 1
interface mgmt
    no shutdown
    ip dhcp
mac-group grp01
    seq 10 ignore mac b2:c3:44:12:78:11

```

Removing the rule from the MAC group grp01 based on sequence number:

switch(config)# mac-group grp01
switch(config-mac-group)# no ignore seq 10
switch(config-mac-group)# exit
switch(config)# do show running-config
Current configuration:
!
!Version ArubaOS-CX Virtual.10.0X.0001
!export-password: default
led locator on
!
!
vlan 1
interface mgmt
    no shutdown
    ip dhcp
mac-group grp01

```

Adding a rule to the MAC group grp01 that ignores devices with MAC entry sequence number and based on MAC OUI:

switch(config)# mac-group grp01
switch(config-mac-group)# seq 10 ignore mac b2:c3:44:12:78:11
switch(config-mac-group)# seq 20 ignore mac-oui 1a:2b:3c
switch(config-mac-group)# seq 30 ignore mac-mask 71:14:89:f3/32
switch(config-mac-group)# exit
switch(config)# do show running-config
Current configuration:
!
!Version ArubaOS-CX Virtual.10.0X.0001
!export-password: default
led locator on
!
!
vlan 1
interface mgmt
    no shutdown
    ip dhcp
mac-group grp01
     seq 10 ignore mac b2:c3:44:12:78:11
     seq 20 ignore mac-oui 1a:2b:3c
     seq 30 ignore mac-mask 71:14:89:f3/32

```

Removing the rule from the MAC group grp01 based on sequence number and MAC OUI:

switch(config)# mac-group grp01
switch(config-mac-group)# no seq 20 ignore mac-oui 1a:2b:3c
switch(config-mac-group)# exit
switch(config)# do show running-config
Current configuration:
!
!Version ArubaOS-CX Virtual.10.0X.0001
!export-password: default
led locator on
!
!
vlan 1
interface mgmt
    no shutdown
    ip dhcp
mac-group grp01
     seq 10 ignore mac b2:c3:44:12:78:11
     seq 30 ignore mac-mask 71:14:89:f3/32


```

Removing the rule that matches the sequence number 25 from the MAC group named grp01.

switch(config)# mac-group grp01
switch(config-mac-group)# no ignore seq 25