Merging Two Networks: The M&A Integration Guide
A runbook for merging two networks after an acquisition: inventory both sides, resolve overlapping addresses and VLAN collisions, then cut over site by site.

On this page
- At a Glance: Three integration sequences
- Build the inventory and choose the namespace
- Find overlapping address space first
- Resolve VLAN and circuit collisions
- Merge records in dependency order
- Cut over one site, then batch the rest
- Prove the merge and close the source organization
- Run the overlap report this week
The deal closes on a Friday and the networks stay exactly as they were, which is the first surprise for anyone who expected the integration to begin with a cutover. Two sets of sites, two address plans, two circuit estates, two identity providers, and two documentation habits that were never designed to meet all have to be reconciled, and the order in which you resolve the collisions decides whether the merged network is documented or becomes a permanent pile of exceptions.
The hardest collision is almost always private address space. Both companies are likely to use 10.0.0.0/8 or 192.168.0.0/16, and many will share the same convenient blocks around 10.10, 10.20, or 192.168.1.0. You cannot connect two networks that contain the same addresses and expect routing, DNS, or firewall policy to sort it out later. This guide treats the merge as an operator’s runbook: export both sides, choose the target namespace, find the overlaps and duplicate identifiers, import records in dependency order, cut over one site, then prove the result.
At a Glance: Three integration sequences
| Big bang | Site by site | Address first, connect second | |
|---|---|---|---|
| First move | Merge core routing and identity in one window | Move one pilot site, then repeat | Settle the address plan before any link is built |
| Address collisions | Discovered during the cutover | Discovered per site | Resolved in a plan, before configuration changes |
| Failure mode | Both networks fail together | Localized, but the overlap work repeats | Slower to show visible progress |
| Best fit | Small footprints with no private overlap | Large footprints with clean site boundaries | Any merger where RFC1918 space overlaps |
The third sequence is the one most integrations end up using after the first cutover goes badly, and it is the only one that gives you a defensible answer when an auditor asks where a subnet came from.
Build the inventory and choose the namespace
You need two exports, not one. The surviving organization is the target, and the acquired organization is the source of evidence. Create a key with read permission in each organization and keep those keys for the audit, then add a write key on the surviving side when you start importing.
set -euo pipefail
export SURVIVING_ORG="acme-netops"
export ACQUIRED_ORG="northwind-it"
export SURVIVING_KEY="read_key_for_acme"
export SURVIVING_WRITE_KEY="write_key_for_acme"
export ACQUIRED_KEY="read_key_for_northwind"
mkdir -p merge/surviving merge/acquired
Pull the records that drive every later decision, keeping one file per entity so every analysis reads the same source and a later run can be compared against it.
pull() {
curl --fail --silent --show-error -H "Authorization: Bearer $2" \
"https://api.obelinf.com/$1/$3?all=true" > "merge/$4/$3.json"
}
for org in surviving acquired; do
key=$([ "$org" = surviving ] && echo "$SURVIVING_KEY" || echo "$ACQUIRED_KEY")
name=$([ "$org" = surviving ] && echo "$SURVIVING_ORG" || echo "$ACQUIRED_ORG")
for entity in sites devices subnets vlans circuits; do
pull "$name" "$key" "$entity" "$org"
done
done
The all=true parameter returns up to 1000 rows in one call, and limit is capped at 100, so paging without all will truncate a large estate silently. Project both subnet exports into the fixed shape the overlap check expects. sort -V is GNU coreutils, so on macOS use gsort -V.
for org in surviving acquired; do
jq -r '.subnets[] | [.cidr, .name, (.site_name // "unassigned"), (.vlan_name // "no-vlan")] | @tsv' \
"merge/$org/subnets.json" | sort -V > "merge/$org/subnets.tsv"
done
10.20.0.0/16 corp-core ams-dc1 users
10.20.4.0/24 branch-users lon-hq users
10.30.0.0/16 engineering fra-dc2 eng
Check the row counts against what each team believes it owns before you analyze anything. A source export with 40 subnets when the acquired team expects 90 is a discovery problem, not a merge problem, and finding it now is much cheaper than finding it during a cutover.
The namespace decision belongs in the same pass, because importing first and renaming later doubles the work and destroys the audit trail you are trying to build.
| Decision | Rule to write down | Why it matters during the merge |
|---|---|---|
| Organization | One surviving org, one read only source org | Two live orgs keep two sources of truth alive |
| Site names | Adopt the larger estate’s convention, keep the old name in description |
Site slugs are unique per organization and appear in URLs |
| Device names | Role, site code, and sequence, for example sw-ams-01 |
Duplicate names collide on import and confuse monitoring |
| Tags | legacy-acquired, integration-wave-1, renumber-pending |
Tags make the merge state queryable from the API |
| Custom fields | Use them for the old asset ID and carrier reference | Preserves the source identifier without polluting the name |
Define those custom fields before the import, because a value for an undefined field is rejected. The source identifier is what lets you answer why an imported record exists long after the acquired organization is gone.
Slugs are unique per organization for sites, devices, and circuits, so two companies with a core-sw-01 or an hq site will collide even when the display names differ. The create call returns 409 rather than silently merging the records.
jq -r '.sites[] | .slug' merge/acquired/sites.json merge/surviving/sites.json \
| sort | uniq -d
jq -r '.devices[] | .slug' merge/acquired/devices.json merge/surviving/devices.json \
| sort | uniq -d
jq -r '.circuits[] | .slug' merge/acquired/circuits.json merge/surviving/circuits.json \
| sort | uniq -d
A duplicate slug is not a reason to rename the device in the source export. It is a reason to decide the target name, record the source name in a custom field or the description, and use the target name consistently from the first import onward. If both organizations already keep their records in Obelinf, you have two organizations and two complete exports, which is the easiest starting point this work ever gets. If only one side does, the documented side defines the target schema and the other side starts with discovery, and the infrastructure migration use case describes that source to target model in more detail.
Find overlapping address space first
Overlap detection is the one analysis that changes the architecture. Export both subnet lists, compare every pair with Python’s standard library, and write the result to a dated file. The script handles IPv4 and IPv6, and it reports partial overlaps as well as exact duplicates.
python3 - <<'PY'
import ipaddress
def rows(path):
with open(path) as fh:
for line in fh:
parts = line.rstrip("\n").split("\t")
if len(parts) >= 2:
yield parts[0], parts[1]
left = list(rows("merge/surviving/subnets.tsv"))
right = list(rows("merge/acquired/subnets.tsv"))
for cidr_a, name_a in left:
net_a = ipaddress.ip_network(cidr_a, strict=False)
for cidr_b, name_b in right:
net_b = ipaddress.ip_network(cidr_b, strict=False)
if net_a.overlaps(net_b):
print(f"{net_a}\t{name_a}\t{net_b}\t{name_b}")
PY
10.20.0.0/16 corp-core 10.20.4.0/24 branch-users
10.30.0.0/16 engineering 10.30.8.0/23 lab
Those two rows define the integration program. The first says the acquired branch network sits inside the surviving core block. The second says the acquired lab overlaps an engineering aggregate that the surviving side may have summarized from smaller subnets. Neither is fixed by connecting the networks, and neither is visible from a device inventory.
| Option | What it fixes | What it costs | Use when |
|---|---|---|---|
| Renumber the smaller side | Removes the overlap permanently | Address changes, DNS updates, firewall rules, downtime | The overlapping estate is small or already scheduled for refresh |
| Keep the overlap in a VRF | Separates two identical prefixes on shared hardware | VRF aware routing, firewall contexts, more complex troubleshooting | Both sides need the same addresses for years |
| NAT between the networks | Connects without renumbering | Breaks end to end addressing, complicates logs and monitoring | A short lived integration or a vendor managed segment |
| Tunnel and route selectively | Limits the overlap to a few flows | Overlay management, MTU and throughput limits | Only a handful of services need to talk during the transition |
Obelinf will reject an exact duplicate CIDR because subnet CIDRs are unique per organization, but it will accept a smaller block inside a larger one. That is why the script matters: a 10.20.4.0/24 on one side and a 10.20.0.0/16 on the other are both valid records and an invalid network. If a pair needs a second opinion before you commit to a renumber, the subnet overlap checker answers the single pair question quickly, and the IP address management records are where the decision belongs once it is made.
Resolve VLAN and circuit collisions
VLAN IDs collide more often than subnet IDs because every network engineer reaches for 10, 20, 30, and 99. Export both sides and compare the numbers before you decide which VLAN groups survive.
jq -r '.vlans[] | .vid' merge/acquired/vlans.json merge/surviving/vlans.json \
| sort -n | uniq -d
20
30
99
Three shared numbers are not automatically three conflicts. Uniqueness is enforced per group, not per organization, so a VID only collides when both records end up in the same group. A VLAN with no group is not protected by the constraint at all. Decide the group structure first, then read the numbers.
Circuits have the same problem in a different shape. The carrier reference is not a unique key in the record, and two providers can assign similar looking references, so compare the provider and the circuit ID as a pair rather than treating the ID alone as identity.
jq -r '.circuits[] | [(.provider_name // "no-provider"), (.cid // "no-cid")] | @tsv' \
merge/acquired/circuits.json merge/surviving/circuits.json \
| grep -v $'\tno-cid$' | sort | uniq -d
Colt EU-88421
A result like that is either a duplicate record imported twice or two contracts that should be one. Resolve it with the carrier before the invoice run, not after. Bandwidth is stored in Mbps, so 1000 means 1 Gbps, and a blank value means nobody recorded the committed capacity. Two 1 Gbps circuits do not add up to 2 Gbps of usable capacity if they share a provider path, a router, or a single conduit, which is exactly the kind of assumption the integration should test rather than inherit. Public ASNs are the other long lived identifier in the same estate: keep both until the route origination moves, because retiring an ASN is a separate change with the RIR and every provider that carries the prefix.
Merge records in dependency order
Every record type points at something else, so the import has an order whether you plan one or not. Sites come before racks, racks before devices, VLAN groups before VLANs, VLANs before subnets, subnets before IP addresses, and devices and interfaces before cables and circuits. Importing devices first produces records with no rack, no site, and no address, and then the collision reports no longer match the network.
Before the first write, check the plan limits. Merging two organizations adds their resources together, and an import that crosses a metered limit fails halfway through with a 403.
curl --fail --silent --show-error -H "Authorization: Bearer ${SURVIVING_KEY}" \
"https://api.obelinf.com/${SURVIVING_ORG}/billing" \
| jq -r '.usage | to_entries[] | [.key, .value.current, .value.limit] | @tsv'
sites 42 100
devices 610 750
subnets 88 150
ipAddresses 1840 5000
If devices are close to the limit, clean up decommissioned hardware in the surviving org before importing the acquired estate. Importing first and cleaning later turns a scheduled migration into a billing negotiation.
The import itself is a scripted mapping, not a retype. Create each record with the target name, the target slug where the record has one, and the source identifier stored in a custom field, then attach relationships with a patch once both sides exist. Verify the patch response before moving to the next record, and use the write key for this step.
curl --fail --silent --show-error -X PATCH \
-H "Authorization: Bearer ${SURVIVING_WRITE_KEY}" \
-H "Content-Type: application/json" \
-d "{\"site_id\":\"${SITE_ID}\",\"vlan_id\":\"${VLAN_ID}\"}" \
"https://api.obelinf.com/${SURVIVING_ORG}/subnets/${SUBNET_ID}" \
| jq -r '[.subnet.name, .subnet.cidr, (.subnet.vlan_id // "none")] | @tsv'
Keep the acquired organization read only until the integration closes. It is the evidence for every record you created, and deleting it early removes the only way to answer why a subnet exists.
Cut over one site, then batch the rest
Do not connect the two networks at Layer 2 for the integration. Route between them through a firewall, even when a single flat VLAN would be faster to build. Extending a VLAN across both companies merges two spanning tree domains, two broadcast domains, and two failure domains, and it makes a rollback depend on both sides at once. A routed boundary lets you move one site at a time and keep the failure local.
Before the window, capture the current state from both sides in the same shape. On Cisco devices, the VLAN table, the port status, and the EtherChannel summary catch most integration mistakes.
switch# show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
10 users active Gi1/0/2, Gi1/0/3
20 voice active Gi1/0/4
99 mgmt active
switch# show interfaces status
Port Name Status Vlan Duplex Speed Type
Gi1/0/2 desk-a12 connected 10 a-full a-1000 10/100/1000BaseTX
Gi1/0/4 phone-a12 notconnect 20 auto auto 10/100/1000BaseTX
switch# show etherchannel summary
Group Port-channel Protocol Ports
1 Po1(SU) LACP Gi1/0/1(P) Gi1/0/2(P)
2 Po2(SD) LACP Gi1/0/5(s) Gi1/0/6(D)
(P) means the port is bundled, (s) means suspended, (I) means standalone, and (D) means down. A suspended member after the cutover is usually an LACP mode mismatch or a channel group that was configured on one side only. On Junos, show vlans and show interfaces terse give you the same signal, and on a Linux bridge bridge vlan show plus ip -br addr confirm the host landed in the segment you intended.
user@sw> show vlans
Name Tag Interfaces
users 10 ge-0/0/2.0*
voice 20 ge-0/0/4.0*
user@sw> show interfaces terse
Interface Admin Link Proto Local Remote
ge-0/0/2.0 up up inet 10.20.10.21/24
The cutover order that works is pilot, then batch by dependency, then shared services. Move one small site that has a local internet path and no unusual applications, keep it on the routed boundary for a full business cycle, and use it to test DNS forwarders, DHCP relay, monitoring, and authentication before touching a larger site. Then move sites in batches that share an upstream circuit, and leave the identity provider and the core routing domain for last, because every other move depends on them.
Write the rollback condition before the window opens. A routing adjacency that does not form, a DHCP relay pointing at the wrong server, duplicate address alarms, or a pilot site that cannot reach both legacy and target services are all reasons to revert that site. Reverting one site is a normal integration event; reverting the whole program because the first batch failed is a schedule failure.
Prove the merge and close the source organization
The integration is finished when the target records describe the network and the source records are no longer needed. Prove both. Compare the source subnet list with the target list, then read the changelog for the import window.
comm -23 <(jq -r '.subnets[].cidr' merge/acquired/subnets.json | sort) \
<(jq -r '.subnets[].cidr' merge/surviving/subnets.json | sort)
An empty result means every source CIDR has a target record. A non empty result is a list of subnets that were retired, renumbered, or missed, and each one needs a decision written next to it.
curl --fail --silent --show-error -H "Authorization: Bearer ${SURVIVING_KEY}" \
"https://api.obelinf.com/${SURVIVING_ORG}/changelog?limit=100" \
| jq -r '.entries[] | [.created_at, .entity_type, .action, (.entity_name // ""), (.user_name // "api")] | @tsv'
Check changelog_retention_days in the /billing response before you rely on it. A long integration can outlive the retention window, and the acquired organization’s history is part of the evidence pack. Export the records you need while the source org is still live, then close it in the same order you opened it: freeze writes, take a final export, reconcile the four lists, and only then remove access. An acquired subnet that nobody can explain is still a decision someone has to make, and the merge is not complete until that decision has an owner.
Run the overlap report this week
Start with the two subnet exports and the Python comparison, before the first change window. The rows that come back are the integration program, and the first one to fix is usually the block that both sides believe they own, because every circuit, firewall rule, and DNS record built on top of it will have to change with it. Then work down the collision list: duplicate slugs, shared VLAN IDs, and circuit references that resolve to one contract. The records you fix in that pass become the baseline for the first cutover, and the cutover becomes a test of the plan instead of the place where the plan is discovered.
Frequently Asked Questions
How do you merge two networks after an acquisition?
What is the biggest risk when merging two company networks?
Should you merge VLANs or keep them separate?
What should be documented first in an M&A network integration?
Stop reaching for a spreadsheet
Obelinf keeps every subnet, device, circuit, and rack in one live source of truth, with audit logs and a topology view. Free for personal use.
Related Articles

SNMP Traps vs Polling vs Streaming Telemetry
Polling, traps, and model driven telemetry describe the same switch but prove different things. Configure all three, then read each one for what it can actually confirm.
Read more
OSPF vs Static Routes for Multi Site Networks
Static routes are fine until the second path, the first dead neighbor, or the twelfth site. A practical guide to choosing OSPF or static routing per site, with configs, cost math, and a cutover procedure.
Read more
SNMP Explained: OIDs, Polling, and Real Data
SNMP is a database you query, not a monitoring system. Learn the OIDs that matter, why 32 bit counters lie, and how to turn a poll into a bandwidth number you can defend.
Read more