How To Configure Trunk Port on Multilayer Switch in Packet Tracer - Netizzan

How To Configure Trunk Port on Multilayer Switch in Packet Tracer

When dealing with multiple VLANs that span two or more switches, a trunk link comes in handy to segregate traffic for specific VLANs as it travels across the cables that connect one switch to another. A Trunk Link is established by configuring the trunk port on each of the switches attempting to form a trunk link.

Creating a trunk link is akin to creating a virtual cable (link) on the Layer 2 cable that connects one switch to another, ensuring that each of these virtual cables carries traffic for a particular VLAN.

There are various scenarios where it becomes necessary for host devices on different switches to belong to the same VLAN. For example, in a company with multiple branches, each branch’s marketing department may require its VLAN for efficient network management.

In this post, I will demonstrate how to Configure Trunk Port on Multilayer Switch and then establish a trunk link between the layer 3 switch and the Layer 2 switch. This configuration will enable PCs attached to different switches but within the same VLAN to communicate through the trunk link.

Here is a video showing How To Configure Trunk Port on Multilayer Switch in Packet Tracer;

Network Topology

As depicted below, the network topology used for this demonstration consists of one Layer 3 switch, one Layer 2 switch, and multiple PCs connected to the Layer 2 switch, segmented into VLAN 20 and VLAN 30.

ALSO READ:  Standard Numbered ACL Configuration in Packet Tracer

an image showing the network topology we will use for this post

Configuration Objectives:

  1. Configure trunk ports on the multilayer switch.
  2. Configure trunk ports on the Layer 2 switch to establish a trunk link with the Layer 3 switch.
  3. Segment the LAN into two VLANs and enable routing between these VLANs.
  4. Test the configuration.

Command to Configure Trunk port on Layer 3 switch;

To configure trunk port in a layer 3 switch, enter the following commands from the interface configuration mode;

Switch(config-if)#switchport trunk encapsulation dot1q 
Switch(config-if)#switchport mode trunk

Configuration

The following are the configuration you need to complete on the network components to achieve the above objective.

Multilayer Switch

Creating VLANs

Enter the following command to create the two vlans;

Switch>en
Switch#conf t
Switch(config)#vlan 20
Switch(config-vlan)#vlan 30
Switch(config-vlan)#exit

Confirms the vlans…

Switch(config)#do show vlan brief

an image showing the vlans created

Creating the trunk port

Enter the following commands to create trunk port on the layer 3 switch;

ALSO READ:  How To Connect Two PC In Cisco Packet Tracer
Switch(config)#int fa0/1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk

Creating SVIs

Enter the following commands to create SVIs and assign IP addresses to them;

Switch(config-if)#int vlan 20
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#int vlan 30
Switch(config-if)#ip address 192.168.2.1 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#exit

Enable IP Routing

Enter  the following commands to enable Ip routing on the layer 3 Switch;

Switch(config)#ip routing
Switch(config)#do write

Switch 0

Creating Trunk port

Enter the following commands to create the trunk port on the layer 2 switch;

Note: This configuration completes the creation of Trunk link between Switch0 and the Layer 3 switch

Switch>en
Switch#conf t
Switch(config-if)#int fa0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit

Creating VLANs

Enter the following commands to create VLAN 20 and VLAN 30 on the layer 2 switch;

Switch(config)#vlan 20
Switch(config-vlan)#vlan 30

Creating Access ports

Enter the following commands to create access ports on switch0;

Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#int fa0/5
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30

Configure the host devices

Configure the host with IP address as labeled in the network topology showed above.

Note: The host devices in VLAN 20 have their own subnetwork, and the host devices on VLAN have their own subnetwork. So while making your IP address configuration, observe it.

Testing

To test the configuration, I have pinged from PC3 to PC1 and as you can see from the image below, PC1 was reachable;

ALSO READ:  Standard Named ACL Configuration in Packet Tracer

an image the showing the result of pinging from pc3 to pc1

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top