LAB 12 - Trunking Router to switch with voice vlan and data vlan
LAB 12 - Trunking Router to switch with voice vlan and data vlan
Rack # : ------------------
Network Connectivity
Equipment Required
This lab uses the following equipment:
• Cisco router
• PC for testing
• Cisco IP Phone (optional, but useful if switch supports Power over Ethernet [PoE])
Learning Objectives
Network Diagram
This document uses the network setup shown in the diagram below.
LAB 6-New Exercise, VLANs and DHCP:
Z= Rack#
Rack # = ---------------------------
Voice Data = ---------------------------
Voice VLAN = ---------------------------
Successful lab would be able to Ping Station1 from Station 2 and vice versa
Note:
Make sure you add the configurations of the router, Also add screen captures to proof
that your configuration is correct, and your phones are actually ringing to the end of
this document.
1- Use console cable to connect to R1 console port and open a Terminal services
software and connect via Serial port ( COM1: )
2- Make sure to set the font size of the terminal software.
( in the terminal software click Setup > Font > size 11 > apply)
3- Couple of <Enter>’s to set the screen font size and get in the router console.
Step 1: Configuration of Switch
1- Enable <Enter>
2- Use the following procedure to clean the router configurations
Write Erase <Enter>
Confirm? Yes <Enter>
Reload <Enter>
Are you sure you want to reload? Yes <Enter>
Save startup configuration? No <Enter>
Note: The following screen captures show the commands that were entered on the 3512XL switch. Comments
between the commands are added in blue italics to explain certain commands and steps.
switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)#hostname Switch-RackZ (Where Z is the Rack number)
switch(config)#enable password cisco
switch(config)#line vty 0 4
switch(config-line)#login
switch(config-line)#password cicso
switch(config-line)#exit
switch(config)#no logging console
switch(config)#^Z
switch(config)#end
switch#vlan database
switch(vlan)#vtp transparent
Setting device to VTP TRANSPARENT mode.
switch(vlan)#vlan 2
VLAN 2 added:
Name: VLAN-Z2 (Where Z is the rack number)
switch(vlan)#exit
APPLY completed.
Exiting....
switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fastEthernet 0/1
Switch(config-if)#switchport mode trunk
!-- Enter the trunking encapsulation as either dot1q
!-- The following set of commands will place FastEthernet 0/2 !-- into VLAN2 and enable portfast on the interface.
!-- FastEthernet 0/3 is already in VLAN1 by default. !-- Enable portfast on the interface.
!-- For details on why to enable portfast, !-- refer to: !-- Using PortFast and Other Commands to Fix Workstation Startup Connectivity
Delays. !-- Remember to save the configuration.
3512xl#write memory
Building configuration...
Step 2: Configuration of Router:
1- Enable <Enter>
2- Use the following procedure to clean the router configurations
Write Erase <Enter>
Confirm? Yes <Enter>
Reload <Enter>
Are you sure you want to reload? Yes <Enter>
Save startup configuration? No <Enter>
!-- Set the privileged mode !-- and Telnet password on the router.
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Routes-Z (Where Z is your Rack number)
c2600#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
!-- Select FastEthernet 0/0 for the trunk configuration. !-- No L2 or Layer 3 (L3) configuration is done here.
!-- Enable trunking on the sub-interface FastEthernet 0/0.1. !-- Note that actual trunks are configured on the sub-interfaces.
!-- or as dot1q: !-- In case of dot1q, you need to make sure that !-- the native VLAN matches across the link. !-- On 3512XL, by default,
the native VLAN is 1. !-- On the router, configure VLAN1 as the native VLAN.
c2600(config-subif)#encapsulation dot1Q 1 ?
native Make this is native vlan
<cr>
c2600(config-subif)#encapsulation dot1Q 1 native
!-- On the switch, if you have a native VLAN other than VLAN1, !-- on the router, configure the same VLAN to be the native VLAN, !-- by
using the above command.
Note: The encapsulation dot1Q 1 native command was added in Cisco IOS version 12.1(3)T. If you are using an
earlier version of Cisco IOS, refer to the 802.1Q configuration for Cisco IOS Versions Earlier than 12.1(3)T section
of this document to configure 802.1Q trunking on the router.
!-- Configure L3 information on the sub-interface 0/0.1.
!-- Enable trunking on the sub-interface FastEthernet 0/0.2. !-- Note that actual trunks are configured on the sub-interfaces.
c2600(config-subif)#encapsulation dot1Q 2
c2600#write memory
Building configuration...
[OK]
c2600#
3- Check DHCP IPs on the Router (it should show 2 ip’s one from each vlan
network)
Show IP DHCP binding (insert Screen capture)
7- If all steps are successful and you can ping successfully (with screen
captures) Issue Show running config on both router and switch
Appendix 1:
In case of issues use the following to troubleshooting:
...(output suppressed)
show vtp status
This command is used to check the VLAN trunking protocol (VTP) configuration on the switch. In our
example, we have used transparent mode. The correct VTP mode depends on the topology of your
network. For details on VTP, refer to Creating and Maintaining VLANs on Catalyst 2900XL and 3500XL
Switches.
3512xl#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 254
Number of existing VLANs : 6
VTP Operating Mode : Transparent
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xC3 0x71 0xF9 0x77 0x2B 0xAC 0x5C 0x97
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Cisco 2600 Router
show vlan
This command tells you what L2 or L3 information is configured for each VLAN.
c2600#show vlan