Configure Inter VLAN Routing
Configure Inter VLAN Routing
Objective
Create a basic switch configuration and verify it.
Create multiple VLANs, name them and assign multiple member ports
to them.
Create a basic configuration on a router.
Create an 802.1q trunk line between the switch and router to allow
communication between VLANs.
Test the routing functionality.
Background/Preparation
When managing a switch, the Management Domain is always VLAN 1.
The Network Administrator's workstation must have access to a port in
the VLAN 1 Management Domain. All ports are assigned to VLAN 1 by
default. This lab will also help demonstrate how VLANs can be used to
separate traffic and reduce broadcast domains.
Note: The router used must have a Fast Ethernet interface in order to
support trunking and inter-VLAN routing.
Switch_A#configure terminal
Switch_A(config)#interface fastethernet 0/5
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#interface fastethernet 0/6
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#interface fastethernet 0/7
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#interface fastethernet 0/8
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#end
Switch_A(config)#interface fastethernet0/1
Switch_A(config-if)#switchport mode trunk
Switch_A(config-if)#switchport trunk encapsulation dot1q
Switch_A(config-if)#end
Hostname is Router_A
Console, VTY, and enable passwords are cisco.
Enable secret password is class.
b. Then configure the Fast Ethernet interface using the following
commands:
Router_A(config-subif)#end
Once the steps are complete, logoff by typing exit, and turn all the
devices off. Then remove and
store the cables and adapter.
To power cycle the switch, remove the power cord from the back of the
switch or unplug it. Then plug it back in.
If the VLAN information was successfully deleted in Step 2, go to Step 5
and restart the switch using the reload command.