3.28.1 Stream Configuration

Use this command to delete/edit the existing streams or add a new stream.

Command Syntax:

stream <inst>
dmac { <dmac_addr> [ / <dmac_mask> ] | multicast | broadcast | unicast | not-broadcast | notunicast | any }
smac { <mac_addr> [ / <mask_mac_addr> ] | any }
outer-tag { none | vid { { <vid> [ / <vid_mask> ] | any } [ pcp <pcp_val> [ / <pcp_mask> ] ] [ dei <dei_val> ] [ { c-tag | s-tag } ] } }
inner-tag { none | vid { { <vid> [ / <vid_mask> ] | any } [ pcp <pcp_val> [ / <pcp_mask> ] ] [ dei <dei_val> ] [ { c-tag | s-tag } ] } }
etype <etype>
llc <dsap> <ssap>
snap { <oui> | rfc-1042 | snap-8021h } <pid>
ipv4 [ sip { <sip> | any } ] [ dip { <dip> | any } ] [ dscp { <dscp_vr> | { be | af11 | af12 | af13 | af21 | af22 | af23 | af31 | af32 | af33 | af41 | af42 | af43 | cs1 | cs2 | cs3 | cs4 | cs5 | cs6 | cs7 | ef | va } | any } ] [ fragment { yes | no | any } ] [ proto { <proto_value> | tcp | udp | any } ] [ dport { <dport_vr> | any } ]
ipv6 [ sip { <sip> | any } ] [ dip { <dip> | any } ] [ dscp { <dscp_vr> | { be | af11 | af12 | af13 | af21 | af22 | af23 | af31 | af32 | af33 | af41 | af42 | af43 | cs1 | cs2 | cs3 | cs4 | cs5 | cs6 | cs7 | ef | va } | any } ] [ proto { <proto_value> | tcp | udp | any } ] [ dport { <dport_vr> | any } ] 
stream-id <stream_ids>
Table 3-120. Command Description

Argument

Description

Parameter

<inst>

Stream instance name

<dmac_addr>

A destination MAC address to match against incoming frames.

<dmac_mask>

A mask in the form xx:xx:xx:xx:xx:xx, that specifies which bits of the destination MAC address that shall match the incoming frames. Default is to match all 48 bits.

<mac_addr>

A source MAC address to match against incoming frames.

<mask_mac_addr>

A mask in the form xx:xx:xx:xx:xx:xx, that specifies which bits of the source MAC address that shall match the incoming frames. Default is to match all 48 bits.

<vid>

VLAN ID to match incoming frames against.

<vid_mask>

A mask specified as an integer, that specifies which bits of the VLAN ID that shall match the incoming frames

<pcp_val>

The PCP value to match the incoming frames against.

<pcp_mask>

A mask that specifies the bits of the PCP value that shall match the incoming frame.

<dei_val>

The DEI value that shall match the incoming frame.

<etype>

A hexadecimal (or decimal) value ranging from 0x600 to 0xffff indicating the frame's EtherType.

<dsap>

Matched LLC Destination Service Access Point (DSAP).

<ssap>

Matched LLC Source Service Access Point (SSAP)

<oui>

SNAP OUI. The range is from 0x000000–0XFFFFFF.

<pid>

Protocol ID. The range is from 0x0–0xFFFF.

<sip>

Match on source IPv4 address/mask, for example, 1.2.3.4/32 or 1.2.0.0/16.

<dip>

Match on destination IPv4 address/mask, for example, 1.2.3.4/32 or 1.2.0.0/16.

<dscp_vr>

Matched DSCP value/range

<proto_value>

Match a custom IP protocol number

<dport_vr>

Match UDP/TCP destination port value/range

Default

N.A

Mode

Global Configuration mode, Stream Configuration mode, and Port List Interface mode ( to associate one or more streams with a port)

Usage

Create or modify stream instance

Example

Example 1:

Create stream instance 1, configure EtherType and associate this stream with port 8.

(config)# stream 1
(config-stream)# etype 0x7777
(config-stream)# exit
(config)# interface GigabitEthernet 1/8
(config-if)# stream-id 1