Config Lab: Trunking Puzzle 1

 In 200-301 V1 Ch08: Virtual LANs, 200-301 V1 Part 3: VLANs, STP, 200-301 V1 Parts, CML-Free-Labs, Config Lab, Config Lab CCNA Vol 1 Part 3, Hands-on

You can memorize VLAN trunking commands by staring at a table – but you will remember them much better if you try different combinations in sample labs, especially if you try them from the CLI of some gear or simulator. This is a great lab to do on your gear for that reason. The lab: look at a few different contrived VLAN trunking requirements that are meant to make you exercise your memory of VLAN trunking configuration options, and then check the status to find out if the link is actually trunking.

All about Config Labs

The blog has a series of lab exercises called “Config Labs.” Each lab presents a topology with the relevant initial configuration for each device. The lab also lists new requirements, after which you should create the additional configuration to meet those requirements. You can do the lab on paper, in a text editor, or use software tools like Cisco Packet Tracer or Cisco Modeling Labs.

Once you have created your answer, you can click various tabs at the bottom of this post to see the lab answers, comments about the lab, and other helpful information.

The Lab Exercise

Requirements

Configure IEEE 802.1Q trunking between the devices shown in the figure. The specific rules for this lab are:

  • Configure SW1’s trunks so that they will actively attempt to form trunks with attached switches.
  • Configure the trunk between SW2 and SW3 using manual trunking and disable DTP.
  • Configure SW4’s trunks to use manual trunking.
  • Assume all interfaces shown in the lab are up and working.

 

Figure 1: Four Switches with Trunks

 

Initial Configuration

 

Examples 1, 2, 3, and 4 show the beginning configuration state of SW1, SW2, SW3, and SW4.

hostname SW1

Example 1: SW1 Config

 

hostname SW2

Example 2: SW2 Config

 

hostname SW3

Example 3: SW3 Config

 

hostname SW4

Example 4: SW4 Config

Config Lab Intro Video

The above lab intro – the text, figures, and initial configuration – tells you all you need to know. But if you want a little more, with a little different slant on what to do in this lab, watch this lab intro video!

Answer Options - Click Tabs to Reveal

You can learn a lot and strengthen real learning of the topics by creating the configuration – even without a router or switch CLI. In fact, these labs were originally built to be used solely as a paper exercise!

To answer, just think about the lab. Refer to your primary learning material for CCNA, your notes, and create the configuration on paper or in a text editor. Then check your answer versus the answer post, which is linked at the bottom of the lab, just above the comments section.

You can also implement the lab using the Cisco Packet Tracer network simulator. With this option, you use Cisco’s free Packet Tracer simulator. You open a file that begins with the initial configuration already loaded. Then you implement your configuration and test to determine if it met the requirements of the lab.

(Use this link for more information about Cisco Packet Tracer.)

Use this workflow to do the labs in Cisco Packet Tracer:

  1. Download the .pkt file linked below.
  2. Open the .pkt file, creating a working lab with the same topology and interfaces as the lab exercise.
  3. Add your planned configuration to the lab.
  4. Test the configuration using some of the suggestions below.

Download this lab’s Packet Tracer File

This Lab Supports Both CML-Free and CML-Personal!!!

The downloadable file listed here works in both CML-P or CML-F because it uses the IOL (router) and IOL-L2 (switch) reference platform images supported by both products as of CML V2.8. Note that these images also require less CPU and RAM than the other CML-P options.

Use the same general workflow as with Cisco Packet Tracer, as follows:

  1. Download the CML file (filetype .yaml) linked below.
  2. Import the lab’s CML file into CML.
  3. Start the lab in CML.
  4. Compare the CML lab topology and interface IDs to this lab Blog page, as they may differ (more detail below).
  5. Add your planned configuration to the lab, adjusting for interface ID differences.
  6. Test the configuration using some of the suggestions below.

Download this lab’s CML file!

 

Interface ID Differences:

The lab diagrams on this page use interface IDs (IIDs) that match the Packet Tracer version of the lab. When using CML, adjust the lab IIDs based on this table. Also, note that the IOL and IOL-L2 images used by the supplied CML file support only the “Ethernet” interface type, and not “FastEthernet” or “GigabitEthernet”.

The conventions for this lab are:

  • Gigabit IIDs with three numbers, in the pattern of G1/0/x, become an Ethernet interface type in the pattern E0/x, respectively.  (For example, G1/0/1 becomes E0/1.)
Device
Type
Port Shown in Lab  CML Port
Switch G1/0/1 E0/1
Switch G1/0/2 E0/2
Switch G1/0/3 E0/3

Lab Answers Below: Spoiler Alert

Lab Answers: Configuration (Click Tab to Reveal)

Answers

Figure 1: Four Switches with Trunks

 

interface GigabitEthernet1/0/1
  switchport mode dynamic desirable
!
interface GigabitEthernet1/0/2
  switchport mode dynamic desirable

Example 5: SW1 Config

 

interface GigabitEthernet1/0/2
  switchport mode trunk
  switchport nonegotiate

Example 6: SW2 Config

 

Interface GigabitEthernet1/0/2
  switchport mode trunk
  switchport nonegotiate

Example 7: SW3 Config

 

Interface GigabitEthernet1/0/1
  switchport mode trunk
!
interface GigabitEthernet1/0/2
  switchport mode trunk

Example 8: SW4 Config

Commentary, Issues, and Verification Tips (Click Tabs to Reveal)

Commentary

When configuring trunking between switches, a few questions need to be answered, including: Should dynamic trunking be used? And if so, which device should initiate the trunk? If not, and manual trunking is enabled, should you also disable DTP?

