Skip to main content

Configuring NetFlow for BGP

This document outlines the steps to configure NetFlow for BGP flow export with an ObserveOps Flow Explorer.

Configuration Steps

Enable BGP Routing

Enter global configuration mode and activate the BGP routing process:

router bgp <as-number>

Designate a network as local to the autonomous system:

network <network-number> [mask <network-mask>] [route-map <route-map-name>]

Configure BGP Neighbors

BGP supports two neighbor types: internal (same autonomous system) and external (different autonomous systems). External neighbors typically share adjacent subnets; internal neighbors can exist anywhere within the same autonomous system.

In router configuration mode, specify a BGP neighbor:

neighbor {<ip-address>|<peer-group-name>} remote-as <as-number>

To configure a BGP router in AS 109 with local networks and remote neighbors, use the following configuration:

router bgp 121
network 154.1.0.8
network 154.1.0.87
neighbor 154.13.0.8 remote-as 167
neighbor 154.1.54.8 remote-as 121
neighbor 154.1.45.8 remote-as 99

Include AS Information in NetFlow Exports

Set the NetFlow export destination to the Motadata server:

ip flow-export destination {<hostname>|{MOTADATA_SERVER_IP}} 2055

Enable NetFlow export with BGP AS information (choose either peer-as or origin-as, not both):

ip flow-export <version> [peer-as | origin-as]

Review needed: Source documentation references export version 5 or 7. Verify which version is supported on your device and required by ObserveOps.

After completing the configuration, navigate to Menu > Flow Explorer and select Explorer to view the active flow data.