Skip to main content

Cisco IOS – Access-list resequence

Cisco 22 June 2022

However, IOS includes a convenient command to resequence all entries in an ACL without a reboot and without recreating the ACL:

Router(config)# ip access-list resequence Foo ?

  <1-2147483647>  Starting Sequence Number



Router(config)# ip access-list resequence Foo 10 ?

  <1-2147483647>  Step to increment the sequence number



Router(config)# ip access-list resequence Foo 10 10

Router(config)# do show ip access-lists

Extended IP access list Foo

    10 permit ip host 10.0.23.23 any

    20 permit ip host 10.0.23.76 any

    30 permit ip host 10.0.22.144 any

    40 permit tcp any any eq www

    50 permit tcp any any eq 8080

    60 permit tcp any any eq 443

    70 permit tcp any any eq 4343

    80 permit udp any any eq domain

    90 permit tcp 10.0.8.0 0.0.3.255 any eq smtp

    100 permit tcp 10.0.12.0 0.0.1.255 any eq smtp

    110 deny ip any any log

The example above uses the default starting number and interval, however arbitrary values can be provided for both if you’d like a little more room to maneuver between entries:

Router(config)# ip access-list resequence Foo 100 50

Router(config)# do show ip access-lists

Extended IP access list Foo

    100 permit ip host 10.0.23.23 any

    150 permit ip host 10.0.23.76 any

    200 permit ip host 10.0.22.144 any

    250 permit tcp any any eq www

    300 permit tcp any any eq 8080

    350 permit tcp any any eq 443

    400 permit tcp any any eq 4343

    450 permit udp any any eq domain

    500 permit tcp 10.0.8.0 0.0.3.255 any eq smtp

    550 permit tcp 10.0.12.0 0.0.1.255 any eq smtp

    600 deny ip any any log

0 0 votes
Article Rating
Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Goline It Services Logo

News

  • GOLINE is pleased to announce that it has achieved ESET Gold Partner status for 2027. The recognition follows the successful completion of ESET’s partner certification requirements and confirms GOLINE’s continued investment in cybersecurity expertise and professional development. ESET’s partner programme is designed to support companies working with its cybersecurity solutions through dedicated technical and sales resources, training and other partner services. For GOLINE, the achievement further strengthens its collaboration with ESET and its ability to integrate ESET security technologies into the cybersecurity solutions and services it provides to businesses. ESET solutions are already part of GOLINE’s cybersecurity portfolio, alongside technologies...
  • GOLINE SA is excited to announce a new partnership with NetApp, a global leader in cloud data services and storage solutions. This collaboration aims to help organizations modernize their IT infrastructure, streamline data management, and enhance performance across cloud and hybrid environments. Modern Data Solutions for Businesses Through this partnership, GOLINE integrates advanced data management solutions, enabling businesses to securely store, manage, and access critical information across cloud, on-premises, or hybrid setups. Clients can benefit from: Flexible and scalable storage solutions to meet growing data needs Simplified management of cloud and on-premises environments Enterprise-grade security for sensitive and mission-critical data...
  • GOLINE SA is proud to announce a new strategic partnership with Omnissa, a global leader in digital workspace platforms and Horizon Cloud Service solutions. This collaboration marks a significant step forward in helping organizations embrace secure, flexible, and high-performance work environments. Why Choose Omnissa for Your Business? The platform enables virtual desktops, applications, and unified endpoint management. Organizations can deploy scalable workspaces across cloud, hybrid, or on-premises setups. Key benefits include: Easy access to desktops and apps on any device Centralized management for Windows, macOS, iOS, Android, and ChromeOS Strong security with access controls and multi-factor authentication Automated scaling to...
0
Would love your thoughts, please comment.x
()
x