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

# sk173204 - Received BGP routes appear as unusable, hidden and inactive

| Property | Value |
|----------|-------|
| Solution ID | sk173204 |
| Date Created | 2021-04-23 |
| Last Modified | 2024-11-25 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82, R81.20, R81.10 (EOS), R81 (EOS) |
| OS | Gaia |

## Symptoms

- * Checking BGP routes received from a peer with the command: `> show route all` users see that the routes are hidden, inactive and in some cases are unusable, for example:  
  `
  [Expert@Gateway:0]# clish -c "show route all" | grep 10.105`  
  `
  B `**H i**` 10.105.133.0/24 via 172.28.228.7, `**unusable**` route`  
  `
  B `**H i**` 10.105.138.0/24 via 172.28.228.7, `**unusable**` route`  
  `
  B `**H i**` 10.105.143.0/24 via 172.28.228.7, `**unusable**` route`

* BGP is established with a peer and routes are received.

* Routemaps or Inbound-filter-policy are configured to accept all routes from the BGP AS.

* Running BGP debug (as per [sk101399](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk101399)) you can see the following messages in the traces:  

  * \[DATE TIME\] bgp_recv_check_asloop(7177): **Routing loop, AS path exceeds AS limit (0) for Local AS** 65001
  * \[DATE TIME\] bgp_rt_install_single_route(7727): 172.28.228.7 \[eBGP AS 65002\] Installing new route 10.105.133.0/24, **pref unusable** (-/-)

  <br />

## Cause

The BGP peer publishes the routes but it also prepend the local AS, which creates routing loop and make the route not preferable and in some cases unusable. You can see in traffic capture, in the message update packet, that the AS number is prepended.

## 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
