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.

Example 5-46. Applying the ACL to the Interface <strong>and</strong> Specifying the Direction to<br />

Apply the Access Group<br />

Congo(config-s-if)# ip access-group TCP1 in<br />

Example 5-47 shows how to verify the configuration as a whole, based on the existing<br />

hardware <strong>and</strong> software configuration <strong>and</strong> resources. The NX-OS device returns errors if the<br />

configuration does not pass this verification.<br />

Example 5-47. Verifying the Configuration as a Whole, Based on the Existing<br />

Hardware <strong>and</strong> Software Configuration <strong>and</strong> Resources<br />

Congo(config-s-if)# verify<br />

Verification Successful<br />

Example 5-48 validates the configuration changes made in the current session <strong>and</strong> applies<br />

the changes to the device. If the validation fails, the NX-OS device reverts to the original<br />

configuration.<br />

Example 5-48. Validating the Configuration Changes Made in the Current Session <strong>and</strong><br />

Applying the Changes to the Device<br />

Congo(config-s)# commit<br />

Commit Successful<br />

Example 5-49 shows how to verify the Session Manager <strong>and</strong> the ACL.<br />

Example 5-49. Verifying the Session Manager <strong>and</strong> the ACL<br />

Click here to view code image<br />

Congo# conf t<br />

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

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

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

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

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

Congo(config-s-if)# ip access-group TCP1 in<br />

Congo(config-s-if)# show configuration session<br />

config session IP-ACL1<br />

config session ACL-TCP-IN

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

Saved successfully!

Ooh no, something went wrong!