For this lab, you are tasked with configuring several trunks between devices. Obviously, in a real environment, the trunking encapsulation and mode will be more consistent across the network; however, we require you to understand how to configure the various trunking modes for this lab.

First, the lab requirements tell you to make SW1 actively attempt to form a trunk with its neighboring switches. This mode is called dynamic desirable on Cisco switches and is configured with the switchport mode dynamic desirable command.

Second, the lab requirements tell you to configure the switch SW2 interface between itself (Gi1/0/2) and SW3 (Gi1/0/2) to use manual trunking and disable DTP. To do so, configure the Gi0/2 interface on both SW2 and SW3 to manually trunk using the switchport mode trunk command. Then, to disable DTP, you use the switchport nonegotiate command.

Finally, the lab also asks you to configure SW4’s interfaces to use manual trunking. To do so, you should configure these ports on SW4 like SW2 and SW3 in this lab, except that you do not disable DTP.

Known Issues in this Lab

This section of each Config Lab Answers post hopes to help with those issues by listing any known issues with Packet Tracer related to this lab. In this case, the issues are:

# Summary Detail
1 PT may require the switchport trunk encapsulation command for trunking Packet Tracer LAN switches operate like older Cisco switch generations in that they support both ISL and 802.1Q trunking. To make a trunk work in this lab, you may need to configure the switchport trunk encapsulation dot1q command on each switch interface. Depending on the PT version and switch model used in PT, you also may not need the command.

 

Why Would Cisco Packet Tracer Have Issues?

(Note: The below text is the same in every Config Lab.)

Cisco Packet Tracer (CPT) simulates Cisco routers and switches. However, CPT does not run the same software as real Cisco routers and switches. Instead, developers wrote CPT to predict the output a real router or switch would display given the same topology and configuration – but without performing all the same tasks, an actual device has to do. On a positive note, CPT requires far less CPU and RAM than a lab full of devices so that you can run CPT on your computer as an app. In addition, simulators like CPT help you learn about the Cisco router/switch user interface – the Command Line Interface (CLI) – without owning real devices.

CPT can have issues compared to real devices because CPT does not run the same software as Cisco devices. CPT does not support all commands or parameters of a command. CPT may supply output from a command that differs in some ways from what an actual device would give. Those differences can be a problem for anyone learning networking technology because you may not have experience with that technology on real gear – so you may not notice the differences. So this section lists differences and issues that we have seen when using CPT to do this lab.

Known Issues in this Lab w/ CML

This tab lists known issues with running this lab in CML with the supplied file. The issues are:

# Summary Detail
1 The used LAN switch image (IOL-L2) requires the switchport trunk encapsulation dot1q interface subcommand for trunking The IOL-L2 image in CML (introduced in 2024) works great as a low-overhead switch in CML. However, it acts like old Cisco switch generations in supporting ISL and 802.1Q trunking encapsulation. Newer switches support only 802.1Q. To make a trunk work in this lab, you may need to configure the switchport trunk encapsulation dot1q  interface subcommand.
This lab pre-configures this command.

 

Why Would CML Have Issues?

(Note: The text below is the same as every Config Lab.)

CML supports a variety of Cisco operating systems (called reference platforms.) To make them work in CML, Cisco makes some adjustments to the code. Also, because no real router or switch hardware exists, some software features do not work the same when running in CML versus a real Cisco device. When we come across any difference when testing the lab, we’ll try and leave a note just above in case it helps you with the lab.

Beyond comparing your answers to this lab’s Answers post, you can test in Cisco Packet Tracer (CPT) or Cisco Modeling Labs (CML). In fact, you can and should explore the lab once configured. For this lab, once you have completed the configuration, try these verification steps. 

  • Each device should now be successfully trunking on all interfaces connecting to the other switches. To verify, issue the show interfaces trunk command on each device. Note that you need to check the status on both ends of the link.
  • Alternately, use the show interfaces interface switchport command, which will show a more detailed display of the encapsulation and mode that an interface is currently using.

Config Lab Review Video

Want to hear more about this lab’s solution? Check out the video to the left.

Config Lab: Data and Voice VLAN 2
Config Lab: Basic VLANs
Subscribe
Notify of
guest

11 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
sana

.Configure the trunk between SW2 and SW3 using manual trunking and disable DTP.

question:
So the switchport non negotiate command disables trunking?
if correct then y do we use trunk in the first place , y not access?
or non negotiate command has some other purpose?

Tewa

Hello Wendell,

Please a question. I am using switch model 2950-24 in packet tracer to work through some exercises and I noticed the switch appear to be preconfigured to trunk. I checked the switch interfaces and they come already configured as dynamic desirable. My question is this: Is this the way the switch come configured in real life? Are they set to dynamic desirable out of the box? Thanks

dkarior

CPT does not allow me to use the “switchport trunk encapsulation” when I am in Interface Configuration mode for a single interface, but only when I have first used interface range command to insert interface configuration mode.

dkarior

thank you very much for your response

Josh M.

Hello, Wendell

Thank you for making these lab activities! Really appreciated. Also, I love it when I’m reading a book and you start to feel like you’re conversing with the author. You get familiar with their nuances in explaining, or when they don’t like a way a command was structured for example, etc.

Keep being awesome!

Saar Yachin

Thank you Wendell, I found this lab a perfect simple one to get to experience CML-Free, which is a tool I hope to get better acquainted with. Was surprised by some differences from Packet Tracer. I also left a comment on the Youtube video but I feel I should say here too thank you so much for making these materials available, this is a very helpful and very much appreciated resource.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

11
0
Would love your thoughts, please comment.x
()
x