0% found this document useful (0 votes)
178 views7 pages

1.1.2 Lab - Implement Inter-VLAN Routing - ILM - Student 2025

Uploaded by

ccnapost1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
178 views7 pages

1.1.2 Lab - Implement Inter-VLAN Routing - ILM - Student 2025

Uploaded by

ccnapost1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Lab - Implement Inter-VLAN Routing

Topology

Addressing Table
Device Interface IPv4 Address IPv6 Address IPv6 Link-Local
R1 G0/1 10.1.13.1/24 2001:db8:acad:10d1::1/64 fe80::1:1
R1 S0/1/1 10.1.3.1/24 2001:db8:acad:1013::1/64 fe80::1:2
D1 F0/11 10.1.13.13/24 2001:db8:acad:10d1::d1/64 fe80::d1:1
D1 VLAN50 10.2.50.1/24 2001:db8:acad:1050::d1/64 fe80::d1:2
D1 VLAN60 10.2.60.1/24 2001:db8:acad:1060::d1/64 fe80::d1:3
R3 S0/1/1 10.1.3.3/24 2001:db8:acad:1013::3/64 fe80::3:1
R3 G0/1.75 10.3.75.1/24 2001:db8:acad:3075::1/64 fe80::3:2
R3 G0/1.85 10.3.85.1/24 2001:db8:acad:3085::1/64 fe80::3:3
D2 VLAN75 10.3.75.14/24 2001:db8:acad:3075::d2/64 fe80::d2:1
PC1 NIC 10.2.50.50/24 2001:db8:acad:1050::50/64 EUI-64
PC2 NIC 10.2.60.50/24 2001:db8:acad:1060::50/64 EUI-64
PC3 NIC 10.3.75.50/24 2001:db8:acad:3075::50/64 EUI-64
PC4 NIC 10.3.85.50/24 2001:db8:acad:3085::50/64 EUI-64

Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Configure and Verify Inter-VLAN Routing on a Layer 3 Switch
Part 3: Configure and Verify Router-based Inter-VLAN Routing
Part 4: Examine CAM and CEF Details

© 2019 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 7 www.netacad.com
Lab - Implement Inter-VLAN Routing

Background / Scenario
The methods used to move packets and frames from one interface to the next has changed over the years. In this lab you will configure Inter-
VLAN Routing in its various forms and then examine the different tables used in making forwarding decisions.
Note: This lab is an exercise in configuring and verifying various methods of Inter-VLAN routing and does not reflect networking best practices.
Note: The routers and switches used with CCNP hands-on labs are Cisco 4221 and Cisco 3650, both with Cisco IOS XE Release 16.9.4
(universalk9 image). Other routers and Cisco IOS versions can be used. Depending on the model and Cisco IOS version, the commands
available and the output produced might vary from what is shown in the labs.
Note: Ensure that the routers and switches have been erased and have no startup configurations. If you are unsure contact your instructor.

Part 1: Build the Network and Configure Basic Device Settings


Step 1: Cable the network as shown in the topology.
Step 2: Configure basic settings for each device.
Router R1 Router R3
no ip domain lookup no ip domain lookup
hostname R1 hostname R3
line con 0 line con 0
exec-timeout 0 0 exec-timeout 0 0
logging synchronous logging synchronous
exit exit
banner motd # This is R1, Inter-VLAN Routing Lab # banner motd # This is R3, Inter-VLAN Routing Lab #
Switch D1 Switch D2
no ip domain lookup no ip domain lookup
hostname D1 hostname D2
line con 0 line con 0
exec-timeout 0 0 exec-timeout 0 0
logging synchronous logging synchronous
exit exit
banner motd # This is D1, Inter-VLAN Routing Lab # banner motd # This is D2, Inter-VLAN Routing Lab #
interface range f0/1-24 interface range f0/1-24
shutdown shutdown
Open configuration window

a. Set the clock on each device to UTC time.


b. Save the running configuration to startup-config.
Close configuration window

Part 2: Configure and Verify Inter-VLAN Routing on a Layer 3 Switch


In Part 2, you will configure and verify inter-VLAN Routing on a Layer 3 switch. For this part, you will focus on the configuration
of switch D1 and router R1.
Note: The default Switch Database Manager (SDM) template on a Catalyst 3560 running IOS XE supports dual-stacked
operations and requires no additional configuration for our purposes.
If you are using an alternate device running Cisco IOS, check the SDM template with the privileged EXEC command show sdm
prefer and verify that the ‘number of IPv6 unicast routes’ supported is not zero.
If it is zero, you must change the SDM template to one that supports IPv6 using the sdm prefer template_name global
configuration command. The template name will vary depending on the IOS version. Changing the template will require a reboot.
Step 1: On D1, configure Inter-VLAN Routing.
Open configuration window

