標準フロー・フィールドの構成
フロー・レコードは、デバイスからコレクターにエクスポートする必要があるレコード・フィールドを定義します。
このタスクについて
標準フロー・フィールドの構成。
手順
- フロー・データの必須のエクスポート先を指定するために、以下のように構成します。
configure terminal flow exporter <NPI_exporter> destination 100.100.10.10 source GigabitEthernet0/3 transport udp 2050 export-portocol netflow-v9 # Configure this option template to support application id to name and description mapping option application table # Configure if required to support NBAR2 for application attributes option application attributes exit - フロー・フィールドを収集するために、フロー・レコードを以下のように構成します。 注: この例は、NetFlow V9 レコード用です。
configure terminal flow record type performance-monitor Netflow_v9 match ipv4/ipv6 tos match ipv4/ipv6 protocol match ipv4/ipv6 source address match ipv4/ipv6 destination address match transport source-port match transport destination-port match interface input match application name collect interface output collect counter bytes collect counter packets collect flow direction collect routing source as collect routing destination as collect routing next-hop address ipv4 collect transport tcp flags collect timestamp sys-uptime first collect timestamp sys-uptime last exit - 新しい NetFlow キャッシュを作成するフロー・モニターと、必須のフロー・レコードおよびフロー・エクスポーターを以下のように構成します。
configure terminal flow monitor <NPI_monitor> description Netflow v9 monitor record Netflow_v9 exporter <NPI_exporter> exit - フロー・モニターをインターフェースに適用するために、以下のように構成します。
configure terminal interface GigabitEthernet0/3 ip flow monitor <NPI_monitor> input ip flow monitor <NPI_monitor> output exit
