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

ACLs on bridge virtual interfaces

Want to summarize with AI?

Log in

This topic describes how access control lists (ACLs) on a Bridge Virtual Interface (BVI) filter traffic for a group of Layer 2 interfaces.


The Bridge Virtual Interface (BVI) is a virtual interface that

  • acts as a bridge between the routing and bridging domains on a router

  • is a logical interface that operates as a regular routed interface with an IP address, and

  • enables traffic filtering through Access Control Lists (ACLs) for the network using the interface.

Feature History Table

Table 1. Feature History Table

Feature Name

Release Information

Description

ACLs on BVI

Release 26.3.1

Introduced in this release on: Modular Systems (8800 [LC ASIC: K100])(select variants only*)

*This feature is supported on Cisco 88-LC1-48Y8F-EM line cards.

Extend support for ACLs on BVI to A100-based ASICs

Release 26.2.1

Introduced in this release on: Fixed Systems (8010 [ASIC: A100]

You can now apply ACLs on Bridged Virtual Interfaces (BVIs) on A100-based ASICs. This feature allows the router to block malicious traffic that targets the router. You can apply ACLs in both ingress and egress directions on a BVI.

This feature support is now extended to:

  • 8011-32Y8L2H2FH

  • 8011-12G12X4Y-A/D

  • 8011-4G24Y4H-I

Extend support for ACLs on BVI to K100-based ASICs

Release 25.4.1

Introduced in this release on: Fixed Systems (8700 [ASIC: K100]); Modular Systems (8800 [LC ASIC: K100])

You can now apply ACLs on Bridged Virtual Interfaces (BVIs) on K100-based ASICs. This feature allows the router to block malicious traffic that targets the router. You can apply ACLs in both ingress and egress directions on a BVI.

This feature support is now extended to:

  • 8011-32Y8L2H2FH

  • 8011-12G12X4Y-A/D

  • 8011-4G24Y4H-I

Extend support for ACLs on BVI to P100-based ASICs

Release 25.3.1

Introduced in this release on: Fixed Systems (8200 [ASIC: P100]); Fixed Systems (8700 [ASIC: P100]); Modular Systems (8800 [LC ASIC: P100])

You can now apply ACLs on Bridged Virtual Interfaces (BVIs) on P100-based ASICs. This feature allows the router to block malicious traffic that targets the router. You can apply ACLs in both ingress and egress directions on a BVI.

This feature support is now extended to:

  • 8212-48FH-M

  • 8711-32FH-M

  • 88-LC1-52Y8H-EM

  • 88-LC1-12TH24FH-E

  • 88-LC1-36EH

ACLs on BVI

Release 25.1.1

Introduced in this release on: Fixed Systems (8010 [ASIC: A100], 8700 [ASIC: K100])(select variants only*)

This feature is now supported on:

  • 8011-4G24Y4H-I

  • 8712-MOD-M

ACLs on BVI

Release 7.3.1

This feature allows traffic filtering by configuring ACLs on Bridge Virtual Interfaces (BVIs). A single configuration can be applied for multiple interfaces that are part of the BVI. You can therefore, filter traffic for a group of interfaces with a particular purpose.

Note

The Cisco 8010 Series Routers do not support this feature. For a list of supported features on the Cisco 8010 Series Routers, see Compatibility Matrix for Cisco 8010 Series Routers.

Increased TCAM consumption with configuring ACLs on BVIs

The consumption of TCAM resources is impacted in the following manner when ACLs are configured on BVIs:

  • When an ACL is attached to a BVI interface, TCAM entries are programmed on all line cards regardless of physical interface membership. This process leads to greater consumption of TCAM resources even on line cards that do not have BVI member interfaces.

  • For ingress and egress ACLs, the TCAM entries for the same ACL are shared across interfaces on the same NPU.


Restrictions for configuring ACLs on BVIs

These restrictions apply to ACLs on BVI:

  • When you apply a security ACL on a BVI interface, TCAMs are programmed on all NPUs of all line cards. On a distributed system, ingress ACL stats on a BVI interface are seen on the line card where the L2 interface resides. Egress ACL stats are seen on the line card of the L3 interface.

  • ACLs on BVI are not supported on Cisco 8011-4G24Y4H-I router.


Configure ACLs on bridge virtual interfaces

Use this procedure to configure IPv4 ingress and egress ACLs on a Bridge Virtual Interface (BVI) and attach them to a bridge domain.

Procedure

  1. Enter the global configuration mode and configure an IPv4 ingress ACL.

    Example:

    Router(config)# ipv4 access-list v4-acl-ingress
    Router(config-ipv4-acl)# 10 permit tcp any 10.1.1.0/24 dscp cs6
    Router(config-ipv4-acl)# 20 deny udp any any eq ssh
    Router(config-ipv4-acl)# 30 permit ipv4 any any
    Router(config-ipv4-acl)# commit
    Router(config-ipv4-acl)# exit
  2. Configure an IPv4 egress ACL.

    Example:

    Router(config)# ipv4 access-list v4-acl-egress
    Router(config-ipv4-acl)# 10 deny ipv4 any any fragments log
    Router(config-ipv4-acl)# 20 deny tcp any any ack
    Router(config-ipv4-acl)# 30 permit ipv4 any any
    Router(config-ipv4-acl)# commit
    Router(config-ipv4-acl)# exit
  3. Configure the HundredGigE interface that you attach to the BVI, and enable it for Layer 2 transport.

    Example:

    Router(config)# interface HundredGigE 0/0/0/0
    Router(config-if)# l2transport
    Router(config-if-l2)# commit
  4. Attach the ingress and egress ACLs to the BVI.

    Example:

    Router(config)# interface BVI1
    Router(config-if)# ipv4 access-group v4-acl-ingress ingress
    Router(config-if)# ipv4 access-group v4-acl-egress egress
    Router(config-if)# commit
    Router(config-if)# exit
  5. Configure the bridge domain with the HundredGigE interface and BVI.

    Example:

    Router(config)# l2vpn
    Router(config-l2vpn)# bridge group BG1
    Router(config-l2vpn-bg)# bridge-domain B1
    Router(config-l2vpn-bg-bd)# interface HundredGigE 0/0/0/0
    Router(config-l2vpn-bg-bd-ac)# routed interface BVI1
    Router(config-l2vpn-bg-bd)# commit
    Router(config-l2vpn-bg-bd)# exit
    Router(config-l2vpn-bg)# exit
    Router(config-l2vpn)# exit
  6. Confirm that you have successfully committed the configuration.

    Example:

    Router(config)# show run
    ...
    !
    ipv4 access-list v4-acl-egress
     10 deny ipv4 any any fragments log
     20 deny tcp any any ack
     30 permit ipv4 any any
    !
    ipv4 access-list v4-acl-ingress
     10 permit tcp any 10.1.1.0/24 dscp cs6
     20 deny udp any any eq ssh
     30 permit ipv4 any any
    !
    interface HundredGigE 0/0/0/0
     l2transport
     !
    !
    interface BVI1
     ipv4 address 209.165.200.224/27
     ipv4 access-group v4-acl-ingress ingress
     ipv4 access-group v4-acl-egress egress
    !
    l2vpn
     bridge group BG1
      bridge-domain B1
       interface HundredGigE 0/0/0/0
       !
       routed interface BVI1
      !
     !
    !
    end
  7. Exit to the Executive Privileged mode and confirm that the ACLs are in operation.

    Example:

    Router# show access-lists interface bvi1
    Tue May 9 10:01:25.732 EDT
    Input ACL (common): HundredGigE 0/0/0/0 (interface): v4-acl-ingress
    Output ACL: v4-acl-egress
    
    Router# show access-lists summary
    Tue May 9 10:02:01.167 EDT
    ACL Summary:
    Total ACLs configured: 2
    Total ACEs configured: 6
    
    Router# show access-lists ipv4 v4-acl-egress hardware egress location 0/0/CPU0
    ipv4 access-list v4-acl-egress
    10 deny ipv4 any any fragments log (15214 matches)
    20 deny tcp any any ack (15214 matches)
    30 permit ipv4 any any (15214 matches)

    The output clearly shows the configured ACLs, the total number of ACEs (three per ACL), and also the ACE matches in hardware.

    You have successfully configured and enabled IPv4 ingress and egress ACL on a BVI.