128 | Access Control Lists (ACLs)
www.dell.com | support.dell.com
Resequencing an ACL or Prefix List
Resequencing is available for IPv4 and IPv6 ACLs and prefix lists and MAC ACLs. To resequence an
ACL or prefix list use the appropriate command in Table 7-5. You must specify the list name, starting
number, and increment when using these commands.
The following example shows the resequencing of an IPv4 access-list beginning with the number 2 and
incrementing by 2.
FTOS(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
FTOS# end
FTOS# resequence access-list ipv4 test 2 2
FTOS# show running-config acl
seq 7 permit any host 1.1.1.3
seq 10 permit any host 1.1.1.4
Table 7-4. ACL Resequencing Example (Resequenced)
seq 5 permit any host 1.1.1.1
seq 10 permit any host 1.1.1.2
seq 15 permit any host 1.1.1.3
seq 20 permit any host 1.1.1.4
Table 7-5. Resequencing ACLs and Prefix Lists
List Command Command Mode
IPv4, IPv6, or MAC ACL
resequence access-list {ipv4 | ipv6 | mac} {access-list-name
StartingSeqNum Step-to-Increment
}
Exec
IPv4 or IPv6 prefix-list
resequence prefix-list {ipv4 | ipv6} {prefix-list-name StartingSeqNum
Step-to-Increment
}
Exec
Table 7-3. ACL Resequencing Example (Insert New Rules)