Router(config) # flow monitor Netflow-Monitor Router(config-flow-monitor) # cache timeout active timeout-timeįor our example, we will use Netflow-Montor as Flow monitor name and we will use Netflow-record as record name. Router(config-flow-monitor) # record record-name Router(config-flow-monitor)# exporter exporter-name Router(config-flow-exporter)# flow monitor flow-monitor-name We will take from one side and record to another side. In this step, we will configure Flow Monitor. This is not a requirement but if we need to avoid traffic performance problem for high traffic, we can use Flow Sampler and limit number of monitored packets. Router(config-flow-exporter)# destination 1 out-of window-size Router(config)# flow exporter exporter-name The configuration commands that we will use will be like below: Here, as a destination, we will give the Flow Collector’s IP address and we will set source port. In the second step, we will configure Flow Exporter. Router(config-flow-record) # collect counter packets Router(config-flow-record) # collect counter bytes Router(config-flow-record) # collect interface output Router(config-flow-record) # match interface input Router(config-flow-record) # match transport destination-port Router(config-flow-record) # match transport source-port Router(config-flow-record) # match ipv4 destination address Router(config-flow-record) # match ipv4 source address Router(config-flow-record) # match ipv4 protocol Router(config-flow-record) # match ipv4 tos Router(config) # flow record Netflow-Record We will use Netflow-record as flow record name. Then we will add matching traffic and then we will mention the collect information. In this first step, we will create Flow Record with “ flow record” command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |