Overview
Use this procedure to attach a source interface to a monitor session for an Access Control List (ACL). This task covers entering interface configuration mode, applying the IPv4 access group, attaching a source interface, and specifying the direction of traffic to be replicated for monitoring.
Use these steps to attach a source interface to a monitor session for an ACL.
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Enter interface configuration mode for the specified source interface in interface type number . The interface number is entered in rack/slot/module/port notation. For more information about the syntax for the router, use the question mark (?) online help function. Example:
|
|
| 3. | Control access to an interface in ipv4 access-group acl-name {ingress | egress} . Example:
|
|
| 4. | Attach a monitor session to the source interface and enter the monitor session configuration mode. Example:
|
|
| 5. | Specify that the traffic mirrored is according to the defined ACL. Example:
|
|
| 6. | Exit the monitor session configuration mode and return to interface configuration mode. Example:
|
|
| 7. | Save configuration changes. Example:
When you execute the
end command, the system prompts you to commit changes.
|
|
| 8. | Display information about the monitor session. Example:
|