Skip to main content

Cisco IOS – Create an access-list and apply to a interface

Cisco 22 June 2022

First you have to create an access list:

router(config)#access-list 100 permit icmp any any unreachable
router(config)#access-list 100 permit icmp any any echo-reply
router(config)#access-list 100 permit icmp any any time-exceeded
router(config)#access-list 100 permit icmp any any source-quench
router(config)#access-list 100 deny   icmp any any timestamp-request
router(config)#access-list 100 deny   icmp any any timestamp-reply
router(config)#access-list 100 permit ip any any

Then add id to IN or OUT to the interface:

router(config)#interface GigabitEthernet0/2
router(config)#ip access-group 100 in

Modificare una access-list (Prima magari visualizzala e guarda i numeri di riga)
Visualizzare access-list: router#sh ip access-list 100

router(config)#ip access-list extended 100
router(config-ext-nacl)#67 deny tcp any any eq telnet
router(config-ext-nacl)#do sh ip access-list 100

NOTA: La sequenza è fondamentale per l’applicazione delle regole.

Esempio:

csco-gw02(config-ext-nacl)#do sh ip access-list 100   
Extended IP access list 100
    10 permit icmp any any unreachable (2 matches)
    20 permit icmp any any echo-reply
    30 permit icmp any any time-exceeded
    40 permit icmp any any source-quench
    50 deny icmp any any timestamp-request (1 match)
    60 deny icmp any any timestamp-reply
    70 permit ip any any (84562 matches)

 

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...
  • Hosting Services
  • +41 (0)91 260 76 50
0
Would love your thoughts, please comment.x
()
x
| Reply