0% found this document useful (0 votes)
25 views

LAB 12 - Trunking Router to switch with voice vlan and data vlan

Uploaded by

rahul1121838
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

LAB 12 - Trunking Router to switch with voice vlan and data vlan

Uploaded by

rahul1121838
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Lab 6 - New

Student Name: ------------------

Student ID: ------------------

Rack # : ------------------

Network Connectivity
Equipment Required
This lab uses the following equipment:

• Cisco router

• Switch that supports voice VLANs

• PC for testing

• Cisco IP Phone (optional, but useful if switch supports Power over Ethernet [PoE])

Learning Objectives

Upon completion of this lab, you will be able to

• Perform basic router and switch configuration

• Configure VLANs to support data, voice, and network management traffic

• Configure VLAN trunking between a router and a switch using subinterfaces

• Configure router-based DHCP pools for voice and data devices

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 = ---------------------------

Use the following table :


Configurations
This document uses the configurations shown below.
Note: Router models with certain network modules may have different minimum Cisco IOS versions that
support ISL trunking.
 Catalyst 3512-XL
 Cisco 2600 Router
 802.1Q Configuration on the Router for Cisco IOS Versions Earlier than 12.1(3)T

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.

!-- Set the privileged mode

!-- and Telnet password on the switch.

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.

!-- Adding VLAN2. VLAN1 already exists by default.

switch(vlan)#vlan 2
VLAN 2 added:
Name: VLAN-Z2 (Where Z is the rack number)
switch(vlan)#exit
APPLY completed.
Exiting....

!-- Enable trunking on the interface fastEthernet 0/1.

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

switch(config-if)#switchport trunk encapsulation dot1q

!-- The following set of commands will place FastEthernet 0/2 !-- into VLAN2 and enable portfast on the interface.

3512xl(config)#int fastEthernet 0/2


3512xl(config-if)#switchport access vlan 2
3512xl(config-if)#spanning-tree portfast
3512xl(config-if)#exit

!-- FastEthernet 0/3 is already in VLAN1 by default. !-- Enable portfast on the interface.

3512xl(config)#int fastEthernet 0/3


3512xl(config-if)#spanning-tree portfast
3512xl(config-if)#^Z

!-- 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(config)#enable password cisco


c2600(config)#line vty 0 4
c2600(config-line)#login
c2600(config-line)#password cisco
c2600(config-line)#exit
c2600(config)#no logging console
c2600(config)#^Z

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.

c2600(config)#int fastEthernet 0/0


c2600(config-if)#no shut
c2600(config-if)#exit

!-- Enable trunking on the sub-interface FastEthernet 0/0.1. !-- Note that actual trunks are configured on the sub-interfaces.

c2600(config)#int fastEthernet 0/0.1

!-- 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.

c2600(config-subif)#ip address 10.1.Z1.1 255.255.255.0


c2600(config-subif)#exit

!-- Enable trunking on the sub-interface FastEthernet 0/0.2. !-- Note that actual trunks are configured on the sub-interfaces.

c2600(config)#int fastEthernet 0/0.2

c2600(config-subif)#encapsulation dot1Q 2

!-- Configure L3 information on the sub-interface 0/0.2.

c2600(config-subif)#ip address 10.1.Z2.1 255.255.255.0


c2600(config-subif)#exit
c2600(config)#^Z

! ---- configuration of DHCP Ranges for Vlan 1 and Vlan 2

Router(config)# ip dhcp excluded-address 10.1.Z1.1 10.1.Z1.10

Router(config)# ip dhcp pool Vlan1

Router(config)# Network 10.1.Z1.0 255.255.255.0

Router(config)# default-Router 10.1.Z1.1

Router(config)# ip dhcp excluded-address 10.1.Z2.1 10.1.Z1.10

Router(config)# ip dhcp pool Vlan2

Router(config)# Network 10.1.Z2.0 255.255.255.0

Router(config)# default-Router 10.1.Z2.1

!-- Remember to save the configuration.

c2600#write memory
Building configuration...
[OK]
c2600#

Step 3: Checking your configuration:


1- Check the interfaces on the Router
Show IP interface Brief (insert Screen capture)
2- Make sure to open a dos window on machines and do
Ipconfig /renew on both machines

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)

4- Ping from Station 1 to Router sub-interface 1


Sucessful?? (insert Screen capture here)

5- Ping from Station 1 to Router sub-interface 2


Sucessful?? (insert Screen capture here)

6- Ping from PC1 (on vlan 1) to PC2 (on vlan2)


Sucessful?? (insert Screen capture here)

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:

debug and show Commands


This section provides information you can use to confirm your configuration is working properly.
Certain show commands are supported by the Output Interpreter Tool (registered customers only) , which
allows you to view an analysis of show command output.
On the Catalyst 2900XL/3500XL/2940/2950/2970 switch, use the following commands:
 show int {FastEthernet | GigabitEthernet} <module/port> switchport
 show vlan
 show vtp status
On the Cisco 2600 router, use the following commands:
 show vlan
 show interface
