Cisco DCNM Security Configuration Guide, Release 4.1
Configuring VLAN ACLs
Downloads: This chapterpdf (PDF - 190.0KB) The complete bookPDF (PDF - 7.51MB) | Feedback

Configuring VLAN ACLs

Table Of Contents

Configuring VLAN ACLs

Information About VLAN ACLs

Access Maps and Entries

Actions

Virtualization Support

Licensing Requirements for VACLs

Prerequisites for VACLs

Guidelines and Limitations

Configuring VACLs

Adding a VACL

Changing a VACL

Removing a VACL or a VACL Entry

Applying a VACL to a VLAN

Field Descriptions for VACLs

VLAN Access Map Entry: Details Tab

VLAN Access Map Entry: Details: Match Condition And Action Section

Additional References

Related Documents

Standards

Feature History for VLAN ACLs


Configuring VLAN ACLs


This chapter describes how to configure VLAN access lists (ACLs) on NX-OS devices.

This chapter includes the following sections:

Information About VLAN ACLs

Licensing Requirements for VACLs

Prerequisites for VACLs

Guidelines and Limitations

Configuring VACLs

Field Descriptions for VACLs

Additional References

Feature History for VLAN ACLs

Information About VLAN ACLs

A VLAN ACL (VACL) is one application of a MAC ACL or IP ACL. You can configure VACLs to apply to all packets that are routed into or out of a VLAN or are bridged within a VLAN. VACLs are strictly for security packet filtering and for redirecting traffic to specific physical interfaces. VACLs are not defined by direction (ingress or egress).

For more information about the types and applications of ACLs, see the "Information About ACLs" section on page 7-1.

This section includes the following topics:

Access Maps and Entries

Actions

Virtualization Support

Access Maps and Entries

VACLs use access maps to contain an ordered list of one or more map entries. Each map entry associates IP or MAC ACLs to an action. Each entry has a sequence number, which allows you to control the precedence of entries.

When the device applies a VACL to a packet, it applies the action that is configured in the first access map entry that contains an ACL that permits the packet.

Actions

Each VLAN access map entry can specify one of the following actions:

Forward—Sends the traffic to the destination determined by normal operation of the switch.

Redirect—Redirects the traffic to one or more specified interfaces.

Drop—Drops the traffic. If you specify drop as the action, you can also specify that the device logs the dropped packets.

Virtualization Support

The following information applies to VACLs used in Virtual Device Contexts (VDCs):

ACLs are unique per VDC. You cannot use an ACL that you created in one VDC in a different VDC.

Because ACLs are not shared by VDCs, you can reuse ACL names in different VDCs.

The device does not limit ACLs or rules on a per-VDC basis.

Licensing Requirements for VACLs

The following table shows the licensing requirements for this feature:

Product
License Requirement

DCNM

VACLs require no license. Any feature not included in a license package is bundled with the Cisco DCNM and is provided at no charge to you. For a complete explanation of the DCNM licensing scheme, see the Cisco DCNM Fundamentals Configuration Guide, Release 4.1.

NX-OS

VACLs require no license. Any feature not included in a license package is bundled with the Cisco NX-OS system images and is provided at no extra charge to you. For a complete explanation of the NX-OS licensing scheme, see the Cisco Nexus 7000 Series NX-OS Licensing Guide, Release 4.1.


Prerequisites for VACLs

VACLs have the following prerequisites:

You must be familiar with VLANs to configure VACLs.

You must be familiar with the concepts in the "Information About ACLs" section on page 7-1.

Guidelines and Limitations

VACLs have the following configuration guidelines and limitations:

ACL statistics are not supported if the DHCP snooping feature is enabled.

See the "Information About ACLs" section on page 7-1 section for more information about ACLs.

Configuring VACLs

Figure 9-1 shows the VLAN ACL content pane.

Figure 9-1 VLAN ACL Content Pane

This section includes the following topics:

Adding a VACL

Changing a VACL

