LabAssignment9
LabAssignment9
Assignment: 9
Create following topology and VLANs on Packet Tracer. Configure the network for
Inter-VLAN routing.
Verify the Inter-VLAN Routing using ping utility and also by simulation.
Inter-VLAN Routing using Layer 3 Switches
In this Assignment, you will configure inter-VLAN routing using Layer 3 switches.
Inter-VLAN routing using the router-on-a-stick method is simple to implement for a small- to medium-
sized organization. However, a large enterprise requires a faster, much more scalable method to
provide inter-VLAN routing.
Enterprise campus LANs use Layer 3 switches to provide inter-VLAN routing. Layer 3 switches use
hardware-based switching to achieve higher-packet processing rates than routers. Layer 3 switches
are also commonly implemented in enterprise distribution layer wiring closets.
• Route from one VLAN to another using multiple switched virtual interfaces (SVIs).
• Convert a Layer 2 switchport to a Layer 3 interface (that is, a routed port). A routed port is
similar to a physical interface on a Cisco IOS router.
To provide inter-VLAN routing, Layer 3 switches use SVIs. SVIs are configured using the
same interface vlan vlan-id command used to create the management SVI on a Layer 2 switch. A
Layer 3 SVI must be created for each of the routable VLANs.
• Step 1. Create the VLANs. First, create the two VLANs as shown below.
D1(config)# vlan 10
D1(config-vlan)# name LAN10
D1(config-vlan)# vlan 20
D1(config-vlan)# name LAN20
D1(config-vlan)# exit
D1(config)#
• Step 2. Create the SVI VLAN interfaces. Configure the SVI for VLANs 10 and 20, as shown below.
The IP addresses that are configured will serve as the default gateways to the hosts in the respective
VLANs. Notice the informational messages showing the line protocol on both SVIs changed to up.
• Step 3. Configure access ports. Next, configure the access ports connecting to the hosts and
assign them to their respective VLANs, as shown below.
• Step 4. Enable IP routing. Finally, enable IPv4 routing with the ip routing global configuration
command to allow traffic to be exchanged between VLANs 10 and 20, as shown below. This
command must be configured to enable inter-VAN routing on a Layer 3 switch for IPv4.
Enable IP Routing
D1(config)# ip routing
D1(config)#
From a host, verify connectivity to a host in another VLAN using the ping command. It is a good idea
to first verify the current host IP configuration using the ipconfig Windows host command. The output
shown below confirms the IPv4 address and default gateway of PC1.
C:\Users\PC1> ipconfig
Windows IP Configuration
Ethernet adapter Ethernet0:
Connection-specific DNS Suffix . :
Link-local IPv6 Address : fe80::5c43:ee7c:2959:da68%6
IPv4 Address : 192.168.10.10
Subnet Mask : 255.255.255.0
Default Gateway : 192.168.10.1
C:\Users\PC1>
Next, verify connectivity with PC2 using the ping Windows host command, as shown below.
The ping output successfully confirms that inter-VLAN routing is operating.
A routed port is created on a Layer 3 switch by disabling the switchport feature on a Layer 2 port that
is connected to another Layer 3 device. Specifically, configuring the no switchport interface
configuration command on a Layer 2 port converts it into a Layer 3 interface. Then the interface can
be configured with an IPv4 configuration to connect to a router or another Layer 3 switch.
NOTE
OSPF routing configuration is covered in another course. In this module, OSPF configuration
commands will be given to you in all activities and assessments. It is not required that you understand
the configuration in order to enable OSPF routing on the Layer 3 switch.
• Step 1. Configure the routed port. Configure G1/0/1 to be a routed port, assign it an IPv4 address,
and enable it, as shown below
• Step 2. Enable routing, as shown below. Ensure IPv4 routing is enabled with the ip routing global
configuration command.
Enable Routing
D1(config)# ip routing
D1(config)#
• Step 3. Configure routing. Configure the OSPF routing protocol to advertise the VLAN 10 and VLAN
20 networks, along with the network that is connected to R1, as shown below. Notice the message
informing you that an adjacency has been established with R1.
Configure Routing
• Step 4. Verify routing. Verify the routing table on D1, as shown below. Notice that D1 now has a route
to the 10.20.20.0/24 network.
Verify Routing
• Step 5. Verify connectivity. At this time, PC1 and PC2 are able to ping the server connected to R1, as
shown below
Verify Connectivity