22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

To improve the scalability of ACL management, using Session Manager is recommended to<br />

perform ACL configuration, verify ACL configuration, <strong>and</strong> confirm that the resources<br />

required by the configuration are available prior to committing them to the running<br />

configuration. Session Manager supports the following benefits for ACL management:<br />

• Configuration session: Creates a list of comm<strong>and</strong>s that you want to implement in<br />

Session Manager mode.<br />

• Validation: Provides a basic semantic check on your configuration.<br />

• Verification: Verifies the configuration as a whole, based on the existing hardware<br />

<strong>and</strong> software configuration <strong>and</strong> resources.<br />

• Commit: Cisco NX-OS verifies the complete configuration <strong>and</strong> applies the changes to<br />

the device.<br />

• Session termination: Session Manager enables termination of a configuration session<br />

without committing the changes. Session Manager enables session configurations to be<br />

saved. Session configurations can be saved to bootflash:, slot0:, or volatile:.<br />

Example 5-44 shows how to create a configuration session <strong>and</strong> enter session configuration<br />

mode.<br />

Example 5-44. Creating a Configuration Session <strong>and</strong> Entering Session Configuration<br />

Mode<br />

Click here to view code image<br />

Congo# conf t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Congo(config)# configure session ACL-TCP-IN<br />

Config Session started, Session ID is 3<br />

Example 5-45 shows how to create an ACL to enable TCP.<br />

Example 5-45. Creating an ACL<br />

Click here to view code image<br />

Congo(config-s)# ip access-list TCP1<br />

Congo(config-s-acl)# permit tcp any any<br />

Congo(config-s-acl)# exit<br />

Congo(config-s)# save bootflash:SessionMgrTCPIn<br />

Congo(config-s)# interface ethernet 1/1<br />

Example 5-46 shows how to apply the ACL to the interface <strong>and</strong> specify the direction to<br />

apply the access group.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!