ZXR10ZSRV2ConīægurationGuide(SystemManagement)
2.Createsaīowrecordpolicy,andsetskeyandnon-keyīæelds.
StepCommandFunction
1ZXR10(config)#flowrecord<record-name>Createsaīowrecordpolicy,
andnamesthepolicy.Youcan
conīægureupto100differentīow
recordpolicies.Rangeofthe
policyname:1ā32characters.
ZXR10(config-flow-record)#matchdatalinkmac
{destination-address|source-address}
SetsthesourceMediumAccess
Control(MAC)addressor
destinationMACaddressasa
keyīæeld.
ZXR10(config-flow-record)#matchflow
{direction|sample-rate}
Setsīowdirectionorsampling
rateasakeyīæeld.
ZXR10(config-flow-record)#matchinterface
{input|output}
Setsinputinterfaceindexor
outputinterfaceindexasakey
īæeld.
ZXR10(config-flow-record)#matchipv4
{[destinationaddress|address-prefix
minimum-mask<len>]|[sourceaddress|
address-prefixminimum-mask<len>]}
SetsIPv4informationasakey
īæeld.
ZXR10(config-flow-record)#matchmplslabel
stacksection<1
ā
5>
SetsMPLSinformationasakey
īæeld.
<1
ā
5>:Setsthecollectionlabel
tothelayer1,2,3,4,or5label.
ZXR10(config-flow-record)#matchrouting{bgp
as-number{destination|source|next-adjacent|
prev-adjacent}|next-hop-address{ipv4|ipv6}}
Setstherelatedroutenexthop
informationasakeyīæeld.
ZXR10(config-flow-record)#matchtransport
{destination-port|icmp{ipv4|ipv6}{type|code}|
source-port|tcpflags}
Setstransportlayerinformation
asakeyīæeld.
icmp{ipv4|ipv6}{type|code}:
setsthetypeīæeldofInternet
ControlMessageProtocol
(ICMP)packetsasacollection
īæeld.TheīæeldvalueisICMP
Type*256+ICMPcode.
ZXR10(config-flow-record)#matchip{cos|
protocol|version}
SetsIPinformationasakeyīæeld.
2
ZXR10(config-flow-record)#matchipv6
{[destinationaddress|address-prefix
minimum-mask<len>]|[sourceaddress|
address-prefixminimum-mask<len>]|flow-label}
SetsIPv6informationasakey
īæeld.Rangeoflen:1ā128.
12-4
SJ-20140504150128-007|2014-05-10(R1.0)ZTEProprietaryandConīædential