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

 

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-numberto 65535. If you are specifying a single port number, do not

 

 

 

specify last-port-number.

 

 

 

 

 

 

 

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.

 

 

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

 

 

 

 

 

 

 

OL-15491-01

 

 

A-41

 

 

 

 

 

Page 41
Image 41
Cisco Systems OL-15491-01 appendix Ip CSG2 content, No ip any ip-address, Any