> Source: [sk170693](https://support.checkpoint.com/results/sk/sk170693)

# sk170693 - Adding route-maps to BGP drops the connection with peers

| Property | Value |
|----------|-------|
| Solution ID | sk170693 |
| Date Created | 2020-11-26 |
| Last Modified | 2020-11-29 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * Adding new route-maps to BGP causes the BGP peers to go down.

* The following can be seen under /var/log/messages:  

  `
  [DATE TIME] trace_on: Tracing to "/var/log/routed_1.log" started`  
  `
  [DATE TIME] aspath_adv_match: ASPath "64513 64513 65001 64600" does not match regex: "^64513_64552$|^64513_64513_64552$" (expanded to "^64513(^|[\^\$\,\{\} ]|$)64552$|^64513(^|[\^\$\,\{\} ]|$)64513(^|[\^\$\,\{\} ]|$)64552$")`

* High usage on CPU 0

* syslogd process in D status.

## Cause

Trace messages related to match of community and aspath regular expressions in route-maps are being logged at too high a priority.

The messages are printed into /var/log/routed_messages, but they should be printed into /var/log/routed.log and only when trace logging is enabled.

There is a high number of messages, and none of them indicate any problem. (one or more for each "community-regex" or "aspath-regex", in a routemap rule, for each route being processed).

This slows down policy processing for \~2000 routes to \~30 BGP peers, so much that BGP keepalives are not sent in time.

As a result BGP peering is lost, and it takes long time to recover them.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
