{"id":2306,"date":"2019-08-10T00:25:03","date_gmt":"2019-08-10T00:25:03","guid":{"rendered":"http:\/\/wiki.thomasandsofia.com\/?p=2306"},"modified":"2020-07-10T23:56:27","modified_gmt":"2020-07-10T23:56:27","slug":"section-21-inter-vlan-routing","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=2306","title":{"rendered":"Section 21: Inter-VLAN Routing"},"content":{"rendered":"<p><a href=\"http:\/\/wiki.thomasandsofia.com\/?p=2276\">&lt; Section 20<\/a> | <a href=\"\/course-introduction\/\">Home<\/a> | <a href=\"http:\/\/wiki.thomasandsofia.com\/?p=2333\">Section 22 &gt;<\/a><\/p>\n<p>65% Complete<\/p>\n<h1>132. Introduction<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657074#overview\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657074#overview<\/a><\/p>\n<h1>133. Router with Separate Interfaces<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657078#overview\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657078#overview<\/a><\/p>\n<h2>VLANs and IP subnets in the LAN<\/h2>\n<ul>\n<li>There is typically a one-to-one relationship between an IP subnet and a VLAN in the LAN campus<\/li>\n<li>For example:\n<ul>\n<li>Engineering hosts are in IP subnet 10.10.10.0\/24 and VLAN 10<\/li>\n<li>Sales hosts are in IP subnet 10.10..20.0\/24 and VLAN 20<\/li>\n<\/ul>\n<\/li>\n<li>Hosts are segragated at Layer 3 by being in different IP subnets and at Layer 2 by being in different VLANs<\/li>\n<li>Host in different IP subnets need to send traffic via a Router to communicate with each other.<\/li>\n<\/ul>\n<h2>Option 1: Router with different Interfaces<\/h2>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2307\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-18.png\" alt=\"\" width=\"740\" height=\"345\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-18.png 740w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-18-300x140.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-18-150x70.png 150w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<ul>\n<li>Router interfaces are configured as default gateways.<\/li>\n<li>Each interface is associated to its related VLAN<\/li>\n<li>Hosts in one VLAN can reach hosts in the other VLAN via the Router.<\/li>\n<\/ul>\n<h2>Routers with Separate Interfaces Disadvantages<\/h2>\n<ul>\n<li>You need a separate interface for every VLAN and you are likely to run out of interfaces.<\/li>\n<li>Traffic being routed with the campus has to go up and down physical Ethernet cables to the router.<\/li>\n<\/ul>\n<h2>Inter-VLAN Routing Lab<\/h2>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2308\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-19.png\" alt=\"\" width=\"520\" height=\"268\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-19.png 520w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-19-300x155.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-19-150x77.png 150w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/a><\/p>\n<h3>Configuration<\/h3>\n<p>SW1<\/p>\n<pre>conf t\r\nint range f0\/1 - 2\r\nswitchport mode access\r\nswitchport access vlan 10\r\n\r\nint f0\/3\r\nswitchport mode access\r\nswitchport access vlan 20\r\n\r\nint g0\/1\r\nswitchport trunk encap dot1q\r\nswitchport mode trunk\r\nswitchport trunk native vlan 199<\/pre>\n<p>SW2<\/p>\n<pre>conf t\r\nint range g0\/1 - 2\r\nswitchport trunk encap dot1q\r\nswitchport mode trunk\r\nswitchport trunk native vlan 199\r\n\r\nint f0\/1\r\nswitchport mode access\r\nswitchport access vlan 10\r\n\r\nint f0\/2\r\nswitchport mode access\r\nswitchport access vlan 20<\/pre>\n<p>SW3<\/p>\n<pre>conf t\r\nint range f0\/1 - 2\r\nswitchport mode access\r\nswitchport access vlan 20\r\n\r\nint f0\/3\r\nswitchport mode access\r\nswitchport access vlan 10\r\n\r\nint g0\/1\r\nswitchport trunk encap dot1q\r\nswitchport mode trunk\r\nswitchport trunk native vlan 199<\/pre>\n<p>R1<\/p>\n<pre>conf t\r\nint f0\/0\r\nip address 10.10.10.1 255.255.255.0\r\nno shutdown\r\n\r\nint f0\/1\r\nip address 10.10.20.1 255.255.255.0\r\nno shutdown<\/pre>\n<h1><\/h1>\n<h1>134. Router on a Stick<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657082#overview\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657082#overview<\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>Know this for the exam!<\/strong><\/span><\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2312\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-20.png\" alt=\"\" width=\"831\" height=\"396\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-20.png 831w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-20-300x143.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-20-768x366.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-20-150x71.png 150w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/a><\/p>\n<ul>\n<li>R1-F0\/1\n<ul>\n<li>Configured with no IP address.<\/li>\n<li>No shutdown<\/li>\n<\/ul>\n<\/li>\n<li>Create Sub-interface F0\/1.10\n<ul>\n<li>Automatically creates a virtual sub-interface<del> in VLAN 10<\/del><\/li>\n<li>Add IP address 10.10.10.1\/24<\/li>\n<\/ul>\n<\/li>\n<li>Create Sub-Interface F0\/1.20\n<ul>\n<li>Automatically creates a virtual subinterface<del> in VLAN 20<\/del><\/li>\n<li>Add IP address 10.10.20.1\/24<\/li>\n<\/ul>\n<\/li>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n<pre>R1(config)#interface fastethernet 0\/1\r\nR1(config-if)#no ip address\r\nR1(config-if)#no shutdown\r\nR1(config-if)#interface fastethernet 0\/1.10\r\nR1(config-subif)#encapsulation dot1q 10\r\nR1(config-subif)#ip address 10.10.10.1 255.255.255.0\r\nR1(config-subif)#interface fastethernet 0\/1.20\r\nR1(config-subif)#encapsulation dot1q 20\r\nR1(config-subif)#ip address 10.10.20.1\r\nR1(config-if)#exit\r\nR1(config)ip route 0.0.0.0 0.0.0.0 203.0.113.2\r\nSW1(config)#interface fastethernet 0\/1\r\nSW1(config-if)#switchport mode trunk\r\n\r\n<\/pre>\n<h2>Router on a Stick Pros and Cons<\/h2>\n<ul>\n<li>Pros\n<ul>\n<li>You DO NOT need a separate physical interface for every VLAN<\/li>\n<li>This way you are less likely to run out of interfaces<\/li>\n<\/ul>\n<\/li>\n<li>Cons\n<ul>\n<li>Traffic routed within the campus has to go up an down the same physical Ethernet cable to the Router.<\/li>\n<li>There is more contention for bandwidth than when using separate interfaces.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Inter-VLAN Routing Lab<\/h2>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2313\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-21.png\" alt=\"\" width=\"661\" height=\"336\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-21.png 661w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-21-300x152.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-21-150x76.png 150w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/a><\/p>\n<h2>My Config:<\/h2>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/Router-on-a-stick.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2315\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/Router-on-a-stick.png\" alt=\"\" width=\"496\" height=\"214\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/Router-on-a-stick.png 496w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/Router-on-a-stick-300x129.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/Router-on-a-stick-150x65.png 150w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/a><\/p>\n<h4><span style=\"color: #ff0000;\">Note: To make this work with my Raspberry Pis, I first had to configure static routes for 10.0.0.0\/24<\/span><\/h4>\n<pre>sudo route add -net 10.0.0.0\/8 dev etho<\/pre>\n<h3>SW2<\/h3>\n<h4>Configure the VLANS<\/h4>\n<pre>SW2(config)#vlan 100\r\nSW2(config-vlan)#name Sub.0\r\nSW2(config-vlan)#vlan 200\r\nSW2(config-vlan)#name Sub.1\r\nSW2(config-vlan)#vlan 199\r\nSW2(config-vlan)#name Native<\/pre>\n<h4>Configure the access interfaces F0\/1 and F0\/2<\/h4>\n<pre>SW2(config)#interface fastethernet 0\/1\r\nSW2(config-if)#switchport mode access\r\nSW2(config-if)#switchport access vlan 100\r\nSW2(config-if)#int f0\/2\r\nSW2(config-if)#switch mode access\r\nSW2(config-if)#switch access vlan 200<\/pre>\n<h4>Configure F0\/24 as a trunk<\/h4>\n<pre>SW2(config)#interface fastethernet 0\/24\r\nSW2(config-if)#switchport mode trunk\r\nSW2(config-if)#switchport trunk native vlan 199<\/pre>\n<h3>SW1<\/h3>\n<h4>Configure the VLANS<\/h4>\n<pre>SW1(config)#vlan 100\r\nSW1(config-vlan)#name Sub.0\r\nSW1(config-vlan)#vlan 200\r\nSW1(config-vlan)#name Sub.1\r\nSW1(config-vlan)#vlan 199\r\nSW1(config-vlan)#name Native<\/pre>\n<h4>Configure Interfaces F0\/1 and F0\/24 as Trunks<\/h4>\n<pre>SW1(config)#interface fastethernet 0\/1\r\nSW1(config-if)#switchport mode trunk\r\nSW1(config-if)#switchport trunk native vlan 199\r\nSW1(config-if)#int f0\/24\r\nSW1(config-if)#switch mode trunk\r\nSW1(config-if)#switch trunk native vlan 199<\/pre>\n<h3>R1<\/h3>\n<h4>Configure Interface F0\/0 with Sub Interfaces<\/h4>\n<pre>R1(config)#interface fastethernet 0\/0\r\nR1(config-if)#no ip address\r\nR1(config-if)#no shutdown\r\nR1(config-if)#int f0\/0.100\r\nR1(config-subif)#encapsulation dot1q 100\r\nR1(config-subif)#ip address 10.0.0.1 255.255.255.0\r\nR1(config-subif)#int f0\/0.200\r\nR1(config-subif)#encapsulation dot1q 200\r\nR1(config-subif)#ip address 10.0.1.1 255.255.255.0<\/pre>\n<h1><\/h1>\n<h1>135. Layer 3 Switches<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/course\/cisco-icnd1\/learn\/lecture\/8657096#overview\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/course\/cisco-icnd1\/learn\/lecture\/8657096#overview<\/a><\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-22.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2319\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-22.png\" alt=\"\" width=\"873\" height=\"408\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-22.png 873w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-22-300x140.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-22-768x359.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-22-150x70.png 150w\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" \/><\/a><\/p>\n<h2>Use the Switch as a Router<\/h2>\n<ul>\n<li>Requires a Layer 3 Switch<\/li>\n<li>Requires SVI: Switched Virtual Interface<\/li>\n<li>Configure Virtual Interfaces to correspond to the interfaces you would normally have on a router.\n<ul>\n<li>These also need to correspond to the correct VLAN<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Reasons for still using an external Router<\/h3>\n<ul>\n<li>Switches use Ethernet. You might require a different interface for the WAN traffic<\/li>\n<li>There may be a WAN feature that is required but not supported by the switch.<\/li>\n<\/ul>\n<h2>Configure Inter-VLAN Routing<\/h2>\n<pre>SW1(config)#ip routing\r\nSW1(config)#interface vlan 10\r\nSW1(config-if)#ip address 10.10.10.1 255.255.255.0\r\nSW1(config-if)#interface vlan 20\r\nSW1(config-if)#ip address 10.10.20.1 255.255.255.0<\/pre>\n<h3>Configure WAN Routing<\/h3>\n<p>This requires another Virtual Interface to connect to the router.<\/p>\n<pre>SW1(config)#interface fastethernet 0\/1\r\nSW1(config-if)#no switchport\r\nSW1(config-if)#ip address 10.10.100.1 255.255.255.0\r\nSW1(config-if)#exit\r\nSW1(config)#ip route 0.0.0.0 0.0.0.0 10.10.100.2\r\nR1(config)#! Configure Router\r\nR1(config)#interface fastethernet 0\/1\r\nR1(config-if)#ip address 10.10.100.2 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config-if)#int f0\/2\r\nR1(config-if)#ip address 203.0.113.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config-if)#exit\r\nR1(config)#! Configure Routes\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 203.0.113.2\r\nR1(config)#ip route 10.10.0.0 255.255.0.0 10.10.100.1<\/pre>\n<h2>Pros and Cons for a Layer 3 Switch<\/h2>\n<ul>\n<li>Pros\n<ul>\n<li>Traffic does not need to travel across the campus backplane.<\/li>\n<li>Traffic does not need to be routed to an external Router<\/li>\n<\/ul>\n<\/li>\n<li>Cons\n<ul>\n<li>You may still need an external Router for WAN connectivity<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1><\/h1>\n<h1>136. Layer 3 Switch Lab Demo<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/course\/cisco-icnd1\/learn\/lecture\/8657104#content\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/course\/cisco-icnd1\/learn\/lecture\/8657104#content<\/a><\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-23.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2322\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-23.png\" alt=\"\" width=\"591\" height=\"364\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-23.png 591w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-23-300x185.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/a1-23-150x92.png 150w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a><\/p>\n<p>SW2: Configure the virtual interfaces<\/p>\n<pre>SW2(config)#ip routing\r\nSW2(config)#interface vlan 10\r\nSW2(config-if)#ip address 10.10.10.1 255.255.255.0\r\nSW2(config-if)#interface vlan 20\r\nSW2(config-if)#ip address 10.10.20.1 255.255.255.0\r\n<\/pre>\n<p>SW2: Configure F0\/1 as a Router Interface with an IP address<\/p>\n<pre>SW2(config)#interface fastethernet 0\/1\r\nSW2(config-if)#no switchport \r\nSW2(config-if)#ip address 10.10.100.1 255.255.255.0\r\nSW2(config-if)#no shutdown<\/pre>\n<p>SW2: Configure the static routes<\/p>\n<pre>SW2(config)#ip route 10.10.10.0 255.255.255.0 10.10.10.1\r\nSW2(config)#ip route 10.10.20.0 255.255.255.0 10.10.20.1\r\nSW2(config)#ip route 0.0.0.0 0.0.0.0 10.10.100.2<\/pre>\n<p>R1: Configure Interfaces<\/p>\n<pre>R1(config)#int f0\/1\r\nR1(config-if)#ip address 10.10.100.2 255.255.255.0\r\nR1(config-if)#no shutdown\r\nR1(config-if)#int f0\/0\r\nR1(config-if)#ip address 203.0.113.1 255.255.255.0\r\nR1(config-if)#no shutdown\r\n<\/pre>\n<p>R1: Configure Static Routes<\/p>\n<pre>R1(config)#ip route 10.10.0.0 255.255.0.0 10.10.100.1\r\nR1(config)#ip route 0.0.0.0 0.0.0.0 203.0.113.2\r\n<\/pre>\n<h1><span style=\"color: #ff0000;\">You Are Here<\/span><\/h1>\n<h1>137. VLAN and Inter-VLAN Routing Configuration Lab Exercises<\/h1>\n<p><a href=\"https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657116#overview\" target=\"_blank\" rel=\"noopener\">https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657116#overview<\/a><\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/23-1-VLAN-and-Inter-VLAN-Routing-Configuration.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2327\" src=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/23-1-VLAN-and-Inter-VLAN-Routing-Configuration.jpg\" alt=\"\" width=\"841\" height=\"437\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/23-1-VLAN-and-Inter-VLAN-Routing-Configuration.jpg 841w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/23-1-VLAN-and-Inter-VLAN-Routing-Configuration-300x156.jpg 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/23-1-VLAN-and-Inter-VLAN-Routing-Configuration-768x399.jpg 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/23-1-VLAN-and-Inter-VLAN-Routing-Configuration-150x78.jpg 150w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/23-1-VLAN-and-Inter-VLAN-Routing-Configuration-Lab-Exercise.pdf\">23-1 VLAN and Inter-VLAN Routing Configuration Lab Exercise<\/a><\/p>\n<p><a href=\"http:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2019\/08\/23-1-VLAN-and-Inter-VLAN-Routing-Configuration-Answer-Key.pdf\">23-1 VLAN and Inter-VLAN Routing Configuration Answer Key<\/a><\/p>\n<h3>VTP, Access and Trunk Ports<\/h3>\n<p>&nbsp;<\/p>\n<p><strong>1) All routers and switches are in a factory default state. View the VLAN<\/strong><br \/>\n<strong>database on SW1 to verify no VLANs have been added.<\/strong><\/p>\n<pre>SW1&gt;sh vlan brief\r\n\r\nVLAN Name                             Status    Ports\r\n---- -------------------------------- --------- -------------------------------\r\n1    default                          active    Fa0\/1, Fa0\/2, Fa0\/3, Fa0\/4\r\n                                                Fa0\/5, Fa0\/6, Fa0\/7, Fa0\/8\r\n                                                Fa0\/9, Fa0\/10, Fa0\/11, Fa0\/12\r\n                                                Fa0\/13, Fa0\/14, Fa0\/15, Fa0\/16\r\n                                                Fa0\/17, Fa0\/18, Fa0\/19, Fa0\/20\r\n                                                Fa0\/21, Fa0\/22, Fa0\/23, Fa0\/24\r\n                                                Gig0\/1, Gig0\/2\r\n1002 fddi-default                     active    \r\n1003 token-ring-default               active    \r\n1004 fddinet-default                  active    \r\n1005 trnet-default                    active\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>2) View the default switchport status on the link from SW1 to SW2.<\/strong><\/p>\n<pre>SW1#sh int g0\/1 switchport\r\nName: Gig0\/1\r\nSwitchport: Enabled\r\nAdministrative Mode: dynamic auto\r\nOperational Mode: static access\r\nAdministrative Trunking Encapsulation: dot1q\r\nOperational Trunking Encapsulation: native\r\nNegotiation of Trunking: On\r\nAccess Mode VLAN: 1 (default)\r\nTrunking Native Mode VLAN: 1 (default)\r\nVoice VLAN: none\r\n...<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>3) Configure the links between switches as trunks.<\/strong><\/p>\n<p>Repeat all switches<\/p>\n<pre>conf t\r\nint range g0\/1 - 2\r\n# next command required on SW2 only\r\nswitchport trunk encap dot1q\r\nswitchport mode trunk\r\nend\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>4) Add the Eng, Sales and Native VLANs on all switches.<\/strong><\/p>\n<p>Repeat all switches<\/p>\n<pre>conf t\r\nvlan 10\r\nname Eng\r\nvlan 20\r\nname Sales\r\nvlan 199\r\nname Native\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>5) Verify the VLANs are in the database on each switch.<\/strong><\/p>\n<p>Repeat all switches<\/p>\n<pre>show vlan brief<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>6) Configure the trunk links to use VLAN 199 as the native VLAN for better<br \/>\nsecurity.<\/strong><\/p>\n<p>Repeat all switches<\/p>\n<pre>conf t\r\nint range g0\/1 - 2\r\nswitchport trunk native vlan 199\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>7) Configure the switchports connected to the PCs with the correct VLAN<br \/>\nconfiguration.<\/strong><\/p>\n<p>SW1<\/p>\n<pre>conf t\r\nint range f0\/1 - 2 \r\nswitchport mode access\r\nswitchport access vlan 10\r\nint f0\/3 switchport mode access\r\nswitchport access vlan 20<\/pre>\n<p>SW3<\/p>\n<pre>conf t\r\nint range f0\/1 - 2\r\nswitchport mode access\r\nswitchport access vlan 20\r\nint f0\/3\r\nswitchport mode access\r\nswitchport access vlan 10\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>8) Verify the Eng1 PC has connectivity to Eng3.<\/strong><br \/>\n10.10.10.10 (Eng1)<\/p>\n<pre>C:\\&gt;ping 10.10.10.12\r\n\r\nPinging 10.10.10.12 with 32 bytes of data:\r\n\r\nReply from 10.10.10.12: bytes=32 time=1ms TTL=128\r\nReply from 10.10.10.12: bytes=32 time&lt;1ms TTL=128\r\nReply from 10.10.10.12: bytes=32 time&lt;1ms TTL=128\r\nReply from 10.10.10.12: bytes=32 time&lt;1ms TTL=128<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>9) Verify Sales1 has connectivity to Sales3.<\/strong><br \/>\n10.10.20.10 (Sales1)<\/p>\n<pre>C:\\&gt;ping 10.10.20.12\r\n\r\nPinging 10.10.20.12 with 32 bytes of data:\r\n\r\nReply from 10.10.20.12: bytes=32 time&lt;1ms TTL=128\r\nReply from 10.10.20.12: bytes=32 time&lt;1ms TTL=128\r\nReply from 10.10.20.12: bytes=32 time&lt;1ms TTL=128\r\nReply from 10.10.20.12: bytes=32 time&lt;1ms TTL=128<\/pre>\n<h3>Inter-VLAN Routing \u2013 Option 1<br \/>\nSeparate Interfaces on Router<\/h3>\n<p>&nbsp;<\/p>\n<p><strong>10) Configure interface FastEthernet0\/0 on R1 as the default gateway for the Eng PCs.<\/strong><\/p>\n<pre>conf t\r\nint f0\/0\r\nip address 10.10.10.1 255.255.255.0\r\nno shutdown\r\nend<\/pre>\n<p><strong>11) Configure interface FastEthernet0\/1 on R1 as the default gateway for the Sales PCs.<\/strong><\/p>\n<pre>conf t\r\nint f0\/1\r\nip address 10.10.20.1 255.255.255.0\r\nno shutdown\r\nend<\/pre>\n<p><strong>12) Configure SW2 to support inter-VLAN routing using R1 as the default gateway.<\/strong><\/p>\n<pre>conf t\r\nint f0\/1\r\nswitchport mode access\r\nswitchport access vlan 10\r\nint f0\/2\r\nswitchport mode access\r\nswitchport access vlan 20\r\nend<\/pre>\n<p><strong>13) Verify the Eng1 PC has connectivity to the VLAN 20 interface on R1.<\/strong><\/p>\n<pre>C:\\&gt;ping 10.10.20.1\r\n\r\nPinging 10.10.20.1 with 32 bytes of data:\r\n\r\nReply from 10.10.20.1: bytes=32 time=1ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255<\/pre>\n<p><strong>14) Verify the Eng1 PC has connectivity to Sales1.<\/strong><\/p>\n<pre>C:\\&gt;ping 10.10.20.10\r\n\r\nPinging 10.10.20.10 with 32 bytes of data:\r\n\r\nRequest timed out.\r\nReply from 10.10.20.10: bytes=32 time=1ms TTL=127\r\nReply from 10.10.20.10: bytes=32 time=9ms TTL=127\r\nReply from 10.10.20.10: bytes=32 time=1ms TTL=127<\/pre>\n<p><strong>15) Clean-up: Shut down interface FastEthernet0\/1 on R1.<\/strong><\/p>\n<pre>conf t\r\nint f0\/1\r\nshutdown\r\nend<\/pre>\n<h3>Inter-VLAN Routing \u2013 Option 2<br \/>\nRouter on a Stick<\/h3>\n<p>&nbsp;<\/p>\n<p><strong>16) Configure sub-interfaces on FastEthernet0\/0 on R1 as the default gateway for the Eng and Sales PCs.<\/strong><\/p>\n<pre>conf t\r\nint f0\/1\r\nno ip address 10.10.20.1 255.255.255.0\r\n\r\nint f0\/0\r\nno ip address 10.10.10.1 255.255.255.0\r\nno shutdown\r\n\r\nint f0\/0.10\r\nencapsulation dot1q 10\r\nip address 10.10.10.1 255.255.255.0\r\n\r\nint f0\/0.20\r\nencapsulation dot1q 20\r\nip address 10.10.20.1 255.255.255.0\r\n\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>17) Configure SW2 to support inter-VLAN routing using R1 as the default gateway.<\/strong><\/p>\n<pre>conf t\r\nint f0\/1\r\nswitchport trunk encap dot1q\r\nswitchport mode trunk\r\nswitchport trunk native vlan 199\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>18) Verify the Eng1 PC has connectivity to the VLAN 20 interface on R1.<\/strong><\/p>\n<pre>C:\\&gt;ping 10.10.20.1\r\n\r\nPinging 10.10.20.1 with 32 bytes of data:\r\n\r\nReply from 10.10.20.1: bytes=32 time=1ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>19) Verify the Eng1 PC has connectivity to Sales1.<\/strong><\/p>\n<pre>C:\\&gt;ping 10.10.20.10\r\n\r\nPinging 10.10.20.10 with 32 bytes of data:\r\n\r\nRequest timed out.\r\nReply from 10.10.20.10: bytes=32 time&lt;1ms TTL=127\r\nReply from 10.10.20.10: bytes=32 time&lt;1ms TTL=127\r\nReply from 10.10.20.10: bytes=32 time&lt;1ms TTL=127<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>20) Clean-up: Shut down interface FastEthernet0\/0 on R1.<\/strong><\/p>\n<pre>conf t\r\nint f0\/0\r\nshutdown\r\nend<\/pre>\n<h3>Inter-VLAN Routing \u2013 Option 3<br \/>\nLayer 3 Switch<\/h3>\n<p>&nbsp;<\/p>\n<p><strong>21) Enable layer 3 routing on SW2.<\/strong><\/p>\n<pre>conf t\r\nip routing\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>22) Configure SVIs on SW2 to support inter-VLAN routing between the Eng and Sales VLANs.<\/strong><\/p>\n<pre>conf t\r\nint vlan 10\r\nip address 10.10.10.1 255.255.255.0\r\nint vlan 20 \r\nip address 10.10.20.1 255.255.255.0\r\n\r\n\r\n<strong>23) Verify the Eng1 PC has connectivity to the VLAN 20 interface on SW2.<\/strong><\/pre>\n<pre>C:\\&gt;ping 10.10.20.1\r\n\r\nPinging 10.10.20.1 with 32 bytes of data:\r\n\r\nReply from 10.10.20.1: bytes=32 time=7ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255\r\nReply from 10.10.20.1: bytes=32 time&lt;1ms TTL=255<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>24) Verify the Eng1 PC has connectivity to Sales1.<\/strong><\/p>\n<pre>C:\\&gt;ping 10.10.20.10\r\n\r\nPinging 10.10.20.10 with 32 bytes of data:\r\n\r\nRequest timed out.\r\nReply from 10.10.20.10: bytes=32 time=1ms TTL=127\r\nReply from 10.10.20.10: bytes=32 time&lt;1ms TTL=127\r\nReply from 10.10.20.10: bytes=32 time&lt;1ms TTL=127<\/pre>\n<p>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt; Section 20 | Home | Section 22 &gt; 65% Complete 132. Introduction https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657074#overview 133. Router with Separate Interfaces https:\/\/www.udemy.com\/cisco-icnd1\/learn\/lecture\/8657078#overview VLANs and IP subnets in the LAN There is typically a one-to-one relationship between an IP subnet and a VLAN in the LAN campus For example: Engineering hosts are in IP subnet 10.10.10.0\/24 and VLAN ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=2306\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-2306","post","type-post","status-publish","format-standard","hentry","category-icnd1-ccent"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2306"}],"version-history":[{"count":25,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2306\/revisions"}],"predecessor-version":[{"id":3065,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2306\/revisions\/3065"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}