a. Configure D1 to support IP routing and IPv6 unicast routing.


D1(config)# ip routing
D1(config)# ipv6 unicast-routing
b. Create the VLANs and name them as specified in the topology.
D1(config)# vlan 50
D1(config-vlan)# name Group50
D1(config)# vlan 60
D1(config-vlan)# name Group60
D1(config-vlan)# exit

© 2019 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 7 www.netacad.com
Lab - Implement Inter-VLAN Routing

c. Assign the F0/23 to VLAN 50 and F0/24 to VLAN 60


D1(config)# interface F0/23
D1(config-if)# switchport mode access
D1(config-if)# switchport access vlan 50
D1(config-if)# no shutdown
D1(config)# interface F0/24
D1(config-if)# switchport mode access
D1(config-if)# switchport access vlan 60
D1(config-if)# no shutdown
D1(config-if)# exit
d. Create the Switched Virtual Interfaces (SVI) that will support VLAN 50 and VLAN 60
D1(config)# interface vlan 50
D1(config-if)# ip address 10.2.50.1 255.255.255.0
D1(config-if)# ipv6 address fe80::d1:2 link-local
D1(config-if)# ipv6 address 2001:db8:acad:1050::d1/64
D1(config-if)# no shutdown
D1(config)# interface vlan 60
D1(config-if)# ip address 10.2.60.1 255.255.255.0
D1(config-if)# ipv6 address fe80::d1:3 link-local
D1(config-if)# ipv6 address 2001:db8:acad:1060::d1/64
D1(config-if)# no shutdown
D1(config-if)# exit
e. Configure PC1 with the addresses specified in the Addressing Table. Further assign default gateways of 10.2.50.1 and
2001:db8:acad:1050::d1.
f. Configure PC2 with the addresses specified in the Addressing Table. Further assign default gateways of 10.2.60.1 and
2001:db8:acad:1060::d1.
g. From PC1, ping PC2’s IPv4 and IPv6 address. Success indicates that D1 is performing Inter-VLAN Routing.
h. Examine the MAC address table on D1 with the command show mac address-table dynamic. You should see PC1
and PC2’s mac addresses listed with the ports they are connected to.
D1# show mac address-table dynamic
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
50 0050.56b3.8137 DYNAMIC Gi1/0/23
60 0050.56b3.994b DYNAMIC Gi1/0/24
Total Mac Addresses for this criterion: 2

Step 2: On D1, configure a routed port and default routes towards R1


a. Configure interface G1/0/11 as a routed port with addressing as specified in the topology diagram.
D1(config)# interface F0/11
D1(config-if)# no switchport
D1(config-if)# ip address 10.1.13.13 255.255.255.0
D1(config-if)# ipv6 address fe80::d1:1 link-local
D1(config-if)# ipv6 address 2001:db8:acad:10d1::d1/64
D1(config-if)# no shutdown
D1(config-if)# exit
b. Verify that interface F0/11 is no longer associated with the VLAN database by issuing the command show vlan brief |
i F0/11. There should be no output.
c. Configure static default routes for IPv4 and IPv6 that point towards the interface address at R1.
D1(config)# ip route 0.0.0.0 0.0.0.0 10.1.13.1

© 2019 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 7 www.netacad.com
Lab - Implement Inter-VLAN Routing

D1(config)# ipv6 route ::/0 2001:db8:acad:10d1::1


You may see the error message %ADJ-3-RESOLVE_REQ: Adj resolve request: Failed to resolve 10.1.13.1. This
indicates that the switch sent an ARP for the MAC address of 10.1.13.1 and got no reply. We will configure that next.

Step 3: On R1, configure interface addressing and static routing.


Open configuration window

a. Configure R1 to support IPv6 unicast routing.


R1(config)# ipv6 unicast-routing
b. Configure the interfaces on R1 with the addresses specified in the Addressing Table.
R1(config)# interface G0/1
R1(config-if)# ip address 10.1.13.1 255.255.255.0
R1(config-if)# ipv6 address fe80::1:1 link-local
R1(config-if)# ipv6 address 2001:db8:acad:10d1::1/64
R1(config-if)# no shutdown
R1(config)# interface s0/1/1
R1(config-if)# ip address 10.1.3.1 255.255.255.0
R1(config-if)# ipv6 address fe80::1:2 link-local
R1(config-if)# ipv6 address 2001:db8:acad:1013::1/64
R1(config-if)# no shutdown
c. Configure routing on R1. Configure static routes to the networks supported by D1 and a default route for everything
else point at R3.
R1(config)# ip route 10.2.0.0 255.255.0.0 10.1.13.13
R1(config)# ipv6 route 2001:db8:acad:1050::/64 2001:db8:acad:10d1::d1
R1(config)# ipv6 route 2001:db8:acad:1060::/64 2001:db8:acad:10d1::d1
R1(config)# ip route 0.0.0.0 0.0.0.0 10.1.3.3
R1(config)# ipv6 route ::/0 2001:db8:acad:1013::3
d. From R1, ping PC2 with IPv4 and IPv6. All pings should be successful.
Part 3: Configure and Verify Router-based Inter-VLAN Routing
Step 1: Configure D2 to support the required VLANs.
a. Create the VLANs and name them as specified in the topology. In addition, create vlan 999 and name it NativeVLAN.
Open configuration window

