Free CCNA | VLANs (Part 3) | Day 18 Lab | CCNA 200-301 Complete Course
Table of Contents
Introduction
In this tutorial, we will cover the configuration of access and trunk ports on a Cisco switch, as well as inter-VLAN routing using Switch Virtual Interfaces (SVIs) on a Layer 3 switch. This is part of the CCNA 200-301 course and will give you hands-on experience essential for your networking skills.
Step 1: Configure Access Ports
Access ports are used to connect end devices to a switch. Here’s how to set them up:
-
Enter Configuration Mode
- Access the switch console and enter privileged EXEC mode:
enable configure terminal
- Access the switch console and enter privileged EXEC mode:
-
Select the Interface
- Choose the interface you want to configure. For example, if you are configuring interface FastEthernet 0/1:
interface FastEthernet0/1
- Choose the interface you want to configure. For example, if you are configuring interface FastEthernet 0/1:
-
Set the Port to Access Mode
- Configure the interface as an access port:
switchport mode access
- Configure the interface as an access port:
-
Assign the VLAN
- Assign the desired VLAN to the access port. For example, to assign VLAN 10:
switchport access vlan 10
- Assign the desired VLAN to the access port. For example, to assign VLAN 10:
-
Repeat for Additional Ports
- If you have more ports to configure, repeat steps 2 to 4 for each interface.
Step 2: Configure Trunk Ports
Trunk ports are used to carry traffic for multiple VLANs. Follow these steps for configuration:
-
Enter Configuration Mode
- Access the switch console and enter privileged EXEC mode:
enable configure terminal
- Access the switch console and enter privileged EXEC mode:
-
Select the Interface for Trunking
- Choose the interface you want to configure as a trunk. For example, if you are configuring interface FastEthernet 0/24:
interface FastEthernet0/24
- Choose the interface you want to configure as a trunk. For example, if you are configuring interface FastEthernet 0/24:
-
Set the Port to Trunk Mode
- Configure the interface as a trunk port:
switchport mode trunk
- Configure the interface as a trunk port:
-
Allow VLANs on the Trunk
- Specify which VLANs are allowed on the trunk. For example, to allow VLANs 10 and 20:
switchport trunk allowed vlan 10,20
- Specify which VLANs are allowed on the trunk. For example, to allow VLANs 10 and 20:
-
Verify Configuration
- Use the following command to verify trunk configuration:
show interfaces trunk
- Use the following command to verify trunk configuration:
Step 3: Configure Inter-VLAN Routing
Inter-VLAN routing allows communication between different VLANs using SVIs.
-
Enter Configuration Mode
- Access the switch console and enter privileged EXEC mode:
enable configure terminal
- Access the switch console and enter privileged EXEC mode:
-
Create SVIs for Each VLAN
-
For each VLAN, create a SVI and assign an IP address. For example, for VLAN 10:
interface vlan 10 ip address 192.168.10.1 255.255.255.0 no shutdown -
Repeat for VLAN 20:
interface vlan 20 ip address 192.168.20.1 255.255.255.0 no shutdown
-
-
Enable Routing on the Switch
- If your switch supports it, enable IP routing:
ip routing
- If your switch supports it, enable IP routing:
-
Verify SVI Configuration
- Check the configuration with:
show ip interface brief
- Check the configuration with:
Conclusion
In this tutorial, we covered the essential steps to configure access and trunk ports on a Cisco switch, as well as how to set up inter-VLAN routing using SVIs. These skills are crucial for managing VLANs in a network environment. For further practice, consider utilizing Packet Tracer labs or additional resources to solidify your understanding.