22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Number of No Buffer Events 0<br />

Number of Packets Dropped (No Route to H<strong>os</strong>t) 0<br />

Number of Packets Dropped (other) 0<br />

Number of Packets Dropped (LC to RP Error) 0<br />

Number of Packets Dropped (Output Drops) 0<br />

Time statistics were last cleared: Never<br />

With both a flow <strong>and</strong> an exporter defined, the last step is to define a flow monitor, which<br />

then is applied to interfaces to begin matching <strong>and</strong> exporting flows. Example 7-48 defines a<br />

flow monitor <strong>and</strong> applies it to interface Ethernet 1/9.<br />

Example 7-48. Definition <strong>and</strong> Application of a Flow Monitor<br />

Click here to view code image<br />

Jealousy# config t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Jealousy(config)# flow monitor NetFlowmonitor<br />

Jealousy(config-flow-monitor)# exporter NetFlowcollector<br />

Jealousy(config-flow-monitor)# record inbound<br />

Jealousy(config-flow-monitor)# exit<br />

Jealousy(config)# int e1/9<br />

Jealousy(config-if)# ip flow monitor NetFlowmonitor in<br />

Jealousy# show flow interface e1/9<br />

Interface Ethernet1/9:<br />

Monitor: NetFlowmonitor<br />

Direction: Input<br />

Jealousy# show flow monitor<br />

Flow Monitor NetFlowmonitor:<br />

Use count: 1<br />

Flow Record: inbound<br />

Flow Exporter: NetFlowcollector<br />

The Nexus 7000 supports the collection of NetFlow at Layer 2 in addition to the rich set of<br />

attributes that can be collected at Layer 3. With the NetFlow modular configuration,<br />

enabling Layer 2 NetFlow is a matter of defining a flow record to match on Layer 2<br />

attributes. Example 7-49 defines a Layer 2 NetFlow flow record.<br />

Note<br />

Layer 2 NetFlow cannot be applied to Layer 3 interfaces such as routed ports <strong>and</strong><br />

VLAN interfaces.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!