D2(config)# vlan 75
D2(config-vlan)# name Group75
D2(config)# vlan 85
D2(config-vlan)# name Group85
D2(config)# vlan 999
D2(config-vlan)# name NativeVLAN
D2(config-vlan)# exit
b. Assign the F0/23 to VLAN 75 and F0/24 to VLAN 85.
c. Create a Switched Virtual Interface that will operate within VLAN 75.
D2(config)# interface vlan75
D2(config-if)# ip address 10.3.75.14 255.255.255.0
D2(config-if)# ipv6 address fe80::d2:1 link-local
D2(config-if)# ipv6 address 2001:db8:acad:3075::d2/64
D2(config-if)# no shutdown
D2(config-if)# exit
d. Create an IEEE 802.1Q-based trunk to R3. As a part of the configuration of the trunk, set the native VLAN to VLAN
999 and filter the VLANs allowed on the trunk down to only those that are configured.

© 2019 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 7 www.netacad.com
Lab - Implement Inter-VLAN Routing

D2(config)# interface F0/11


D2(config-if)# switchport mode trunk
D2(config-if)# switchport trunk native vlan 999
D2(config-if)# switchport trunk allowed vlan 75,85,999
D2(config-if)# no shutdown
D2(config-if)# exit
Close configuration window

Step 2: Configure R3 to support Inter-VLAN Routing.


a. Configure R3 to support IPv6 unicast routing.
b. Configure the subinterfaces needed on R3 interface G0/1 to support the configured VLANs. Ensure an interface is
created for the native VLAN 999.
Open configuration window

R3(config)# interface G0/1


R3(config-if)# no shutdown
R3(config)# interface G0/1.75
R3(config-subif)# encapsulation dot1q 75
R3(config-subif)# ip address 10.3.75.1 255.255.255.0
R3(config-subif)# ipv6 address fe80::3:2 link-local
R3(config-subif)# ipv6 address 2001:db8:acad:3075::1/64
R3(config-subif)# no shutdown
R3(config)# interface G0/1.85
R3(config-subif)# encapsulation dot1q 85
R3(config-subif)# ip address 10.3.85.1 255.255.255.0
R3(config-subif)# ipv6 address fe80::3:3 link-local
R3(config-subif)# ipv6 address 2001:db8:acad:3085::1/64
R3(config-subif)# no shutdown
R3(config)# interface G0/1.999
R3(config-subif)# encapsulation dot1q 999 native
R3(config-subif)# no shutdown
R3(config-subif)# exit
c. Configure PC3 with the addresses specified in the Addressing Table. Further assign default gateways of 10.3.75.1 and
2001:db8:acad:3075::1.
d. Configure PC4 with the addresses specified in the Addressing Table. Further assign default gateways of 10.3.85.1 and
2001:db8:acad:3085::1.
e. From PC3, ping PC4’s IPv4 and IPv6 address. Success indicates that R3 is performing Inter-VLAN Routing.

Step 3: Configure static routing to enable end-to-end reachability.


a. On R3, configure interface S0/1/1 with the addresses specified in the Addressing Table.
R3(config)# interface s0/1/1
R3(config-if)# ip address 10.1.3.3 255.255.255.0
R3(config-if)# ipv6 address fe80::3:1 link-local
R3(config-if)# ipv6 address 2001:db8:acad:1013::3/64
R3(config-if)# no shutdown
R3(config-if)# exit
b. On R3, configure a static default route for IPv4 and IPv6 that points to R1’s S0/1/1 interface addresses.
R3(config)# ip route 0.0.0.0 0.0.0.0 10.1.3.1
R3(config)# ipv6 route ::/0 2001:db8:acad:1013::1
Close configuration window

c. On PC3, issue a ping to PC2. The ping should be successful. This indicates the routing solution is working in both
directions.

© 2019 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 7 www.netacad.com
Lab - Implement Inter-VLAN Routing

Part 4: Examine CAM and CEF Details


