Modifying MAC ACL rules

To modify an ACL rule, delete the original rule and replace it with a new rule.

  1. To display MAC ACL rule details, in privileged EXEC mode enter the show running-config mac access-list command.
    device# show running-config mac access-list standard ACL1
    mac access-list standard ACL1
      seq 100 deny host 0022.3333.4444 count
      seq 110 permit host 0011.3333.5555 count
    
    Note the seq number of the rule that you need to modify.
  2. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
    
  3. Enter the mac access-list command, specifying the ACL you need to modify.
    device(config)# mac access-list standard ACL1
    
  4. Delete the original rule, doing one of the following:
    • Enter the no seq command, specifying the sequence number of the rule that you are deleting.
      device(conf-macl-std)# no seq 100
      
    • Enter the exact rule that you are deleting, preceded by no.
      no deny host 0022.3333.4444 count
      
  5. Enter the replacement rule.
    device(conf-macl-ext)# seq 100 permit host 0022.3333.6666 count