Ip (csg2 content) – Cisco OL-15491-01 User Manual

Page 42

Advertising
background image

A-42

Cisco Content Services Gateway - 2nd Generation Release 2.0 Installation and Configuration Guide

OL-15491-01

Appendix A CSG2 Command Reference

ip (CSG2 content)

ip (CSG2 content)

To define the subset of Layer 3 and Layer 4 flows that can be processed by the CSG2 accounting services,
use the ip command in CSG2 content configuration mode. To delete the flow definition, use the no form
of this command.

ip {any | ip-address [netmask]} [any | protocol [port-number [last-port-number]]]

no ip {any | ip-address}

Syntax Description

Defaults

If you specify an IP address but no network mask, the default network mask is 255.255.255.255 or /32
(flows to a specific host can be processed).

If you do not specify a protocol, flows of any protocol type can be processed.

If you specify a protocol but no port number, the default port number is 0, which means that flows from
any port number can be processed.

The CSG2 parses port numbers only when processing TCP and UDP traffic. For all other protocols, the
CSG2 does not track the layer 4 port.

any

All Layer 3 and Layer 4 flows can be processed. This is the default setting.

ip-address

IP address for which Layer 3 and Layer 4 flows can be processed.

netmask

(Optional) Mask that identifies the network for which Layer 3 and Layer 4 flows
can be processed.

You can express the network mask in either IP dotted notation (n.n.n.n) or prefix
notation (/nn, where nn is the number of leading 1-bits). For example,
255.255.0.0 and /16 are equivalent network masks.

The default network mask is 255.255.255.255 or /32, which means flows to a
specific host can be processed.

any

(Optional) All protocol types of Layer 3 and Layer 4 flows can be processed.
This is the default setting.

protocol

(Optional) Protocol type of Layer 3 and Layer 4 flows that can be processed:

any—Flows of any protocol type can be processed. This is the default
setting.

tcp—Only TCP flows can be processed.

udp—Only User Datagram Protocol (UDP) flows can be processed.

protocol-number—Number identifying the protocol whose flows can be
processed. The range is from 0 to 255, where 0 means the same as any.

port-number

(Optional) Specifies the beginning of the range of port numbers for which Layer
3 and Layer 4 flows can be processed. The range is 0 to 65535, where 0
indicates that flows from any port number can be processed.

last-port-number

(Optional) Specifies the end of the range of port numbers, The range is
port-number to 65535. If you are specifying a single port number, do not
specify last-port-number.

Advertising