Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Multiple subnets on switch

Can I have a 26 (two fx) ports on 3560 switch on two different subnets? EX.: 1-20, 25-26 on vlan 100 and subnet 192.168.180.x/23 and ports 21-24 on vlan 200 subnet 192.158.150.x/29. Is this possible with VLAN tagging or some other method?

3 REPLIES
Hall of Fame Super Blue

Re: Multiple subnets on switch

Chunkers2 wrote:

Can I have a 26 (two fx) ports on 3560 switch on two different subnets? EX.: 1-20, 25-26 on vlan 100 and subnet 192.168.180.x/23 and ports 21-24 on vlan 200 subnet 192.158.150.x/29. Is this possible with VLAN tagging or some other method?

Jon

You don't need vlan tagging for this, you simply create the 2 vlans and then allocate the ports into them eg.

1) L2 vlan configuration

3560(config)# vlan 100

3560(config)# vlan 200

3560(config)# interface range gi0/1 - 20 , gi0/25 - 26

3560(config-if-range)# switchport mode access

3560(config-if-range)# switch access vlan 100

3560(config)# interface range gi0/21 - 24

3560(config-if-range)# switchport mode access

3560(config-if-range)# switch access vlan 200

if you want to route between then

3) L3 configuration

3560(config)# int vlan 100

3560(config-int)# ip address 192.168.180.1 255.255.254.0

3560(config)# int vlan 200

3560(config-int)# ip address 192.158.150.1 255.255.255.248

then clients in vlan 100 use 192.168.180.1 as their default-gateway and vlan 200 clients use 192.158.150.1

you will also need to turn on ip routing eg -

3560(config)# ip routing

if you don't want to route on the 3560 between then just use the 1) commands.

Jon

New Member

Re: Multiple subnets on switch

Jon,

That is what I thought and is logical. I am not routing between the two VLANs so thanks for the extra information there.

Jon

Hall of Fame Super Blue

Re: Multiple subnets on switch

Chunkers2 wrote:

Jon,

That is what I thought and is logical. I am not routing between the two VLANs so thanks for the extra information there.

Jon

No problem, glad to help.

Jon

520
Views
0
Helpful
3
Replies
CreatePlease login to create content