Passer au contenu principal
  • Passer des commandes rapidement et facilement
  • Afficher les commandes et suivre l’état de votre expédition
  • Créez et accédez à une liste de vos produits
  • Gérer vos sites, vos produits et vos contacts au niveau des produits Dell EMC à l’aide de la rubrique Gestion des informations de l’entreprise.

Dell PowerEdge FN I/O Module Configuration Guide 9.10(0.0)

PDF

Resequencing an ACL or Prefix List

Resequencing is available for IPv4 ACLs, prefix lists, and MAC ACLs.

To resequence an ACL or prefix list, use the following commands. You must specify the list name, starting number, and increment when using these commands.
  • Resequence an IPv4 or MAC ACL. EXEC mode resequence access-list {ipv4 | mac} { access-list-name StartingSeqNum Step-to-Increment}
  • Resequence an IPv4 prefix-list. EXEC mode resequence prefix-list {ipv4} { prefix-list-name StartingSeqNum Step-to-Increment }

Example of Resequencing ACLs When Remarks and Rules Have the Same Number

The example shows the resequencing of an IPv4 access-list beginning with the number 2 and incrementing by 2.

Remarks and rules that originally have the same sequence number have the same sequence number after you apply the resequence command.

Dell(config-ext-nacl)# show config
                                 !
                                 ip access-list extended test
                                 remark 
                                 4 XYZ
                                 remark 
                                 5 this remark corresponds to permit any host 1.1.1.1
                                 seq 
                                 5 permit ip any host 1.1.1.1
                                 remark 
                                 9 ABC
                                 remark 
                                 10 this remark corresponds to permit ip any host 1.1.1.2
                                 seq 
                                 10 permit ip any host 1.1.1.2
                                 seq 
                                 15 permit ip any host 1.1.1.3
                                 seq 
                                 20 permit ip any host 1.1.1.4
                                 Dell# end
                                 Dell# 
                                 resequence access-list ipv4 test 2 2
                                 Dell# show running-config acl
                                 !
                                 ip access-list extended test
                                 remark 
                                 2 XYZ
                                 remark 
                                 4 this remark corresponds to permit any host 1.1.1.1
                                 seq 
                                 4 permit ip any host 1.1.1.1
                                 remark 
                                 6 this remark has no corresponding rule
                                 remark 
                                 8 this remark corresponds to permit ip any host 1.1.1.2
                                 seq 
                                 8 permit ip any host 1.1.1.2
                                 seq 
                                 10 permit ip any host 1.1.1.3
                                 seq 
                                 12 permit ip any host 1.1.1.4
                              

Remarks that do not have a corresponding rule are incremented as a rule. These two mechanisms allow remarks to retain their original position in the list. The following example shows remark 10 corresponding to rule 10 and as such, they have the same number before and after the command is entered. Remark 4 is incremented as a rule, and all rules have retained their original positions.

Dell(config-ext-nacl)# show config
                                 !
                                 ip access-list extended test
                                 
                                 remark 4 XYZ
                                 remark 5 this remark corresponds to permit any host 1.1.1.1
                                 seq 5 permit ip any host 1.1.1.1
                                 remark 9 ABC
                                 remark 10 this remark corresponds to permit ip any host 1.1.1.2
                                 seq 10 permit ip any host 1.1.1.2
                                 seq 15 permit ip any host 1.1.1.3
                                 seq 20 permit ip any host 1.1.1.4
                                 Dell# end
                                 Dell# resequence access-list ipv4 test 2 2
                                 Dell# show running-config acl
                                 !
                                 ip access-list extended test
                                 
                                 remark 2 XYZ
                                 remark 4 this remark corresponds to permit any host 1.1.1.1
                                 seq 4 permit ip any host 1.1.1.1
                                 remark 6 this remark has no corresponding rule
                                 remark 8 this remark corresponds to permit ip any host 1.1.1.2
                                 seq 8 permit ip any host 1.1.1.2
                                 seq 10 permit ip any host 1.1.1.3
                                 seq 12 permit ip any host 1.1.1.4
                              

Évaluez ce contenu

Précis
Utile
Facile à comprendre
Avez-vous trouvé cet article utile ?
0/3000 characters
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez indiquer si l’article a été utile ou non.
  Les commentaires ne doivent pas contenir les caractères spéciaux : <>()\