Configuring Acls In A Session; Verifying A Session - Cisco Nexus 7000 Series Configuration Manual

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring ACLs in a Session

Configuring ACLs in a Session
You can configure ACLs within a configuration session.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6

Verifying a Session

Use the following command in session mode to verify a session:
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
158
Command or Action
configure session name
Example:
switch# configure session myacls
switch(config-s)#
ip access-list name
Example:
switch(config-s)# ip access-list acl1
switch(config-s-acl)#
permit protocol source destination
Example:
switch(config-s-acl)# permit tcp any any
interface interface-type number
Example:
switch(config-s-acl)# interface e 2/1
switch(config-s-if)#
ip access-group name {in | out}
Example:
switch(config-s-if)# ip access-group acl1
in
show configuration session [name]
Example:
switch(config-s)# show configuration
session myacls
Configuring Session Manager
Purpose
Creates a configuration session and enters
session configuration mode. The name can
be any alphanumeric string.
Creates an ACL and enters a configuration
mode for that ACL.
(Optional)
Adds a permit statement to the ACL.
Enters interface configuration mode.
Specifies the direction of traffic the access
group is applied to.
(Optional)
Displays the contents of the session.

Advertisement

Table of Contents
loading

Table of Contents