Displaying The Logging Configuration - Cisco Catalyst 3560-X Software Configuration Manual

Hide thumbs Also See for Catalyst 3560-X:
Table of Contents

Advertisement

Chapter 1
Configuring System Message Logging and Smart Logging
Enabling Smart Logging for Port ACL Deny or Permit Actions
The switch supports port ACLs, router ACLs, and VLAN ACLs.
When you configure any permit or deny ACL, you can configure logging or smart logging as part of the
access list, to take place on all traffic that the ACL permits or denies. The type of port that you attach
the ACL to determines the type of logging. If you attach an ACL with smart log configured to a router
or a VLAN, the ACL is attached, but smart logging does not take affect. If you configure logging on an
ACL attached to a Layer 2 port, the logging keyword is ignored.
You add the smart log configuration option when you create the permit and deny conditions for an ACL.
This example enables smart logging on a numbered access list:
Switch(config)# access-list 199 permit ip any any smartlog
This example enables smart logging on a named access list:
Switch(config)# ip access-list extended test1
Switch(config-ext-nacl)# deny ip host 10.1.1.3 any smartlog

Displaying the Logging Configuration

To display the logging configuration and the contents of the log buffer, use the show logging privileged
EXEC command. For information about the fields in this display, see the Cisco IOS Configuration
Fundamentals Command Reference, Release 12.4 on Cisco.com.
To display smart logging information, use the show logging smartlog command. For information about
this command, see the command reference for this release.
OL-25303-03
Port ACLs are IP or MAC ACLs applied to a Layer 2 port. Logging is not supported on port ACLs,
but smart logging is supported on IP ACLs applied to Layer 2 ports.
Router ACLs are ACLs applied to Layer 3 ports. Router ACLs support logging but not smart
logging.
VLAN ACLs or VLAN maps are ACLs applied to VLANs. You can configure logging on VLAN
maps, but not smart logging.
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
Displaying the Logging Configuration
1-17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750-x

Table of Contents