session-filter

Description                                                    Configure a session filter.

Syntax                                                                  [no] session-filter filter-name set
{
dest-addr ipv4addr [dest-mask {/length | mask}] |
dest-port portnum |
ipv6 |
sip |
source-addr ipv4addr |
source-port portnum
} 

Parameter

Description

dest-addr
dest-port
source-addr
source-port

Matches on sessions that have a source or destination IPv4 address or port:

  source-addr ipaddr [{subnet-mask | /mask-length}] – Matches on IPv4 sessions that have the specified source IP address.

  source-port port-num – Matches on IPv4 sessions that have the specified source protocol port number, 1-65535.

  dest-addr – Matches on IPv4 sessions that have the specified destination IP address.

  dest-port – Matches on IPv4 sessions that have the specified destination protocol port number, 1-65535.

You can use one or more of the suboptions together in a single command, nested in the order shown above. For example, if the first suboption you enter is dest-addr, the only additional suboption you can specify is dest-port.

ipv6

Matches on all sessions that have a source or destination IPv6 address.

sip

Matches on all SIP sessions.

 

Default                                                                No session filters are configured by default.

Mode                                                                   Configuration mode

Usage                                                                  Session filters allows you to save session display options for use with the clear session and show session commands. Configuring a session filter allows you to specify a given set of options one time rather than re-entering the options each time you use the clear ses­sion or show session command.

Example                                                            The following commands configure a session filter and use it to filter show session output:

ACOS(config)#session-filter f1 source-addr 1.0.4.147

ACOS(config)#show session filter f1

Prot Forward Source         Forward Dest           Reverse Source         Reverse Dest           Age Hash

-----------------------------------------------------------------------------------------------------------

Tcp  1.0.4.147:51613        1.0.100.1:21           1.0.3.148:21           1.0.4.147:51613        120   1

Table of Contents

Index

Glossary

-Search-

Back