{
    "id": "5fe3e222-2734-4053-ada0-2be78a1eff03",
    "name": "Restricting VLANs on Trunks",
    "slug": "restricting-vlans-on-trunks",
    "status": "published",
    "lab_type": "pta",
    "is_sample": false,
    "duration_in_seconds": 1800,
    "metadata": {
        "courses": [
            "1b71fa54-7972-495a-99b1-3c523b4c5ba7"
        ],
        "pta_sdn": "288",
        "pta_namespace": "my.ine",
        "learning_paths": [],
        "has_published_parent": true
    },
    "session": null,
    "company": "a491bc32-c056-4946-9169-cc053387bada",
    "created": "2022-08-02T15:43:09.653025Z",
    "modified": "2024-05-17T14:46:03.667136Z",
    "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": "This lab configures VLAN restrictions on trunk interfaces for device communication. Verification is done with a command.",
    "description_html": "<p><img alt=\"description\" src=\"https://assets.ine.com/content/labs/networking-labs/Task1-3/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-3/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: Allowed VLANs**\n\n\n1. Configure Sw1 to allow only VLAN 200 on its interface connected to Sw3 (Gig3/0).\n2. Configure Sw3 to allow only VLAN 200 on its interface connected to Sw1 (Gig3/0).\n3. Configure Sw1 and Sw2 to allow VLAN 100 and VLAN 200 on their trunk interface (Gig1/0).\n4. Upon completing this task, R1 & R2 and R3 & R4 should communicate.",
    "tasks_html": "<p><strong>Task: Allowed VLANs</strong></p>\n<ol>\n<li>Configure Sw1 to allow only VLAN 200 on its interface connected to Sw3 (Gig3/0).</li>\n<li>Configure Sw3 to allow only VLAN 200 on its interface connected to Sw1 (Gig3/0).</li>\n<li>Configure Sw1 and Sw2 to allow VLAN 100 and VLAN 200 on their trunk interface (Gig1/0).</li>\n<li>Upon completing this task, R1 &amp; R2 and R3 &amp; R4 should communicate.</li>\n</ol>",
    "published_date": "2019-12-05T22:08:07Z",
    "solutions": "**Solutions:**\n\nThis lab started up with a pre-configuration which included some VLANs and trunking. By default, a trunk port forwards all known VLANs. For security or other purposes that behavior can be modified by suppressing unnecessary VLANs on a trunk port. According to the task, we must configure Sw1 to allow VLAN 200 on its Gig3/0 interface, and Sw1 and Sw2 must be configured to allow both VLANs 100 and 200 on their Gig1/0 interface. We must also configure Sw3 to allow VLAN 200 on its Gig3/0 interface.\n\n<pre><code>\n    <b>Sw1:</b>\n    interface Gig1/0\n     <b>switchport trunk allowed vlan 100,200</b>\n    !\n    interface Gig3/0\n     <b>switchport trunk allowed vlan 200</b>\n\n    <b>Sw2:</b>\n    interface Gig1/0\n     <b>switchport trunk allowed vlan 100,200</b>\n\n    <b>Sw3:</b>\n    interface Gig3/0\n     <b>switchport trunk allowed vlan 200</b>\n</pre></code>\n\n\n**Verification**\n\nWe can filter the VLANs on an interface using the **switchport trunk allowed-vlan add | remove | none | except** commands. In this particular task, we have configured the trunk interfaces to allow only necessary VLANs. It can be verified by using the show interface trunk command as shown below.\n\n<pre><code>\n    <b>Sw1#show interfaces trunk</b>\n\n    Port        Mode             Encapsulation  Status            Native vlan\n    Gi1/0       on               802.1q         trunking      1\n    Gi3/0       on               802.1q         trunking      1\n\n    Port        Vlans allowed on trunk\n    <b>Gi1/0       200,300</b>\n    <b>Gi3/0       200</b>\n\n    ###################\n\n    <b>Sw2#show interfaces trunk</b>\n\n    Port        Mode             Encapsulation  Status            Native vlan\n    Gi1/0       on               802.1q         trunking      1\n\n    Port        Vlans allowed on trunk\n    <b>Gi1/0       100,200</b>\n\n    ####################\n\n    <b>Sw3#show interfaces trunk</b>\n\n    Port        Mode             Encapsulation  Status            Native vlan\n    Gi3/0       on               802.1q         trunking      1\n\n    Port        Vlans allowed on trunk\n    <b>Gi3/0       200</b>\n\n</pre></code>",
    "solutions_html": "<p><strong>Solutions:</strong></p>\n<p>This lab started up with a pre-configuration which included some VLANs and trunking. By default, a trunk port forwards all known VLANs. For security or other purposes that behavior can be modified by suppressing unnecessary VLANs on a trunk port. According to the task, we must configure Sw1 to allow VLAN 200 on its Gig3/0 interface, and Sw1 and Sw2 must be configured to allow both VLANs 100 and 200 on their Gig1/0 interface. We must also configure Sw3 to allow VLAN 200 on its Gig3/0 interface.</p>\n<pre><code>\n    <b>Sw1:</b>\n    interface Gig1/0\n     <b>switchport trunk allowed vlan 100,200</b>\n    !\n    interface Gig3/0\n     <b>switchport trunk allowed vlan 200</b>\n\n    <b>Sw2:</b>\n    interface Gig1/0\n     <b>switchport trunk allowed vlan 100,200</b>\n\n    <b>Sw3:</b>\n    interface Gig3/0\n     <b>switchport trunk allowed vlan 200</b>\n</pre>\n\n<p></code></p>\n<p><strong>Verification</strong></p>\n<p>We can filter the VLANs on an interface using the <strong>switchport trunk allowed-vlan add | remove | none | except</strong> commands. In this particular task, we have configured the trunk interfaces to allow only necessary VLANs. It can be verified by using the show interface trunk command as shown below.</p>\n<pre><code>\n    <b>Sw1#show interfaces trunk</b>\n\n    Port        Mode             Encapsulation  Status            Native vlan\n    Gi1/0       on               802.1q         trunking      1\n    Gi3/0       on               802.1q         trunking      1\n\n    Port        Vlans allowed on trunk\n    <b>Gi1/0       200,300</b>\n    <b>Gi3/0       200</b>\n\n    ###################\n\n    <b>Sw2#show interfaces trunk</b>\n\n    Port        Mode             Encapsulation  Status            Native vlan\n    Gi1/0       on               802.1q         trunking      1\n\n    Port        Vlans allowed on trunk\n    <b>Gi1/0       100,200</b>\n\n    ####################\n\n    <b>Sw3#show interfaces trunk</b>\n\n    Port        Mode             Encapsulation  Status            Native vlan\n    Gi3/0       on               802.1q         trunking      1\n\n    Port        Vlans allowed on trunk\n    <b>Gi3/0       200</b>\n\n</pre>\n\n<p></code></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
}