Sample show Command Output
Catalyst 3500XL Switch
show int {FastEthernet | GigabitEthernet} <module/port> switchport
This command is used to check the administrative and operational status of the port. It is also used to
make sure that the native VLAN matches on both sides of the trunk. The native VLAN is used for
untagged traffic when the port is in 802.1Q trunking mode. Refer to Creating and Maintaining VLANs on
Catalyst 2900XL and 3500XL Switches for details on native VLANs.
3512xl#show int fastEthernet 0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: isl
Operational Trunking Encapsulation: isl
Negotiation of Trunking: Disabled
Access Mode VLAN: 0 ((Inactive))
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Trunking VLANs Active: 1,2
Pruning VLANs Enabled: 2-1001

Priority for untagged frames: 0


Override vlan tag priority: FALSE
Voice VLAN: none
Appliance trust: none
Note: For 802.1Q trunking, the output of the above command changes as follows:
3512xl#show int fastEthernet 0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Disabled
Access Mode VLAN: 0 ((Inactive))
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Trunking VLANs Active: 1,2
Pruning VLANs Enabled: 2-1001

Priority for untagged frames: 0


Override vlan tag priority: FALSE
Voice VLAN: none
show vlan
This command is used to verify that the interfaces (ports) belong to the correct VLAN. In our example,
only interface Fa0/2 belongs to VLAN2. The rest are members of VLAN1.
3512xl#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6,
Fa0/7, Fa0/8, Fa0/9, Fa0/10,
Fa0/11, Fa0/12, Gi0/1, Gi0/2
2 VLAN0002 active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

...(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

Virtual LAN ID: 1 (Inter Switch Link Encapsulation)


vLAN Trunk Interface: FastEthernet0/0.1

Protocols Configured: Address: Received: Transmitted:


IP 10.10.10.1 40 38

Virtual LAN ID: 2 (Inter Switch Link Encapsulation)

vLAN Trunk Interface: FastEthernet0/0.2

Protocols Configured: Address: Received: Transmitted:


IP 10.10.11.1 9 9
Note: For 802.1Q trunking, the output of the above command changes as follows:
c2600#show vlan

Virtual LAN ID: 1 (IEEE 802.1Q Encapsulation)

vLAN Trunk Interface: FastEthernet0/0.1

This is configured as native Vlan for the following interface(s): FastEthernet0/0

Protocols Configured: Address: Received: Transmitted:


IP 10.10.10.1 0 2

Virtual LAN ID: 2 (IEEE 802.1Q Encapsulation)

vLAN Trunk Interface: FastEthernet0/0.2

Protocols Configured: Address: Received: Transmitted:


IP 10.10.11.1 42 19
Note: For 802.1Q trunking, with Cisco IOS versions earlier then 12.1(3)T, the output of the command
changes as follows:
c2600#show vlan

Virtual LAN ID: 2 (IEEE 802.1Q Encapsulation)

vLAN Trunk Interface: FastEthernet0/0.2

Protocols Configured: Address: Received: Transmitted:


IP 10.10.11.1 6 4
Note: No IEEE 802.1Q encapsulation is displayed for VLAN1 on any of the sub-interfaces.
show interface
This command is used to check the administrative and operational status of the interface.
c2600#show interfaces fastEthernet 0/0
FastEthernet0/0 is up, line protocol is up
Hardware is AmdFE, address is 0003.e36f.41e0 (bia 0003.e36f.41e0)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:07, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 1 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
217 packets input, 12884 bytes
Received 217 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog
0 input packets with dribble condition detected
45 packets output, 6211 bytes, 0 underruns(0/0/0)
0 output errors, 0 collisions, 4 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out

c2600#show interfaces fastEthernet 0/0.1


FastEthernet0/0.1 is up, line protocol is up
Hardware is AmdFE, address is 0003.e36f.41e0 (bia 0003.e36f.41e0)
Internet address is 10.10.10.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ISL Virtual LAN, Color 1.
ARP type: ARPA, ARP Timeout 04:00:00

c2600#show interfaces fastEthernet 0/0.2


FastEthernet0/0.2 is up, line protocol is up
Hardware is AmdFE, address is 0003.e36f.41e0 (bia 0003.e36f.41e0)
Internet address is 10.10.11.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ISL Virtual LAN, Color 2.
ARP type: ARPA, ARP Timeout 04:00:00
Note: For 802.1Q trunking, the output of the above command changes as follows:
c2600#show interfaces fastEthernet 0/0.1
FastEthernet0/0.1 is up, line protocol is up
Hardware is AmdFE, address is 0003.e36f.41e0 (bia 0003.e36f.41e0)
Internet address is 10.10.10.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 1.
ARP type: ARPA, ARP Timeout 04:00:00

c2600#show interfaces fastEthernet 0/0.2


FastEthernet0/0.2 is up, line protocol is up
Hardware is AmdFE, address is 0003.e36f.41e0 (bia 0003.e36f.41e0)
Internet address is 10.10.11.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 2.
ARP type: ARPA, ARP Timeout 04:00:00

You might also like