> For the complete documentation index, see [llms.txt](https://documentation.2pintsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.2pintsoftware.com/stifler/2.10/configuration/stifler-network-locations/automatic-linking-of-location-network-groups-and-networks.md).

# Automatic linking of Location, Network Groups and Networks

### External addresses (NAT:ed networks)

![](/files/K9oIm4WkuPuZ4BIjeTwu)

Automatic networking linking&#x20;

There are two types of automatic linking;&#x20;

1. Linking to an existing network, where the network is a phycially attached network that is routable from one to another. This can be a subnet that is defined as a different vlan on the same layer 3 switch. &#x20;
2. Networks that are in the same physical premise but is not routable directly within the same physical location. This could be the case where we have a WiFi network that is using central switching that is in the same physical location as another wired network. The networks are only routable via a central route (i.e. datacenter).&#x20;

&#x20;

Routing detection&#x20;

Route tracert is key for automatic link detection. There are two types of tracert testing;&#x20;

1. ICMP based tracert sessions&#x20;
2. TCP based tracert sessions \[BETA]&#x20;

We strongly recommend using the Beacons to define the place for the routing tests. As the beacon is defined on the networking group level, the following logic instructs the client to find it’s best beacon;&#x20;

1. Geo data&#x20;
2. Routing data to &#x20;

Same network linking&#x20;

We judge if the network is in the same physical network via;&#x20;

1. The network routing information&#x20;
2. If we return a route information from client this is compared to an already existing route, if there is a match on the second and third routes the location is deemed to be the same.&#x20;
3. If the route is the same, we test TCP connection data across on the BranchCache or DO ports to ensure we have a platform for P2P traffic to flow.&#x20;
4. If this test fails the location will be added in the same physical location but as a separate networking group.&#x20;
5. If we have no routing information or if the route data is inconsistent we check the machines gateway information by using the MAC address. If we find a match within 5 (configurable) bits on the MAC address we then test those locations for;&#x20;
6. If there is a direct link to that network using the TCPPing options.&#x20;
7. In case of a successful test, we then add the subnet to the same network group as the first item.&#x20;

If the matching location has no Geo Data set, we then add the incoming geo location data (not for VPN).&#x20;


---

# 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://documentation.2pintsoftware.com/stifler/2.10/configuration/stifler-network-locations/automatic-linking-of-location-network-groups-and-networks.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.