Removing a VACL or a VACL Entry

Applying a VACL to a VLAN

Adding a VACL

You can create or change a VACL. Creating a VACL includes creating an access map that associates an IP or MAC ACL with an action to be applied to the matching traffic.

BEFORE YOU BEGIN

Ensure that the IP ACL or MAC ACL that you want to use in the VACL exists and is configured to filter traffic in the manner that you need for this application. For more information about configuring IP ACLs, see the "Configuring IP ACLs" section on page 7-1. For more information about configuring MAC ACLs, see the "Configuring MAC ACLs" section on page 8-1.

DETAILED STEPS

To add a VACL, follow these steps:


Step 1 From the Feature Selector pane, choose Security > Access Control > VLAN ACL.

The Summary pane displays available devices.

Step 2 From the Summary pane, double-click the device to which you want to add a VACL.

Step 3 From the menu bar, choose File > New > VLAN Access Map.

Below the device that you selected, a new row appears in the Summary pane.

Step 4 In the new row, enter a name for the VACL.

The VACL remains selected in the Summary pane.

Step 5 For each VLAN access map entry that you want to create, follow these steps:

a. From the menu bar, choose File > New > VLAN Access Map Entry.

Below the VACL, a new row appears in the Summary pane.

b. From the Details pane, click the Details tab and expand the Match Condition And Action section, if necessary.

c. From the Match ACL Type drop-down list, select the type of ACL that you want to use in the VACL. You can choose IPv4 ACL, IPv6 ACL, or MAC ACL.

The ACLs drop-down list contains ACLs that are the type you selected and that exist on the currently selected device.

d. From the ACLs drop-down list, select the ACL that you want to use.

e. From the Action drop-down list, select the action that the device should take upon traffic matching the VACL.

Step 6 From the menu bar, choose File > Save to apply your changes to the device.


Changing a VACL

You can change a VACL.

DETAILED STEPS

To create or change a VACL, follow these steps:


Step 1 From the Feature Selector pane, choose Security > Access Control > VLAN ACL.

The Summary pane displays available devices.

Step 2 From the Summary pane, double-click the device that contains the VACL and then click the VACL.

Step 3 (Optional) To add a VLAN access map entry, from the menu bar, choose File > New > VLAN Access Map Entry.

Below the VACL, the new VLAN access map entry appears in the Summary pane.

Step 4 (Optional) To change a new or existing VLAN access map entry, follow these steps:

a. Click the VLAN access map entry that you want to change.

b. From the Details pane, click the Details tab and expand the Match Condition And Action section, if necessary.

c. From the Match ACL Type drop-down list, select the type of ACL that you want to use in the VACL. You can choose IPv4 ACL, IPv6 ACL, or MAC ACL.

The ACLs drop-down list contains ACLs that are the type you selected and that exist on the currently selected device.

d. From the ACLs drop-down list, select the ACL that you want to use.

e. From the Action drop-down list, select the action that the device should take upon traffic matching the VACL.

Step 5 (Optional) If you want to move a VLAN access map entry to a different position in the VACL, click the entry in the Summary pane and then from the menu bar, choose one of the following, as applicable:

Actions > Move Up

Actions > Move Down

The entry swaps places and sequence numbers with the entry above it or below it, as you chose.

Step 6 (Optional) To remove a VLAN access map entry, click the VLAN access map entry and then choose Actions > Delete.

Step 7 From the menu bar, choose File > Save to apply your changes to the device.


Removing a VACL or a VACL Entry

You can remove a VACL, which means that you will delete the VLAN access map.

You can also remove a single VLAN access-map entry from a VACL.

BEFORE YOU BEGIN

Ensure that you know whether the VACL is applied to a VLAN. The device allows you to remove VACLs that are currently applied. Removing a VACL does not affect the configuration of VLANs where you have applied the VACL. Instead, the device considers the removed VACL to be empty.

DETAILED STEPS

To remove a VACL or a VACL entry, follow these steps:


