Configuring Private BGP Monitoring with Enterprise Agents
ThousandEyes already supports private BGP monitoring through a direct eBGP connection between your router and a ThousandEyes-hosted route collector. That collection method provides your router's view of routes to internet destinations without an Enterprise Agent.
This article describes the Enterprise Agent collection method, which adds local collection to the same private BGP monitoring workflow. Enable the BGP Route Collector module on an Enterprise Agent to collect routing updates through local external Border Gateway Protocol (eBGP) sessions with your routers. The module supports private autonomous system (AS) numbers, private prefixes, or both.
The Enterprise Agent relays the collected routing telemetry to ThousandEyes over its existing secure, authenticated HTTPS connection. Your router peers with the collector inside your network rather than with a ThousandEyes-hosted collector. The router's BGP export policy determines which routes the collector receives.
For a comparison of both collection methods and the hosted-collector configuration procedure, see Private BGP Monitoring.
Use Cases
Use an Enterprise Agent with BGP Route Collector to:
Monitor private networks that use eBGP with private AS numbers or private prefixes.
Keep BGP collection local to your network by peering your routers with an Enterprise Agent deployed within your security perimeter. The BGP Route Collector then sends the data to ThousandEyes over an encrypted HTTPS connection.
Investigate unexpected route announcements and withdrawals, reachability changes, and suspected routing misconfigurations in near real time or through historical data for forensic analysis.
Identify routing changes and where they were observed. Then compare routing events with network and application performance to assess user impact.
Before You Begin
Install an Enterprise Agent or deploy a ThousandEyes Virtual Appliance (TEVA). You can also use an existing Enterprise Agent or TEVA that meets the requirements in this section. For supported operating systems and general host requirements, see Enterprise Agents. For installation instructions, see Linux Package Agent Installation or ThousandEyes Virtual Appliance Installation.
Before you enable the BGP Route Collector module, verify that the Enterprise Agent host meets these BGP-specific requirements:
Compute
3 vCPUs
Memory
4 GB
Disk
30 GB
Operating system
A supported Linux distribution
Internet connectivity
Outbound HTTPS; a proxy is acceptable
Local BGP connectivity
Bidirectional TCP port 179 between the router and Enterprise Agent
IP support
IPv4, IPv6, or both
Clustered
No
For general Enterprise Agent connectivity requirements, see Firewall Configuration for Enterprise Agents. If the Enterprise Agent connects to ThousandEyes through a proxy, see Configuring an Enterprise Agent to Use a Proxy Server.
Permissions and Information to Collect
Before you begin, collect the following information and confirm that you have the required access:
A ThousandEyes role with the Edit agents in account group and Edit BGP monitors permissions.
Administrative access to the Enterprise Agent host and configuration access to the monitored router.
The router IP address and local AS number for the BGP session.
If you plan to use TCP MD5 authentication, a password configured on both BGP peers.
For details about ThousandEyes permissions, see Built-In Roles and Permissions.
Workflow Overview
Install the Enterprise Agent: Generate the installation commands in the ThousandEyes platform, then run them on the Enterprise Agent host.
Enable BGP Route Collector: Enable the module on the Enterprise Agent.
Create a Private BGP Monitor: Associate the monitor with the Enterprise Agent that hosts the collector.
Configure the Router BGP Session: Configure the monitored router to peer with the Enterprise Agent.
Validate the Installation: Verify the agent, collector, BGP session, and route data.
Installing the Enterprise Agent
Choose an Installation Path
Existing Enterprise Agent or TEVA: If you already have an Enterprise Agent or TEVA that meets the requirements in Before You Begin, continue to Enabling the BGP Route Collector Module.
New TEVA: If you are deploying a TEVA, follow ThousandEyes Virtual Appliance Installation, and then continue to Enabling the BGP Route Collector Module.
New Linux package agent: If you need to install an Enterprise Agent as a Linux package, complete the following steps.
Prepare an on-premises Linux host that meets the requirements in Before You Begin.
In ThousandEyes, select Network & App Synthetics > Agent Settings, and then select Add New Enterprise Agent.
In the dialog, select the Linux Package tab.
Copy the installation commands generated by the ThousandEyes platform and run them on the host.
Return to Network & App Synthetics > Agent Settings > Enterprise Agents and confirm that the new Enterprise Agent appears in the list.
For complete installation instructions, including proxy configuration and time synchronization, see Linux Package Agent Installation.
Enabling the BGP Route Collector Module
In Network & App Synthetics > Agent Settings > Enterprise Agents, select the Enterprise Agent.
In the agent details panel, select the Advanced Settings tab.
Enable BGP Route Collector.
ThousandEyes installs the BGP Route Collector components on the Enterprise Agent host.
Wait for the Enterprise Agent to check in and complete the installation.
The installation runs in the background. When the module is ready, the Enterprise Agent appears in the list of available agents when you create or edit a private BGP monitor with the Enterprise Agent connection type.
Create a Private BGP Monitor by Peering with an Enterprise Agent
Use this procedure to create a private BGP monitor by establishing a BGP peering session between your router and an Enterprise Agent. To peer with a ThousandEyes-hosted route collector instead, see Configuring a Private BGP Monitor with a ThousandEyes-Hosted Route Collector.
In ThousandEyes, go to Routing > Private BGP Monitors, and then select Add Private BGP Monitor.
Enter the BGP peer information:
FieldValueMonitor Name
Enter a descriptive name, such as the router or site name.
IP Address
Enter the IP address of the router's BGP interface. Unlike a ThousandEyes-hosted collector, this address can be private if the Enterprise Agent can reach it.
AS Number
Enter the local AS number configured on the router.
TCP MD5 Password
Optional. Enter the password configured for the BGP peer.
Under Select Connections, select Enterprise Agent.
Under Agent, select the Enterprise Agent that has the BGP Route Collector module enabled.
If multiple Enterprise Agents are available, select the agent closest to the monitored router and with sufficient capacity for the expected route volume.
Select Create BGP Monitor.
ThousandEyes associates the monitor with the selected Enterprise Agent. The monitor displays a Pending status until you configure the router and establish the BGP session. It then becomes Active.
Configuring the Router BGP Session
Configure the router to use the Enterprise Agent private IP address as its BGP neighbor. Use AS 50414 as the remote AS, configure eBGP multihop with a minimum value of two, and preserve the next-hop information. For example, use next-hop-unchanged on Cisco XE/XR routers. Other router platforms provide equivalent commands.
The following IPv4 example shows a Cisco IOSv configuration. Replace the placeholders with values from your environment, and adapt the commands for your router platform and software version.
Replace router-local-as with the AS number that you entered when you created the private BGP monitor.
Replace agent-private-ip with the private IP address displayed for the Enterprise Agent in Network & App Synthetics > Agent Settings > Enterprise Agents.
If you entered a TCP MD5 Password when you created the monitor, configure the same password on the router. TCP MD5 authenticates the BGP session; it does not encrypt the routing data between the router and the collector.
Have qualified network personnel review and apply the configuration.
Validating the Installation
Before you finish, verify the deployment:
Enterprise Agent
The agent is online in Network & App Synthetics > Agent Settings > Enterprise Agents.
BGP Route Collector
The Enterprise Agent appears in the list of available agents for the Enterprise Agent connection type when you create or edit a private BGP monitor.
Router session
The router reports the neighbor at agent-private-ip as established.
Private BGP monitor
The monitor is Active in Routing > Private BGP Monitors.
Peer identity
The monitor IP address and AS number match the router configuration.
Route data
Add the monitor to a BGP test or a supported test with BGP data collection enabled to view routes in BGP Updates or BGP Route Visualization. Go to Routing > Looking Glass to view routes received by the collector and review the historical routing state of internal prefixes.
For information about reviewing collected routing data, see Using the BGP Updates Table and Using the BGP Route Visualization View.
Managing a Private BGP Monitor
You can change the Enterprise Agent associated with an existing private BGP monitor. However, you cannot change the connection type between Enterprise Agent and a ThousandEyes-hosted route collector. To use a different connection type, delete the monitor and create a new one.
Troubleshooting the BGP Session
If the private BGP monitor does not become Active, perform the following checks in order:
Confirm that the Enterprise Agent is online and that BGP Route Collector is enabled on the Advanced Settings tab. When you create or edit a private BGP monitor, confirm that the agent appears in the agent dropdown list.
Verify that the router uses the intended Enterprise Agent's IP address as its BGP neighbor.
Verify the router's local AS, remote AS 50414, address-family activation, eBGP multihop setting, and next-hop preservation configuration.
Confirm bidirectional connectivity between the router and the Enterprise Agent. Verify that the router can establish a TCP connection to port 179 on the Enterprise Agent. Check firewall or access control list logs for blocked traffic.
If TCP MD5 authentication is enabled, verify that both peers use the same password. Confirm that no device performs network address translation (NAT), port address translation (PAT), or TCP-field rewriting between the peers.
Refresh Routing > Private BGP Monitors and confirm that the monitor becomes Active.
Confirm that the expected monitor and route data appear in Looking Glass, BGP Updates, or BGP Route Visualization.
If the Enterprise Agent is offline or the BGP Route Collector does not install, review the installer output, outbound HTTPS connectivity, package-repository access, proxy configuration, and time synchronization. For more information, see:
Last updated