{
    "id": "367b713a-bc91-4657-988f-cd709c62c5ab",
    "name": "Inter-VLAN Routing",
    "slug": "inter-vlan-routing",
    "status": "published",
    "lab_type": "pta",
    "is_sample": false,
    "duration_in_seconds": 1800,
    "metadata": {
        "courses": [
            "74cb7262-a327-4be7-88d7-91802d6c47cd"
        ],
        "pta_sdn": "290",
        "pta_namespace": "my.ine",
        "learning_paths": [],
        "has_published_parent": true
    },
    "session": null,
    "company": "a491bc32-c056-4946-9169-cc053387bada",
    "created": "2022-08-02T15:48:04.108901Z",
    "modified": "2024-05-17T14:46:02.731611Z",
    "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": "The lab teaches how to set up communication between different groups of devices on a network. It provides instructions to configure settings on routers and switches to make this possible. The final step confirms successful device communication.",
    "description_html": "<p><img alt=\"description\" src=\"https://assets.ine.com/content/labs/networking-labs/Task1-5/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-5/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: Inter-VLAN Routing**\n\nYour objective in this task is to convert routers R2, R3, and R4 into hosts by disabling their routing capability. After that, you will configure router R1 as a \"router-on-a-stick\" so that it can route traffic between these hosts.\n\n1. Configure Sw1's Gig0/1 interface as a trunk, using encapsulation 802.1Q.\n\n2. Configure inter-VLAN routing using R1 as a \"router-on-a-stick\".\n    - R1 must be configured to route between VLANs-100 and 200.\n    - R1 must be provided two IPv4 addresses for this task:\n        - 100.1.1.1 /24\n        - 200.1.1.1 /24\n    - Routers R2, R3 and R4 should act like hosts for this task. This will involve disabling IP Routing on these devices and adding \"***ip default-gateway***\" statements to each of them pointing to R1\n\n3. Upon completing this task, R3 should reach R2 and R4.",
    "tasks_html": "<p><strong>Task: Inter-VLAN Routing</strong></p>\n<p>Your objective in this task is to convert routers R2, R3, and R4 into hosts by disabling their routing capability. After that, you will configure router R1 as a \"router-on-a-stick\" so that it can route traffic between these hosts.</p>\n<ol>\n<li>\n<p>Configure Sw1's Gig0/1 interface as a trunk, using encapsulation 802.1Q.</p>\n</li>\n<li>\n<p>Configure inter-VLAN routing using R1 as a \"router-on-a-stick\".</p>\n<ul>\n<li>R1 must be configured to route between VLANs-100 and 200.</li>\n<li>R1 must be provided two IPv4 addresses for this task:<ul>\n<li>100.1.1.1 /24</li>\n<li>200.1.1.1 /24</li>\n</ul>\n</li>\n<li>Routers R2, R3 and R4 should act like hosts for this task. This will involve disabling IP Routing on these devices and adding \"<strong><em>ip default-gateway</em></strong>\" statements to each of them pointing to R1</li>\n</ul>\n</li>\n<li>\n<p>Upon completing this task, R3 should reach R2 and R4.</p>\n</li>\n</ol>",
    "published_date": "2018-08-07T18:00:00Z",
    "solutions": "**Solutions:**\n\nBecause we have used different VLANs to connect the routers and the task is asking us to make them reachable, inter-VLAN routing should be in place to make them reachable. As we know, there should be at least one L3 device; that is, a router or L3-capable switch. So we are using R1 to perform inter-VLAN routing for VLAN 100 and VLAN 200. Make sure that the switchport connected to R1 is configured as static trunk because a router does not support DTP. Additionally, we must configure sub-interfaces on R1 on the basis of which VLANs we are trying to route to each other.\n\nFirst, configure Sw1's Gig0/1 port as a trunk.\n\n<pre><code>\n    Sw1>en\n    Sw1#config t\n    Enter configuration commands, one per line.  End with CNTL/Z.\n    <b>Sw1(config)#interface gig0/1</b>\n    Sw1(config-if)#<b>switchport trunk encapsulation dot1q</b>\n    Sw1(config-if)#<b>switchport mode trunk</b>\n    Sw1(config-if)#end\n    Sw1#\n    *Jul 27 17:07:50.275: %SYS-5-CONFIG_I: Configured from     console by console\n    Sw1#\n    <b>Sw1#show interface gig0/1 switchport</b>\n    Name: Gi0/1\n    Switchport: Enabled\n    Administrative Mode: trunk\n    <b>Operational Mode: trunk</b>\n    Administrative Trunking Encapsulation: dot1q\n    <b>Operational Trunking Encapsulation: dot1q</b>\n    Negotiation of Trunking: On\n\n</pre></code>\n\nNow configure R1 with the sub-interfaces and IP addressing for VLAN100 and VLAN200.\n\n<pre><code>\nR1:\ninterface Gig0/0\n no ip address\n no shutdown\n!\ninterface Gig0/0.100\n encapsulation dot1Q 100\n ip address 100.1.1.1 255.255.255.0\n!\ninterface Gig0/0.200\n encapsulation dot1Q 200\n ip address 200.1.1.1 255.255.255.0\n</pre></code>\n\nSet the default-gateway on R2, R3, and R4. Because we are using routers as the hosts, we must disable \"ip routing\" first and set the default gateway accordingly.\n\n<pre><code>\n    R2:\n    no ip routing\n    !\n    ip default-gateway 100.1.1.1\n\n    R3:\n    no ip routing\n    !\n    ip default-gateway 200.1.1.1\n\n    R4:\n    no ip routing\n    !\n    ip default-gateway 200.1.1.1\n\n</pre></code>\n\n**Verification**\n\nWhen configured, check the reachability between hosts in different VLANs.\n\n<pre><code>\n    R2#sh ip route\n    Default gateway is 100.1.1.1\n\n    Host               Gateway           Last Use    Total     Uses  Interface\n    ICMP redirect cache is empty\n\n    R2#ping 200.1.1.4\n    Type escape sequence to abort.\n    Sending 5, 100-byte ICMP Echos to 200.1.1.4, timeout is 2     seconds:\n    .!!!!\n    Success rate is 80 percent (4/5), round-trip min/avg/max =     36/36/36 ms\n\n    R2#ping 200.1.1.3\n    Type escape sequence to abort.\n    Sending 5, 100-byte ICMP Echos to 200.1.1.3, timeout is 2     seconds:\n    .!!!!\n    Success rate is 80 percent (4/5), round-trip min/avg/max =     28/29/32 ms\n\n    #########################\n\n    R3#show ip route\n    Default gateway is 200.1.1.1\n\n    Host               Gateway           Last Use    Total     Uses  Interface\n    ICMP redirect cache is empty\n\n    R3#ping 100.1.1.2\n    Type escape sequence to abort.\n    Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2     seconds:\n    !!!!!\n    Success rate is 100 percent (5/5), round-trip min/avg/max =     12/15/16 ms\n\n    #########################\n\n    R4#show ip route\n    Default gateway is 200.1.1.1\n\n    Host               Gateway           Last Use    Total     Uses  Interface\n    ICMP redirect cache is empty\n\n    R4#ping 100.1.1.2   \n    Type escape sequence to abort.\n    Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2     seconds:\n    !!!!!\n    Success rate is 100 percent (5/5), round-trip min/avg/max =     28/29/32 ms\n</pre></code>",
    "solutions_html": "<p><strong>Solutions:</strong></p>\n<p>Because we have used different VLANs to connect the routers and the task is asking us to make them reachable, inter-VLAN routing should be in place to make them reachable. As we know, there should be at least one L3 device; that is, a router or L3-capable switch. So we are using R1 to perform inter-VLAN routing for VLAN 100 and VLAN 200. Make sure that the switchport connected to R1 is configured as static trunk because a router does not support DTP. Additionally, we must configure sub-interfaces on R1 on the basis of which VLANs we are trying to route to each other.</p>\n<p>First, configure Sw1's Gig0/1 port as a trunk.</p>\n<pre><code>\n    Sw1>en\n    Sw1#config t\n    Enter configuration commands, one per line.  End with CNTL/Z.\n    <b>Sw1(config)#interface gig0/1</b>\n    Sw1(config-if)#<b>switchport trunk encapsulation dot1q</b>\n    Sw1(config-if)#<b>switchport mode trunk</b>\n    Sw1(config-if)#end\n    Sw1#\n    *Jul 27 17:07:50.275: %SYS-5-CONFIG_I: Configured from     console by console\n    Sw1#\n    <b>Sw1#show interface gig0/1 switchport</b>\n    Name: Gi0/1\n    Switchport: Enabled\n    Administrative Mode: trunk\n    <b>Operational Mode: trunk</b>\n    Administrative Trunking Encapsulation: dot1q\n    <b>Operational Trunking Encapsulation: dot1q</b>\n    Negotiation of Trunking: On\n\n</pre>\n\n<p></code></p>\n<p>Now configure R1 with the sub-interfaces and IP addressing for VLAN100 and VLAN200.</p>\n<pre><code>\nR1:\ninterface Gig0/0\n no ip address\n no shutdown\n!\ninterface Gig0/0.100\n encapsulation dot1Q 100\n ip address 100.1.1.1 255.255.255.0\n!\ninterface Gig0/0.200\n encapsulation dot1Q 200\n ip address 200.1.1.1 255.255.255.0\n</pre>\n\n<p></code></p>\n<p>Set the default-gateway on R2, R3, and R4. Because we are using routers as the hosts, we must disable \"ip routing\" first and set the default gateway accordingly.</p>\n<pre><code>\n    R2:\n    no ip routing\n    !\n    ip default-gateway 100.1.1.1\n\n    R3:\n    no ip routing\n    !\n    ip default-gateway 200.1.1.1\n\n    R4:\n    no ip routing\n    !\n    ip default-gateway 200.1.1.1\n\n</pre>\n\n<p></code></p>\n<p><strong>Verification</strong></p>\n<p>When configured, check the reachability between hosts in different VLANs.</p>\n<pre><code>\n    R2#sh ip route\n    Default gateway is 100.1.1.1\n\n    Host               Gateway           Last Use    Total     Uses  Interface\n    ICMP redirect cache is empty\n\n    R2#ping 200.1.1.4\n    Type escape sequence to abort.\n    Sending 5, 100-byte ICMP Echos to 200.1.1.4, timeout is 2     seconds:\n    .!!!!\n    Success rate is 80 percent (4/5), round-trip min/avg/max =     36/36/36 ms\n\n    R2#ping 200.1.1.3\n    Type escape sequence to abort.\n    Sending 5, 100-byte ICMP Echos to 200.1.1.3, timeout is 2     seconds:\n    .!!!!\n    Success rate is 80 percent (4/5), round-trip min/avg/max =     28/29/32 ms\n\n    #########################\n\n    R3#show ip route\n    Default gateway is 200.1.1.1\n\n    Host               Gateway           Last Use    Total     Uses  Interface\n    ICMP redirect cache is empty\n\n    R3#ping 100.1.1.2\n    Type escape sequence to abort.\n    Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2     seconds:\n    !!!!!\n    Success rate is 100 percent (5/5), round-trip min/avg/max =     12/15/16 ms\n\n    #########################\n\n    R4#show ip route\n    Default gateway is 200.1.1.1\n\n    Host               Gateway           Last Use    Total     Uses  Interface\n    ICMP redirect cache is empty\n\n    R4#ping 100.1.1.2   \n    Type escape sequence to abort.\n    Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2     seconds:\n    !!!!!\n    Success rate is 100 percent (5/5), round-trip min/avg/max =     28/29/32 ms\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
}