Step 1 From the Feature Selector pane, choose Security > Access Control > VLAN ACL.

Available devices appear in the Summary pane.

Step 2 From the Summary pane, double-click the device from which you want to remove a VACL.

The VACLs on the device appear in the Summary pane.

Step 3 (Optional) If you want to delete a VACL, follow these steps:

a. Click the VACL that you want to remove.

b. From the menu bar, choose VLAN ACL > Delete.

The VACL disappears from the Summary pane.

Step 4 (Optional) If you want to delete a VLAN access map entry, follow these steps:

a. Double-click the VACL that contains the entry that you want to delete.

The VLAN access-map entries list below the VACL.

b. Click the VLAN access-map entry that you want to delete.

c. From the menu bar, choose Actions > Delete.

Step 5 From the menu bar, choose File > Save to apply your changes to the device.


Applying a VACL to a VLAN

You can apply a VACL to a VLAN.

BEFORE YOU BEGIN

If you are applying a VACL, ensure that the VACL exists and is configured to filter traffic in the manner that you need for this application. For more information about creating VACLs, see the "Adding a VACL" section.

If you are unapplying a VACL, ensure that you are unapplying the correct VACL and that you understand how the VACL is currently applied.

DETAILED STEPS

To apply a VACL to a VLAN, follow these steps:


Step 1 From the Feature Selector pane, choose Switching > VLAN.

Available devices appear in the Summary pane.

Step 2 From the Summary pane, double-click the applicable device.

VLANs on the device that you double-clicked appear in the Summary pane.

Step 3 Click the VLAN to which you want to apply a VACL.

Step 4 From the Details pane, click the VLAN Details tab and expand the Advanced Settings section, if necessary.

The VACL drop-down list appears in the Advanced Settings section.

Step 5 From the VACL drop-down list, choose the VACL that you want to apply.

Step 6 From the menu bar, choose File > Save to apply your changes to the device.


Field Descriptions for VACLs

This section includes the following topics:

VLAN Access Map Entry: Details Tab

VLAN Access Map Entry: Details: Match Condition And Action Section

VLAN Access Map Entry: Details Tab

Table 9-1 VLAN Access Map Entry: Details Tab 

Field
Description

Sequence Number

Display only. Sequence number assigned to the rule.


VLAN Access Map Entry: Details: Match Condition And Action Section

Table 9-2 VLAN Access Map Entry: Details: Match Condition And Action Section 

Field
Description

Match ACL Type

Type of ACL that the VLAN access map entry uses to filter traffic. Valid values are as follows:

IPv4 ACL—This is the default value

IPv6 ACL

MAC ACL

ACLs

Name of the ACL that the VLAN access map uses to filter traffic. By default, this list is blank.

Action

Action taken by the device when a packets is permitted by the VLAN access map entry. Valid values are as follows:

Drop—Stop processing the packet and drop it.

Forward—Continue processing the packet without modifying the destination. This is the default value.

Redirect—Continue processing the packet but send it to the interfaces that you choose from the Redirect Interfaces drop-down list.

Log this entry

Whether the device logs packets permitted by the VLAN access map entry. This check box appears only when you choose Drop from the Action drop-down list. By default, this check box is unchecked.

Redirect Interfaces

Interfaces to which the device forwards packets permitted by the VLAN access map entry. This check box appears only when you choose Redirect from the Action drop-down list. By default, this list is blank.


Additional References

For additional information related to implementing IP ACLs, see the following sections:

Related Documents

Standards

Related Documents

Related Topic
Document Title

Concepts about ACLs

Information About ACLs, page 7-1


Standards

Standards
Title

No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.


Feature History for VLAN ACLs

Table 9-3 lists the release history for this feature.

Table 9-3 Feature History for VLAN ACLs 

Feature Name
Releases
Feature Information

VLAN access maps

4.1(2)

Support was added for multiple entries in VLAN access maps. In addition, each entry supports multiple ACLs.