# netlab: Multi-Site VLANs

DevFeed: [netlab: Multi-Site VLANs](<https://devfeed.tech/articles/netlab-multi-site-vlans-11126.md>)

Original publisher: [Read original article](<https://blog.ipspace.net/2025/01/netlab-multisite-vlan/>)

Published: 2025-01-13T07:12:00Z

Content type: article

Language: en

Sources: [ipSpace.net blog](<https://devfeed.tech/sources/ipspace-net-blog.md>)

Topics: [Network](<https://devfeed.tech/topics/network.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [ipv4](<https://devfeed.tech/tags/ipv4.md>), [linux](<https://devfeed.tech/tags/linux.md>), [netlab](<https://devfeed.tech/tags/netlab.md>), [network](<https://devfeed.tech/tags/network.md>), [ospf](<https://devfeed.tech/tags/ospf.md>)

## AI overview

This article explains how to model a multi-site network in netlab using separate site-specific VLANs with independent IPv4 prefixes while assigning the same static VLAN ID at both sites. The topology uses layer-3 switches, Linux hosts, and an IPv4 link running OSPF.

## Source excerpt

Imagine you want to create a simple multi-site network with netlab: The lab should have two sites (A and B). Each site has a layer-3 switch, a single VLAN (VLAN 100), and two hosts connected to that VLAN. As you don't believe in the magic powers of stretched VLANs, you have a layer-3 (IPv4) link between sites. Network diagram Read more ...