can 2 vlans have the same subnet? (2024)

It mostly depends if/how you want hosts on them to talk one another (or other networks).

If the answer is "not at all" then you can have as many VLANs as you like using the same subnet.

If the answer is "completely" then you have to either a. break your addressing (L3) down to have one set of hosts in subnet A (on vlan a) and the others in subnet b (on VLAN b). or b. have some fancy tricks in place with network address translation (NAT) in place.

I'll leave the latter solution off as beyond the scope of your question.

For the former, you would just change your subnet mask - for example, if the classful subnet is a "standard" /24 (255.255.255.0) then split it in two - /25 or 255.255.255.128. Assign hosts in one or the other.

You have to have some pattern - all networking is based on patterns in some way or another.

can 2 vlans have the same subnet? (2024)

FAQs

Can two VLANs have the same subnet? ›

the short answer is: no. each Vlan needs its own subnet.

Can you have 2 interfaces on the same subnet? ›

Root Cause

When there are 2 interfaces on the same subnet there is no assurance as to which interface will be used to transmit traffic and the machine will accept traffic for either IP on either interface. This is because in Linux the IP address belongs to the host and is not associated with the interface.

Can two devices have the same subnet? ›

Typically, in order for devices to be on the same subnet, the first three numbers of the IP address must match. The fourth number of the IP address must be different, as two devices cannot have the same IP address. For example, if your computer's IP address is 192.168. 0.1, then the subnet is 192.168.

Can you connect 2 VLANs together? ›

VLANs can communicate with other VLANs when they both using the same trunk link to connect to the same layer 2 switch. 3. native VLAN can access other VLANs under the same layer 2 switch.

Why do VLANs need to be in different subnets? ›

Yes if you separate a network with different VLANs you are creating separate networks like in subnetting. If you use VLAN to create different broadcast domain , subnetting becomes necessary as a part of it as you can not configure the two VLAN's with the same IP range.

Can you have 2 VLANs on the same port? ›

A port can be a member of more than one VLAN of the same type if the device to which the port connects complies with the 802.1Q VLAN standard.

What happens when two devices on the same subnet are communicating? ›

What happens when two devices on the same subnet are communicating? The host portion of the IP addresses will be different. The data link layer addresses are added to the IP header. The sending device will use ARP to determine the IP address of the receiver.

Can I have two routers on the same subnet? ›

In short, yes! It is possible to use more than one router on the same home network, but you do need to be wary about the way you do this.

Can you have 2 subnets? ›

Absolutely! Explain the topology implemented in the two subnets to have a better idea on how the routing will be done. Bojan Zajc: Yes you can.

Can a device be on two VLANs? ›

The figure also shows that a single host can also belong to more than one VLAN. For example, Host A has two VLANs configured over the host's interface. The second VLAN is configured with the VID 456 and is connected to Port 3 which is also configured with the VID 456.

Can you use the same IP address on different VLANs? ›

If multiple VLANs are configured, then each VLAN can have its own IP address. This is because each VLAN operates as a separate broadcast domain and requires a unique IP address and subnet mask. A default gateway (IP) address for the switch is optional, but recommended.

Can you have two domains on the same subnet? ›

Yes, they can. The only thing you have to worry about is IP addressing. One or both domains will have to be statically IP addressed. The big thing would be moving from old DNS server to new DNS server.

Can 2 VLANs communicate without a router? ›

In a properly designed IP network, a VLAN should map to a single broadcast domain, which should map to a unique IP network. For ease of troubleshooting (and for avoiding trouble!), traffic from one VLAN should not reach another VLAN without an OSI Layer 3 device, such as a router.

Can 2 VLANs ping each other? ›

By default Vlans don't ping each other as they are designed to fragment and isolate devices within the network (this is the logic when working on vlans on layer 2). If you wish to have Vlans communicating with each other then this is accomplished at layer 3 via a router. The process is called inter-vlan routing.

How can two VLANs communicate? ›

For Inter-VLAN communication, a layer 3 device (usually a router) is needed. This layer 3 device needs to have an IP address in each subnet (VLAN) and have a connected route to each of those subnets. The hosts in each subnet can use the router's IP addresses as their default gateway.

Can a host belong to 2 different VLANs? ›

The figure also shows that a single host can also belong to more than one VLAN. For example, Host A has two VLANs configured over the host's interface.

Can VLANs have the same IP address? ›

If multiple VLANs are configured, then each VLAN can have its own IP address. This is because each VLAN operates as a separate broadcast domain and requires a unique IP address and subnet mask. A default gateway (IP) address for the switch is optional, but recommended.

Can two different VLANs ping each other? ›

You will need to trunk the VLANs to the router and configure subinterfaces there for routing. You need to create encapsulation dot1q to perform router-on-stick or intervlan routing on your router. After that you can ping between different VLAN.

Top Articles
It's Time For an RSS Revival
3 ways to scan documents without a scanner | Mohawk College
Craigslist Livingston Montana
Navicent Human Resources Phone Number
Fighter Torso Ornament Kit
55Th And Kedzie Elite Staffing
It's Official: Sabrina Carpenter's Bangs Are Taking Over TikTok
Minooka Channahon Patch
Froedtert Billing Phone Number
Free Atm For Emerald Card Near Me
Craigslist Motorcycles Jacksonville Florida
Encore Atlanta Cheer Competition
Visustella Battle Core
Sunday World Northern Ireland
Swimgs Yung Wong Travels Sophie Koch Hits 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Springs Cow Dog Pig Hollywood Studios Beach House Flying Fun Hot Air Balloons, Riding Lessons And Bikes Pack Both Up Away The Alpha Baa Baa Twinkle
Love Compatibility Test / Calculator by Horoscope | MyAstrology
What Does Dwb Mean In Instagram
Kinkos Whittier
What Happened To Maxwell Laughlin
Busty Bruce Lee
Unit 33 Quiz Listening Comprehension
Mile Split Fl
Illinois Gun Shows 2022
1-833-955-4522
Ess.compass Associate Login
Melissababy
Cbssports Rankings
Marine Forecast Sandy Hook To Manasquan Inlet
Mj Nails Derby Ct
Southland Goldendoodles
Hctc Speed Test
Piedmont Healthstream Sign In
TMO GRC Fortworth TX | T-Mobile Community
Penn State Service Management
His Only Son Showtimes Near Marquee Cinemas - Wakefield 12
Uno Fall 2023 Calendar
Pch Sunken Treasures
Audi Q3 | 2023 - 2024 | De Waal Autogroep
Giantess Feet Deviantart
Devin Mansen Obituary
Tal 3L Zeus Replacement Lid
Indiefoxx Deepfake
Devotion Showtimes Near The Grand 16 - Pier Park
Dee Dee Blanchard Crime Scene Photos
Birmingham City Schools Clever Login
Walmart Car Service Near Me
Lyndie Irons And Pat Tenore
Busted Newspaper Mcpherson Kansas
How I Passed the AZ-900 Microsoft Azure Fundamentals Exam
Television Archive News Search Service
What Is The Gcf Of 44J5K4 And 121J2K6
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 6191

Rating: 4.1 / 5 (52 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.