IP Addresses and Services Configuration Guide for Cisco 8000 Series Routers, IOS XR Releases

PDF

IP Addresses and Services Configuration Guide for Cisco 8000 Series Routers, IOS XR Releases

Configure extended ACLs

Want to summarize with AI?

Log in

This topic describes how to configure extended ACLs on the Cisco 8000 Series Router to verify more than just the source address of packets by matching on attributes such as destination address, IP protocols, UDP or TCP port numbers, and DSCP.


Use this procedure to configure an extended ACL. Extended ACLs verify more than just the source address of the packets. Attributes such as destination address, specific IP protocols, UDP or TCP port numbers, DSCP, and so on are validated. Traffic is controlled by a comparison of the attributes stated in the ACL with those in the incoming or outgoing packets.

Procedure

  1. Enter global configuration mode.

    Example:

    Router# configure
  2. Create an extended IPv4 ACL named acl_1 and add a remark.

    Example:

    Router(config)# ipv4 access-list acl_1
    Router(config-ipv4-acl)# 10 remark Do not allow user1 to telnet out
  3. Specify the conditions to permit or deny network traffic and commit the configuration.

    Example:

    Router(config-ipv4-acl)# 10 permit 172.16.0.0 0.0.255.255
    Router(config-ipv4-acl)# 20 deny 192.168.34.0 0.0.0.255
    Router(config-ipv4-acl)# commit
  4. Verify the running configuration. Confirm the ACL acl_1 and its rules are listed.

    Example:

    Router# show running-config
    Mon Jul 29 05:56:14.315 UTC
    Building configuration...
    !! IOS XR Configuration
    
    !
    ipv4 access-list acl_1
     10 permit ipv4 172.16.0.0 0.0.255.255 any
     20 deny ipv4 192.168.34.0 0.0.0.255 any
    !
  5. Verify that the extended ACL is applied and matching traffic.

    Example:

    Router# show access-lists ipv4 acl_1 hardware ingress location 0/0/CPU0
    Tue Jul 2 08:03:29.495 UTC
    ipv4 access-list acl_1
    66 deny igmp 30.0.20.0 0.0.0.255 30.0.10.0 0.0.0.255 v3-report (11604 matches)
    67 deny igmp host 30.0.20.1 host 30.0.10.1 v2-report

    You have successfully configured an extended ACL.