In Part 4, you will examine CEF details on the devices you have configured. The objective of Cisco Express Forwarding is to speed up the
process of moving data from one interface to another. To do this, as much data as possible is precompiled into two tables, the Forwarding
Information Base (FIB) and the Adjacency Table. These are basically shortcuts that identify what interface a packet should be sent out of and
how it should be framed.
a. Issue the command show ip cef to see the compiled CEF table, which tells the device what to do with a frame or
packet based on its destination address. This table gives the device a quick answer and keeps the CPU from getting
directly involved. For example, packets destined to the 10.2.0.0/16 network are quickly resolved to the next-hop address
of 10.1.13.13 exiting interface g0/1.
Open configuration window

R1# show ip cef


Prefix Next Hop Interface
0.0.0.0/0 10.1.3.3 Serial0/1/1
0.0.0.0/8 drop
0.0.0.0/32 receive
10.1.3.0/24 attached Serial0/1/1
10.1.3.0/32 receive Serial0/1/1
10.1.3.1/32 receive Serial0/1/1
10.1.3.3/32 10.1.3.3 Serial0/1/1
10.1.3.255/32 receive Serial0/1/1
10.1.13.0/24 attached GigabitEthernet0/0/1
10.1.13.0/32 receive GigabitEthernet0/0/1
10.1.13.1/32 receive GigabitEthernet0/0/1
10.1.13.13/32 attached GigabitEthernet0/0/1
10.1.13.255/32 receive GigabitEthernet0/0/1
10.2.0.0/16 10.1.13.13 GigabitEthernet0/0/1
127.0.0.0/8 drop
224.0.0.0/4 drop
224.0.0.0/24 receive
240.0.0.0/4 drop
255.255.255.255/32 receive

Issue the command show adjacency, which shows you the address neighbors on each interface.
R1# show adjacency
Protocol Interface Address
IP GigabitEthernet0/0/1 10.1.13.13(11)
IP GigabitEthernet0/0/1 227.0.0.0(3)
IPV6 GigabitEthernet0/0/1 2001:DB8:ACAD:10D1::D1(12)
IPV6 GigabitEthernet0/0/1 FE80::D1:1(3)
IPV6 GigabitEthernet0/0/1 FFFF::(3)
IP Serial0/1/1 point2point(13)
IPV6 Serial0/1/1 point2point(13)

b. Expand this a bit and issue the command show adjacency detail, and you will see that the router has precompiled
the Layer 2 headers and other details to allow it to package information quickly.
R1# show adjacency detail
Protocol Interface Address
IP GigabitEthernet0/0/1 10.1.13.13(11)
20 packets, 1680 bytes
epoch 0
sourced in sev-epoch 0
Encap length 14
001AE3CFB8C37079B39236410800
L2 destination address byte offset 0
L2 destination address byte length 6
Link-type after encap: ip
ARP
IP GigabitEthernet0/0/1 227.0.0.0(3)
connectionid 1
0 packets, 0 bytes
epoch 0
sourced in sev-epoch 0
Encap length 14
01005E0000007079B39236410800
L2 destination address byte offset 0
L2 destination address byte length 6
Link-type after encap: ip
Inject p2mp Multicast
IPV6 GigabitEthernet0/0/1 2001:DB8:ACAD:10D1::D1(12)
5 packets, 570 bytes
epoch 0
sourced in sev-epoch 0
Encap length 14
001AE3CFB8C37079B392364186DD

© 2019 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 7 www.netacad.com
Lab - Implement Inter-VLAN Routing

L2 destination address byte offset 0


L2 destination address byte length 6
Link-type after encap: ipv6
IPv6 ND
IPV6 GigabitEthernet0/0/1 FE80::D1:1(3)
0 packets, 0 bytes
epoch 0
sourced in sev-epoch 0
Encap length 14
001AE3CFB8C37079B392364186DD
L2 destination address byte offset 0
L2 destination address byte length 6
Link-type after encap: ipv6
IPv6 ND
IPV6 GigabitEthernet0/0/1 FFFF::(3)
connectionid 1
8 packets, 720 bytes
epoch 0
sourced in sev-epoch 0
Encap length 14
3333000000007079B392364186DD
L2 destination address byte offset 0
L2 destination address byte length 6
Link-type after encap: ipv6
Inject p2mp Multicast
IP Serial0/1/1 point2point(13)
8 packets, 512 bytes
epoch 0
sourced in sev-epoch 0
Encap length 4
0F000800
P2P-ADJ
IPV6 Serial0/1/1 point2point(13)
18599 packets, 1756190 bytes
epoch 0
sourced in sev-epoch 0
Encap length 4
0F0086DD

© 2019 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 7 www.netacad.com

You might also like