cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
436
Views
5
Helpful
5
Replies

Multiple subnet on same Vlan

Netcine123
Level 1
Level 1

This is just for theory-

Is it possible to have 3 different subnet

on a 2950...

192.168.13.0, 14.0, 15.0

all on one vlan..vlan 1

int vlan 1 ip 192.168.10.5

and going to a gateway of 192.168.5.1 ?

I know this in not the correct way of doing things, but im just wondering if this would work

5 Replies 5

glen.grant
VIP Alumni
VIP Alumni

the 2950 is a layer 2 switch only . You can create as many vlans as you want but if you want them to talk to each then you would have to trunk to a router or layer2/3 switch to route between those vlans . The ip address on this switch is to manage the switch only , the same with the default gateway . It can do no routing .

Richard Burts
Hall of Fame
Hall of Fame

Timothy

You ask a somewhat complex question with several parts that are mutually contradictory. so let me answer in this way:

First lets clarify what we mean by VLAN and what we mean by subnet and the relationship between them. A VLAN is a layer 2 concept. A VLAN defines a broadcast domain in which any broadcast frame generated by any host will be received by every other host in the VLAN. A subnet is a layer 3 concept that identifies addresses that should logically be able to communicate directly with each other. The relationship between them is that we usually assume a one to one relationship between VLAN and subnet so that a VLAN is a subnet and a subnet is a VLAN.

But that is a general assumption and is not always the case. In the first part of your question you ask if it is possible to have 3 different subnets in the same VLAN and the answer is yes you can have that. It is not generally the Best Practice but it can be done. So it is possible to have a VLAN which contains 192.168.13.0, and 192.168.14.0, and 192.168.15.0 all in the same VLAN.

However the following part of your question departs from that and contradicts that. You suggest that the VLAN interface might be 192.168.10.5 but that address does not fall into any of the subnets that you have listed. And you suggest that they would go to a gateway of 192.168.5.1 which is also not related to the subnets that you have listed.

You are correct that this is not the correct way of doing things and taking the question in all its aspects no it would not work.

HTH

Rick

HTH

Rick

Thank you for answering the first part of my question.

The second part-which I mentioned about the gateway, was simply assigning an IP address

in the 192.168.x.x address range. And asking if this would work as a gateway to devices

not in the same subnet, to route etc.

Timothy

I hope that my answer was sufficiently clear that to work properly the gateway address must be in the same subnet as the management address of the layer 2 switch. In the example that you suggested the management address of the switch was not in any of the subnets which you suggested would exist on the switch. And the gateway address was not in either the subnet of the management address or in any of the subnets. For that reason the gateway that you suggested would not work.

HTH

Rick

HTH

Rick

thank you for clarifying this for me

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card