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
Checking token validity/expiry
Prop 13 & Prop 19: California Strategy Plan | CunninghamLegal
Average Jonas Wife
Food King El Paso Ads
Jazmen Jafar Linkedin
Quick Pickling 101
Junk Cars For Sale Craigslist
How Much Does Dr Pol Charge To Deliver A Calf
From Algeria to Uzbekistan-These Are the Top Baby Names Around the World
Craigslist Mexico Cancun
Obituaries
Tabler Oklahoma
Find The Eagle Hunter High To The East
Cool Math Games Bucketball
What is the difference between a T-bill and a T note?
Dumb Money
Uc Santa Cruz Events
Dr Manish Patel Mooresville Nc
Committees Of Correspondence | Encyclopedia.com
Inside the life of 17-year-old Charli D'Amelio, the most popular TikTok star in the world who now has her own TV show and clothing line
R Cwbt
Nevermore: What Doesn't Kill
Milanka Kudel Telegram
eHerkenning (eID) | KPN Zakelijk
Marine Forecast Sandy Hook To Manasquan Inlet
Rogue Lineage Uber Titles
Horn Rank
Pain Out Maxx Kratom
Ocala Craigslist Com
Vadoc Gtlvisitme App
Grove City Craigslist Pets
Dtlr On 87Th Cottage Grove
Publix Daily Soup Menu
Autopsy, Grave Rating, and Corpse Guide in Graveyard Keeper
Louisville Volleyball Team Leaks
The Bold And The Beautiful Recaps Soap Central
Case Funeral Home Obituaries
Wattengel Funeral Home Meadow Drive
Froedtert Billing Phone Number
Sas Majors
Sofia With An F Mugshot
Craigslist Central Il
Advance Auto.parts Near Me
Unblocked Games - Gun Mayhem
Tacos Diego Hugoton Ks
Craigslist Pets Charleston Wv
Research Tome Neltharus
Jasgotgass2
Obituary Roger Schaefer Update 2020
Island Vibes Cafe Exeter Nh
Selly Medaline
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.