{
    "id": "7328baa6-b9fa-4434-a34d-8fcde02df2ec",
    "name": "Dynamic Trunking Protocol (DTP)",
    "slug": "dynamic-trunking-protocol-dtp",
    "status": "published",
    "lab_type": "pta",
    "is_sample": false,
    "duration_in_seconds": 1800,
    "metadata": {
        "courses": [
            "1b71fa54-7972-495a-99b1-3c523b4c5ba7"
        ],
        "pta_sdn": "289",
        "pta_namespace": "my.ine",
        "learning_paths": [],
        "has_published_parent": true
    },
    "session": null,
    "company": "a491bc32-c056-4946-9169-cc053387bada",
    "created": "2022-08-02T15:45:29.313312Z",
    "modified": "2023-10-03T18:58:46.141928Z",
    "is_beta": false,
    "lab_objectives": [],
    "main_learning_area": "e73fd5a8-2ead-4159-9a25-38b50ad4ab20",
    "learning_areas": [
        {
            "id": "e73fd5a8-2ead-4159-9a25-38b50ad4ab20",
            "name": "Networking",
            "slug": "networking"
        }
    ],
    "categories": [],
    "tags": [],
    "difficulty": null,
    "is_web_access": false,
    "is_lab_experience": false,
    "is_featured": false,
    "cve": null,
    "severity": null,
    "year": null,
    "external_url": "",
    "solution_video": null,
    "explanation_video": null,
    "description": "![description](https://assets.ine.com/content/labs/networking-labs/Task1-4/diagram.png)\n\n\n**Helpful Hints about INE\u2019s virtual lab environment:**\n\n- Save your configuration changes frequently in the event that you get locked out of a device or lose connectivity\n- If you are suddenly logged out of the GNS3 lab environment and log back in again, you may see the prompt, \u201cAnother GNS3 instance is running, continue? (Y/N)\u201d.  Select \u201cYes\u201d\n- If you ever lose console access to one (or more) of your devices you will need to reboot the Ubuntu Virtual Machine that is hosting your GNS3 lab environment.  To do this,\n    - Minimize your GNS3 window\n    - Open the \u201cTerminal\u201d app within the Ubuntu device\n\n    ![description](https://assets.ine.com/content/labs/networking-labs/Task1-4/terminal.png)\n\n    - Type \u201creboot\u201d within the Terminal window\n    - Wait 20-30 seconds and then click the \u201cReconnect\u201d option to log back in.",
    "description_html": "<p><img alt=\"description\" src=\"https://assets.ine.com/content/labs/networking-labs/Task1-4/diagram.png\" /></p>\n<p><strong>Helpful Hints about INE\u2019s virtual lab environment:</strong></p>\n<ul>\n<li>Save your configuration changes frequently in the event that you get locked out of a device or lose connectivity</li>\n<li>If you are suddenly logged out of the GNS3 lab environment and log back in again, you may see the prompt, \u201cAnother GNS3 instance is running, continue? (Y/N)\u201d.  Select \u201cYes\u201d</li>\n<li>\n<p>If you ever lose console access to one (or more) of your devices you will need to reboot the Ubuntu Virtual Machine that is hosting your GNS3 lab environment.  To do this,</p>\n<ul>\n<li>Minimize your GNS3 window</li>\n<li>Open the \u201cTerminal\u201d app within the Ubuntu device</li>\n</ul>\n<p><img alt=\"description\" src=\"https://assets.ine.com/content/labs/networking-labs/Task1-4/terminal.png\" /></p>\n<ul>\n<li>Type \u201creboot\u201d within the Terminal window</li>\n<li>Wait 20-30 seconds and then click the \u201cReconnect\u201d option to log back in.</li>\n</ul>\n</li>\n</ul>",
    "tasks": "**Task: DTP**\n\nIn this lab, the connections between all three switches have already been preconfigured as static VLAN trunks. Your task will be to modify these configurations so that trunking relies on DTP (the Dynamic Trunk Protocol) instead of being statically configured.\n\n1. Login to Switch-1 and observe the output of the command, \"**show interfaces trunk**\".\n\n    - Notice how the \"mode\" of all six trunking interfaces is \"**on**\"\n    - This mode verifies that static trunking has been configured.\n    - You can also view the output of \"**show running-config**\" and take note of the switchport mode that all six interfaces have been configured to utilize.\n\n2. While you are still logged into **Switch-1** disable/shutdown interfaces Gigabit3/1 through 3/2, as well as Gigabit1/1 through 1/2.\n   \n3. Login to Switch-2 and Switch-3 and **disable/shutdown the following interfaces**:\n\n    - (Both Switches) Gigabit2/0 through Gigabit2/2\n    - (Switch-2) Gigabit1/1 through Gigabit1/2\n    - (Switch-3) Gigabit3/1 through Gigabit3/2\n\n4. Modify the port configuration on **Switch-1** as follows:\n\n    - Shutdown interfaces Gigabit1/0 and Gigabit3/0 on this switch.\n    - Change the switchport mode to something that will transmit DTP requests to peer switches, asking them if it is permissable to form a VLAN Trunk. These requests should continue over and over even if the peer switches never reply.\n    - Implement the command, \"**switchport trunk encapsulation negotiate**\" on these two ports.\n    - Enable these two interfaces with the \"**no shutdown**\" command.\n  \n5. Login to **Switch-2** and reset it's GigabitEthernet1/0 interface to a default configuration. Use the global configuration command, \"**default interface gigabitEthernet 1/0**\".\n\n    - Ensure that this interface is \"Up/Up\". You may need to issue a \"**no shutdown**\" command.\n\n\n6. Login to **Switch-3** and reset it's GigabitEthernet3/0 interface to a default configuration. Use the global configuration command, \"**default interface gigabitEthernet 3/0**\".\n   \n    - Ensure that this interface is \"Up/Up\". You may need to issue a \"**no shutdown**\" command.\n  \n7. On all three switches view the output of the command, \"**show interface Gigx/y switchport**\" (where you substitute x/y with the relevant interface on the switch that should be trunking with a peer switch) and answer the following questions:\n\n    - What is the \"Administrative Mode\" of the interface?\n    - What is the \"Operational Mode\" of the interface?\n    - What Trunking Encapsulation is being used (802.1q or ISL)?",
    "tasks_html": "<p><strong>Task: DTP</strong></p>\n<p>In this lab, the connections between all three switches have already been preconfigured as static VLAN trunks. Your task will be to modify these configurations so that trunking relies on DTP (the Dynamic Trunk Protocol) instead of being statically configured.</p>\n<ol>\n<li>\n<p>Login to Switch-1 and observe the output of the command, \"<strong>show interfaces trunk</strong>\".</p>\n<ul>\n<li>Notice how the \"mode\" of all six trunking interfaces is \"<strong>on</strong>\"</li>\n<li>This mode verifies that static trunking has been configured.</li>\n<li>You can also view the output of \"<strong>show running-config</strong>\" and take note of the switchport mode that all six interfaces have been configured to utilize.</li>\n</ul>\n</li>\n<li>\n<p>While you are still logged into <strong>Switch-1</strong> disable/shutdown interfaces Gigabit3/1 through 3/2, as well as Gigabit1/1 through 1/2.</p>\n</li>\n<li>\n<p>Login to Switch-2 and Switch-3 and <strong>disable/shutdown the following interfaces</strong>:</p>\n<ul>\n<li>(Both Switches) Gigabit2/0 through Gigabit2/2</li>\n<li>(Switch-2) Gigabit1/1 through Gigabit1/2</li>\n<li>(Switch-3) Gigabit3/1 through Gigabit3/2</li>\n</ul>\n</li>\n<li>\n<p>Modify the port configuration on <strong>Switch-1</strong> as follows:</p>\n<ul>\n<li>Shutdown interfaces Gigabit1/0 and Gigabit3/0 on this switch.</li>\n<li>Change the switchport mode to something that will transmit DTP requests to peer switches, asking them if it is permissable to form a VLAN Trunk. These requests should continue over and over even if the peer switches never reply.</li>\n<li>Implement the command, \"<strong>switchport trunk encapsulation negotiate</strong>\" on these two ports.</li>\n<li>Enable these two interfaces with the \"<strong>no shutdown</strong>\" command.</li>\n</ul>\n</li>\n<li>\n<p>Login to <strong>Switch-2</strong> and reset it's GigabitEthernet1/0 interface to a default configuration. Use the global configuration command, \"<strong>default interface gigabitEthernet 1/0</strong>\".</p>\n<ul>\n<li>Ensure that this interface is \"Up/Up\". You may need to issue a \"<strong>no shutdown</strong>\" command.</li>\n</ul>\n</li>\n<li>\n<p>Login to <strong>Switch-3</strong> and reset it's GigabitEthernet3/0 interface to a default configuration. Use the global configuration command, \"<strong>default interface gigabitEthernet 3/0</strong>\".</p>\n<ul>\n<li>Ensure that this interface is \"Up/Up\". You may need to issue a \"<strong>no shutdown</strong>\" command.</li>\n</ul>\n</li>\n<li>\n<p>On all three switches view the output of the command, \"<strong>show interface Gigx/y switchport</strong>\" (where you substitute x/y with the relevant interface on the switch that should be trunking with a peer switch) and answer the following questions:</p>\n<ul>\n<li>What is the \"Administrative Mode\" of the interface?</li>\n<li>What is the \"Operational Mode\" of the interface?</li>\n<li>What Trunking Encapsulation is being used (802.1q or ISL)?</li>\n</ul>\n</li>\n</ol>",
    "published_date": "2019-12-05T22:08:07Z",
    "solutions": "**Solutions:**\n\nIn the previous task, we configured all the trunk ports as static trunks, which can be replaced with Cisco's DTP (Dynamic Trunking Protocol). DTP has three modes: 1) auto, 2) on, and 3) desirable. Most switches utilize a default interface mode of \"Auto\" which isn't visible in the output of \"**show running-config**\" but can be seen in the output of \"**show interface x/y switchport**\"\n\nIn this lab you needed to manually set the two interfaces on Switch-1 to \"dynamic desirable\" mode in order to fulfil the lab requirements. Because you reset the interfaces on Switches-2 and 3 (connecting to Switch-1) to their default configurations, they were set back to dynamic auto mode (by default) and thus were able to respond to the incoming DTP requests from Switch-1 and form VLAN Trunks.\n\n<pre><code>\n    <b>Sw1:</b>\n    interface Gig1/0\n     <b>switchport mode dynamic desirable</b>\n     switchport trunk encapsulation negotiate\n    !\n    interface Gig3/0\n     <b>switchport mode dynamic desirable</b>\n     switchport trunk encapsulation negotiate\n\n    <b>Sw2:</b>\n    interface Gig1/0\n     <b>switchport mode dynamic auto</b>\n     switchport trunk encapsulation dot1q\n\n    <b>Sw3:</b>\n    interface Gig3/0\n     <b>switchport mode dynamic desirable</b>\n     switchport trunk encapsulation dot1q\n</pre></code>\n\n\n**Verification**\n\nWe can verify the negotiated trunk by using the **show interfaces trunk** and **show interfaces switchport** commands in the privileged exec mode. Below are the command outputs for negotiated trunk verification.\n\n<pre><code>\n    <b>Sw1#show interfaces trunk</b>\n\n    Port        Mode             Encapsulation  Status        Native vlan\n    Gi1/0       <b>desirable        n-isl</b>          trunking      1\n    Gi3/0       <b>desirable        n-isl</b>          trunking      1\n\n    Sw1#<b>show interface gig1/0 switchport</b>\n    Name: Gi1/0\n    Switchport: Enabled\n    Administrative Mode: <b>dynamic desirable</b>\n    Operational Mode: trunk\n    Administrative Trunking Encapsulation: <b>negotiate</b>\n    <b>Operational Trunking Encapsulation: isl</b>\n    Negotiation of Trunking: On\n    [snip]\n\n    <b>Sw1#show interface gig3/0 switchport</b>\n    Name: Gi3/0\n    Switchport: Enabled\n    Administrative Mode: <b>dynamic desirable</b>\n    Operational Mode: trunk\n    <b>Administrative Trunking Encapsulation: negotiate</b>\n    <b>Operational Trunking Encapsulation: isl</b>\n    Negotiation of Trunking: On\n    [snip]\n</pre></code>\n\n<pre><code>\n    Sw2#show interfaces trunk\n\n    Port        Mode             Encapsulation  Status        Native vlan\n    Gi1/0       auto             n-isl          trunking      1\n\n    Port        Vlans allowed on trunk\n    Gi1/0       100,200\n\n\n    Sw2#show interface gig1/0 switchport\n    Name: Gi1/0\n    Switchport: Enabled\n    Administrative Mode: dynamic auto\n    Operational Mode: trunk\n    Administrative Trunking Encapsulation: negotiate\n    Operational Trunking Encapsulation: isl\n    Negotiation of Trunking: On\n</pre></code>\n\n<pre><code>\n    Sw3#show interfaces trunk\n\n    Port        Mode             Encapsulation  Status        Native vlan\n    Gi3/0       desirable        n-isl          trunking      1\n\n    Port        Vlans allowed on trunk\n    Gi3/0       200\n\n\n    Sw3#show interface gig3/0 switchport\n    Name: Gi3/0\n    Switchport: Enabled\n    Administrative Mode: dynamic desirable\n    Operational Mode: trunk\n    Administrative Trunking Encapsulation: negotiate\n    Operational Trunking Encapsulation: isl\n    Negotiation of Trunking: On\n</pre></code>\n\n\nIn the above output, we can see some additional parameters like n-isl, which means that the ISL encapsulation is negotiated by DTP. By default, Cisco switches use ISL as the trunking encapsulations when using DTP. In this task, we have the additional method of verifying trunking parameters using the show interface <intf> switchport command. It reveals the additional components of a trunk port such as Administrative mode, Operational mode, status of negotiation, etc.",
    "solutions_html": "<p><strong>Solutions:</strong></p>\n<p>In the previous task, we configured all the trunk ports as static trunks, which can be replaced with Cisco's DTP (Dynamic Trunking Protocol). DTP has three modes: 1) auto, 2) on, and 3) desirable. Most switches utilize a default interface mode of \"Auto\" which isn't visible in the output of \"<strong>show running-config</strong>\" but can be seen in the output of \"<strong>show interface x/y switchport</strong>\"</p>\n<p>In this lab you needed to manually set the two interfaces on Switch-1 to \"dynamic desirable\" mode in order to fulfil the lab requirements. Because you reset the interfaces on Switches-2 and 3 (connecting to Switch-1) to their default configurations, they were set back to dynamic auto mode (by default) and thus were able to respond to the incoming DTP requests from Switch-1 and form VLAN Trunks.</p>\n<pre><code>\n    <b>Sw1:</b>\n    interface Gig1/0\n     <b>switchport mode dynamic desirable</b>\n     switchport trunk encapsulation negotiate\n    !\n    interface Gig3/0\n     <b>switchport mode dynamic desirable</b>\n     switchport trunk encapsulation negotiate\n\n    <b>Sw2:</b>\n    interface Gig1/0\n     <b>switchport mode dynamic auto</b>\n     switchport trunk encapsulation dot1q\n\n    <b>Sw3:</b>\n    interface Gig3/0\n     <b>switchport mode dynamic desirable</b>\n     switchport trunk encapsulation dot1q\n</pre>\n\n<p></code></p>\n<p><strong>Verification</strong></p>\n<p>We can verify the negotiated trunk by using the <strong>show interfaces trunk</strong> and <strong>show interfaces switchport</strong> commands in the privileged exec mode. Below are the command outputs for negotiated trunk verification.</p>\n<pre><code>\n    <b>Sw1#show interfaces trunk</b>\n\n    Port        Mode             Encapsulation  Status        Native vlan\n    Gi1/0       <b>desirable        n-isl</b>          trunking      1\n    Gi3/0       <b>desirable        n-isl</b>          trunking      1\n\n    Sw1#<b>show interface gig1/0 switchport</b>\n    Name: Gi1/0\n    Switchport: Enabled\n    Administrative Mode: <b>dynamic desirable</b>\n    Operational Mode: trunk\n    Administrative Trunking Encapsulation: <b>negotiate</b>\n    <b>Operational Trunking Encapsulation: isl</b>\n    Negotiation of Trunking: On\n    [snip]\n\n    <b>Sw1#show interface gig3/0 switchport</b>\n    Name: Gi3/0\n    Switchport: Enabled\n    Administrative Mode: <b>dynamic desirable</b>\n    Operational Mode: trunk\n    <b>Administrative Trunking Encapsulation: negotiate</b>\n    <b>Operational Trunking Encapsulation: isl</b>\n    Negotiation of Trunking: On\n    [snip]\n</pre>\n\n<p></code></p>\n<pre><code>\n    Sw2#show interfaces trunk\n\n    Port        Mode             Encapsulation  Status        Native vlan\n    Gi1/0       auto             n-isl          trunking      1\n\n    Port        Vlans allowed on trunk\n    Gi1/0       100,200\n\n\n    Sw2#show interface gig1/0 switchport\n    Name: Gi1/0\n    Switchport: Enabled\n    Administrative Mode: dynamic auto\n    Operational Mode: trunk\n    Administrative Trunking Encapsulation: negotiate\n    Operational Trunking Encapsulation: isl\n    Negotiation of Trunking: On\n</pre>\n\n<p></code></p>\n<pre><code>\n    Sw3#show interfaces trunk\n\n    Port        Mode             Encapsulation  Status        Native vlan\n    Gi3/0       desirable        n-isl          trunking      1\n\n    Port        Vlans allowed on trunk\n    Gi3/0       200\n\n\n    Sw3#show interface gig3/0 switchport\n    Name: Gi3/0\n    Switchport: Enabled\n    Administrative Mode: dynamic desirable\n    Operational Mode: trunk\n    Administrative Trunking Encapsulation: negotiate\n    Operational Trunking Encapsulation: isl\n    Negotiation of Trunking: On\n</pre>\n\n<p></code></p>\n<p>In the above output, we can see some additional parameters like n-isl, which means that the ISL encapsulation is negotiated by DTP. By default, Cisco switches use ISL as the trunking encapsulations when using DTP. In this task, we have the additional method of verifying trunking parameters using the show interface <intf> switchport command. It reveals the additional components of a trunk port such as Administrative mode, Operational mode, status of negotiation, etc.</p>",
    "flags": [],
    "min_points_to_pass": null,
    "access_type": "default",
    "user_status": "unstarted",
    "user_lab_status": null,
    "user_status_modified": null,
    "user_flags": [],
    "global_running_session": null
}