Objective: Segment the network by configuring VLANs to separate broadcast domains and improve security.
Prerequisites:
- A Cisco switch (e.g., Cisco Catalyst 2960)
- Administration console (telnet, SSH, or physical console)
- Administrator privileges
Steps:
- Access the Cisco switch:
- Connect to the switch via a terminal session (e.g., PuTTY).
- Enter privileged mode by typing:
- Create a VLAN:
- Enter global configuration mode:
- Create a VLAN with a specific number (e.g., VLAN 10):
- Assign ports to the VLAN:
- Select the interfaces to assign to the VLAN. For example, to assign interfaces 1 to 10 to VLAN 10:
- Configure VLAN Trunking:
- To allow a port to carry multiple VLANs (trunking), for example, for connections between switches or to a router:
- Save the configuration:
- Save the configuration to prevent losing changes after a reboot:
- Verify the configuration:
- Check that the VLAN has been correctly configured by typing: