How to configure the VLAN trunk in Cisco Packet Tracer

In the previous article, the administrator discussed how to set up VLAN which can only do sole to other VLANs on 1 Switch. In this article, the administrator will discuss how to configure the VLAN trunk in Cisco Packet Tracer, which can PING other VLANs even if they are different switches.

What is Trunking?

Trunking is a mechanism used to establish an internet network, or Internet, which consists of a local area network (LAN), virtual LAN (VLAN) or wide area network (WAN). Switches are interconnected to build this network using trunking. Trunking is not limited to any media, as its main purpose is to maximize the bandwidth available on all types of networks.

Cisco networks have trunk ports and access ports. Trunk ports allow traffic for all or any of the VLANs. However, the access ports allow the transport of traffic to the specified VLANs. Trunk ports use the labeling process when carrying data. Each tag is checked by the switch to see which switch will receive traffic. Access ports are not tagged because they carry or transmit data to a specific VLAN.

When to use trunking?

Suppose there is a 2-story building. There is 1 switch on one floor, then we want the computer on the 1st floor to be connected to the computer on the 2nd floor. So, in this state, sewage is needed. So the switches on the 1st floor are connected to the switches on the 2nd floor. Similarly, the switches on the 2nd floor are also connected to the switches on the 1st floor. Simply put, this channel can be called a bridge between switches. For topology and configuration can be seen on the next page.

Configuring the VLAN trunk in Cisco Packet Tracer

This time, we will try to configure VLAN Trunking on Cisco Packet Tracer for VLAN Trunking topology, as follows:

Cisco Trunking VLAN Topologists

Here we will now connect the VLAN on switch 1 and the VLAN on switch 2. In order for VLAN switch 1 and switch 2 to be connected, we configure the trunk on each interface leading to the opposite switch. Once in the trunk, the same VLAN, even if different switches will be able to connect. This is the function of the trunk on the Switch. At the beginning of the setup, we create a VLAN and enter the interface into the VLAN, then enter the IP address for each computer. Same as the configuration in the previous discussion.

1. Create a topology in Cisco Packet Tracer, as shown above.

2. Then enter the for command VLAN configuration trunking in Cisco Packet Tracer, this command is used on both switches and their interfaces, based on existing topology.

Configuring the VLAN trunk in Cisco Packet Tracer
  • Switch> on
  • Switch # configure the terminal
  • Switch (config) #vlan 10
  • Switch (config-vlan) #name VLAN10
  • Switch (config-vlan) #vlan 20
  • Switch (config-vlan) #name VLAN20
  • Switch (config-vlan) # fa0 / 1 interface
  • Switch (config-if) #switchport access to module
  • Switch (config-if) #switchport access vlan 10
  • Switch (config-if) # fa1 / 1 interface
  • Switch (config-if) #switchport access to module
  • Switch (config-if) #switchport access vlan 10
  • Switch (config-if) # fa2 / 1 interface
  • Switch (config-if) #switchport access to module
  • Switch (config-if) #switchport vlan access 20
  • Switch (config-if) # fa3 / 1 interface
  • Switch (config-if) #switchport access to module
  • Switch (config-if) #switchport vlan access 20
  • Switch (config-if) # fa6 / 1 interface
  • Switch (config-if) #switchport access to module
  • Switch (config-if) #switchport trunk mode

3. After configuring the VLAN trunk in Cisco Packet Tracer on both switches. Then add the IP address to each PC.

Configure Cisco Packet Tracer IP addresses

4. The last step is to test the results of the VLAN configuration. Make sure that different PC switches, but located in the same VLAN, may already be connected or PING each other. On the other hand, make sure that computers that are on the same switch but on different VLANs cannot connect or PING.

Cisco VLAN Trunking Trial

Conclusion

Here’s how to set up VLAN trunk in Cisco Packet Tracer. Using VLAN trunking, we can communicate with different PC switches, but still in the same vlan. In essence, with VLAN trunking, you can extend network-configured VLANs.


So many articles How to configure the VLAN trunk in Cisco Packet Tracer. Looking forward to more interesting articles and don’t forget to share this article with your friends. Thank you…

Leave a Comment

/* */