> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/solution/instances-lose-external-connectivity-after-detaching-floating-ip.md).

# Instances Lose External Connectivity After Detaching Floating IP

## Problem

After removing a floating IP from an instance, external connectivity ceases.

## Environment

* Platform9 Managed OpenStack - v4.5 - v5.2
* Neutron

## Cause

The ***neutron-l3-agent*** service fails to update the routing rule corresponding to the instance's fixed IP within the router namespace on the L3 agent node(s) responsible for hosting the virtual router (in a DVR configuration, this would be the instance hypervisor). Subsequently, this causes a loss of external connectivity for the instance.

## Resolution

1. Identify the fixed IP, network, and host associated with the affected instance.

<figure><img src="/files/Pay94RobMjrrdMmTZIqe" alt="Screen_Shot_2020-01-02_at_3.38.20_PM.png"><figcaption><p>Screen_Shot_2020-01-02_at_3.38.20_PM.png</p></figcaption></figure>

2. Identify the router associated with the network.

<figure><img src="/files/XEB9JoRp4pznacuQfCX7" alt="Screen_Shot_2020-01-02_at_3.39.56_PM.png"><figcaption><p>Screen_Shot_2020-01-02_at_3.39.56_PM.png</p></figcaption></figure>

3. Record the UUID of the network and router identified in the previous two steps.

{% hint style="info" %}
**Info**

**Note**: In the UI, this may be done by navigating to the "Networks" tab, selecting either Networks or Routers and then subsequently clicking on the name of the resource. An **OpenStack UUID** column will be visible in the resource overview.
{% endhint %}

4. In the **`qrouter`** namespace (corresponding to the UUID of the router) on the instance's host, inspect the routing rules.

{% hint style="warning" %}
**Attention**

**Note**: In the following examples, a unique router UUID will be used which will differ from your own. Ensure you replace the UUID when executing the commands yourself.
{% endhint %}

{% tabs %}
{% tab title="None" %}

```none
# ip net e qrouter-204830ee-4553-4c25-b720-646e565ee4bf ip rule
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
66502: from 192.168.0.28 lookup 16
3232235521: from 192.168.0.1/24 lookup 3232235521
```

{% endtab %}
{% endtabs %}

5. Inspect the route table (of which the ID may be identified based on the prior step) corresponding to the instance's fixed IP.

{% tabs %}
{% tab title="None" %}

```none
# ip net e qrouter-204830ee-4553-4c25-b720-646e565ee4bf ip route show table 16
default via 169.254.110.93 dev rfp-c0dd3bdd-3
```

{% endtab %}
{% endtabs %}

The default route with the `rfp` interface in the rule indicates all instance traffic is still going to the floating IP namespace.

6. Delete the stale routing rule.

{% tabs %}
{% tab title="None" %}

```none
# ip net e qrouter-204830ee-4553-4c25-b720-646e565ee4bf ip rule del pref 66502
```

{% endtab %}
{% endtabs %}

## Additional Information

* [LP #1891673 – qrouter ns ip rules not deleted when fip removed from vm](https://bugs.launchpad.net/neutron/+bug/1891673)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmo/solution/instances-lose-external-connectivity-after-detaching-floating-ip.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
