14 min read

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.

ByAndré Ribeiro· Founder, Obelinf
Merging Two Networks: The M&A Integration Guide
Merging Two Networks: The M&A Integration Guide · November 23, 2026
On this page

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.

Two subnet exports with one acquired branch block sitting inside a surviving core aggregateOne record is legal, the pair is notcidr name site10.20.0.0/16 corp-core ams-dc110.20.4.0/24 branch-users lon-hq10.30.0.0/16 engineering fra-dc210.30.8.0/23 lab fra-dc2Exact duplicates fail the APITwo identical CIDRs cannot coexist in oneorganization. The create call returns 409.Partial overlaps do notA /24 inside a /16 is stored withoutcomplaint and breaks routing later.Run the pair comparison, not the duplicate check, because the API only enforces the easy case.Every overlap gets one decision: renumber, VRF, NAT, or tunnel.

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.

The same VLAN ID means users on one side and voice on the otherSame number, different meaningSurviving organization10 users20 voice30 guestgroup: campusAcquired organization10 data20 users99 mgmtgroup: main20The VID is unique inside a group. Two VLANs can share a number and still be valid until thegroups are merged or a record is created without one.

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.

Import order from sites through racks, devices, VLANs and subnets, IP addresses, then cables and circuitsSitescensus firstRackssite_idDevicesrack_idVLANs, subnetsvlan_idIP addressessubnet_idCableslastA device without a rack is invisible to site filters. A subnet without a VLAN loses itssegment relationship. Import the parents first or spend the next month repairing links.Circuits come after sites and interfaces, because both endpoints have to exist first.

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.

Six checks to complete before a site cutoverThe pilot site has to pass six checksRoutingAdjacency up, expected next hop,no overlapping prefix installed.DHCPRelay points at the target server,lease renews on the new scope.DNSForwarders, conditional zones,and reverse records resolve.IdentityUsers authenticate against thesurviving directory, not the old one.MonitoringThe site is in the target tool, withalerts routed to a named owner.RollbackThe old path still works, and oneperson can authorize the reversal.A site that fails any check stays on the old path and does not enter the next batch.

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?
Inventory both networks first, then settle the target namespace and the private address plan before changing any configuration. Resolve overlapping subnets, duplicate VLAN IDs, and duplicate device or site names in the records, import into the surviving organization in dependency order, and cut over one pilot site before batching the rest. The records and the routing changes have to move together, because a cutover that outruns the documentation creates a second undocumented network.
What is the biggest risk when merging two company networks?
Overlapping private address space is the constraint that decides the whole program. Two companies using the same 10.20.0.0/16 cannot simply be connected, because the same address would exist on both sides. Renumbering, VRFs, NAT, and tunneling all solve it at different costs, and the choice has to be made before circuits, firewall rules, and DNS records are built on top of the wrong assumption.
Should you merge VLANs or keep them separate?
Keep the VLANs separate during the integration and route between the two networks. Extending a VLAN across both companies creates one spanning tree domain, one broadcast domain, and one failure domain, and it makes rollback harder. Merge the VLAN records only when the sites share a switching layer, and decide the group structure first because a VLAN ID is unique inside a group, not across the whole organization.
What should be documented first in an M&A network integration?
Start with the site list, the subnet list, the VLAN list, and the circuit list from both sides, because those four records determine every later decision. Devices and cables matter, but they attach to sites, subnets, and VLANs, so importing them first produces records with nowhere to belong. Obelinf keeps those relationships linked, which makes the overlap and collision reports a pair of exports instead of a reconciliation project.

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