Activity-8 Configure Layer3 Switch Inter-VLAN Routing With Two Switches
Activity-8 Configure Layer3 Switch Inter-VLAN Routing With Two Switches
Activity-8 Configure Layer3 Switch Inter-VLAN Routing With Two Switches
Topology
Addressing Table
VLAN Table
Background / Scenario
A multilayer switch like the Cisco Catalyst 3560 is capable of both Layer 2 switching and Layer 3 routing.
One of the advantages of using a multilayer switch is this dual functionality. A benefit for a small to
medium-sized company would be the ability to purchase a single multilayer switch instead of separate
switching and routing network devices. Capabilities of a multilayer switch include the ability to route from
one VLAN to another using multiple switched virtual interfaces (SVIs), as well as the ability to convert a
Layer 2 switchport to a Layer 3 interface.
Instructions
Part 1:Build the Network and Configure Basic Device Settings
In Part 1, you will set up the network topology and configure basic settings on the PC hosts and
switches.
Step 1:Cable the network as shown in the topology.
Attach the devices as shown in the topology diagram, and cable as necessary.
Step 2:Configure basic settings for each switch (S1 and S2).
Open configuration window
switch> enable
2. Enter configuration mode.
switch# config terminal
3. Assign a device name to the switch.
switch(config)# hostname S1
switch(config)# hostname S2
4. Disable DNS lookup to prevent the router from attempting to translate incorrectly entered
commands as though they were host names.
S1(config)# no ip domain-lookup
S2(config)# no ip domain-lookup
5. Assign wmsu as the privileged EXEC encrypted password.
S1(config)# enable secret wmsu
1. Create and name the required VLANs on each switch from the table above.
S1(config)# vlan 99
S1(config-vlan)# name Management
S1(config-vlan)# vlan 10
S1(config-vlan)# name Student
S1(config-vlan)# vlan 20
S1(config-vlan)# name Faculty
S1(config-vlan)# vlan 30
S1(config-vlan)# name Staff
S1(config-vlan)# vlan 100
S1(config-vlan)# name Native
S2(config)# vlan 99
S2(config-vlan)# name Management
S2(config-vlan)# vlan 10
S2(config-vlan)# name Student
S2(config-vlan)# vlan 20
S2(config-vlan)# name Faculty
S2(config-vlan)# vlan 30
S2(config-vlan)# name Staff
S2(config-vlan)# vlan 100
S2(config-vlan)# name Native
2. Configure the management interface and default gateway on each switch using the IP
address information in the Addressing Table.
S1(config)# interface vlan 99
S1(config-if)# ip address 192.168.99.11 255.255.255.0
S1(config-if)# no shutdown
S1(config-if)# exit
S1(config)# ip default-gateway 192.168.99.1
S2(config)# interface vlan 99
S2(config-if)# ip address 192.168.99.12 255.255.255.0
S2(config-if)# no shutdown
S2(config-if)# exit
S2(config)# ip default-gateway 192.168.99.1
2. Issue the show vlan brief command and verify that the VLANs are assigned to the correct
interfaces.
1. Change the switchport mode on interface F0/1 to force trunking. Make sure to do this on
both switches.
S1(config)# interface f0/1
S1(config-if)# switchport mode trunk
S2(config)# interface f0/1
S2(config-if)# switchport mode trunk
2. As a part of the trunk configuration, set the native VLAN to 8 on both switches. You may
see error messages temporarily while the two interfaces are configured for different native
VLANs.
S1(config-if)# switchport trunk native vlan 100
S2(config-if)# switchport trunk native vlan 100
3. Issue the show interfaces trunk command to verify trunking ports, the Native VLAN and
allowed VLANs across the trunk.
S1# show interfaces trunk
Close configuration window
10 Student
20 Faculty
30 Staff
100 Native
a. From Student-1, ping Student-2 or MLS to verify connectivity within VLAN 10.
b. From Faculty-1, ping Faculty-1 or MLS to verify connectivity within VLAN 20.
c. From Staff-1, ping Staff-2 or MLS to verify connectivity within VLAN 30.
d. From S1, ping S2, S3, or MLS to verify connectivity with VLAN 99.
As part of trunk configuration, you may allow specific VLANs to cross the trunk and prohibit
other VLANs to cross the trunk (for this activity prohibit the default vlan 1 and Student vlan).
Issue the show interfaces trunk command to verify trunking ports, the Native VLAN and allowed VLANs
across the trunk.