Can you have multiple subnets on same switch?
You can use the same switch for multiple subnets, but you need to you VLAN’s that is what they are there for, unless you switch won’t support VLAN’s. First time your switch gets a MAC address back that has an IP addresses in more than one subnet it’s gonna freak out.
Why do we create VLANs in switches?
VLANs reduce the incidence of collisions and decrease the number of network resources wasted by acting as LAN segments. Data packets sent from a workstation in a segment are transferred by a bridge or switch, which will not forward collisions but will send on broadcasts to every network devices.
Can a subnet be connected to multiple VLANs?
You could use one subnet per VLAN to create multiple broadcast domain for multiple ip ranges. And if you want to communication between those virtually separated vlans (ip address ranges) within a switch, use Router on stick and configue trunck to interface which is connected between Router n switch.
When to use trunk port for multiple VLANs?
A trunk port has interest when you have multiples vlan on a switch, this mean you have made partitions on your switch, port 1 to 5 on VLAN3, port 7 to 12 on VLAN 4 for example, and you configure your port 6 as trunk to transport vlan 3 and 4.
How to configure subnet-based VLAN groups through the CLI?
This article provides instructions on how to configure subnet-based groups on a switch through the CLI. Step 1. Log in to the switch console. The default username and password is cisco/cisco. If you have configured a new username or password, enter the credentials instead. The commands may vary depending on the exact model of your switch.
How to communicate between VLANs within a switch?
And if you want to communication between those virtually separated vlans (ip address ranges) within a switch, use Router on stick and configue trunck to interface which is connected between Router n switch. Thanks for contributing an answer to Server Fault!