Multiple subnets on switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2010 01:05 PM - edited 03-06-2019 01:49 PM
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?
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2010 01:14 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2010 01:49 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2010 01:52 PM
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
