Вы находитесь на странице: 1из 6

Lab ID: 9.9K1116A027.SNI2.

Configuring VTP Client Mode on Switches


Objective
Configure VLAN Trunking Protocol (VTP) on a switch. Test virtual LAN (VLAN) updates from one switch
configured as a VTP server. Prevent a second switch from creating VLANs.

Lab Topology
The topology diagram below represents the NetMap in the Simulator.

Fa0/1 Fa0/11 Fa0/11 Fa0/1


Switch1 Switch2
HostA Fa0/12 Fa0/12 HostB

Command Summary
Command Description
configure terminal enters global configuration mode from privileged EXEC mode
enable enters privileged EXEC mode
end ends and exits configuration mode
exit exits one level in the menu structure
hostname host-name sets the device name
interface type number changes from global configuration mode to interface
configuration mode
show running-config displays the active configuration file
show vlan brief displays parameters for all VLANs; contains the VLAN name,
status, and ports assigned to it
show vtp status displays VTP configuration
switchport mode trunk assigns a trunk port
switchport trunk encapsulation dot1q sets the trunk encapsulation format to 802.1Q
vlan vlan-id creates a VLAN
vtp domain domain-name assigns the domain name for VTP
vtp mode [client | server | configures the VTP mode
transparent]

1 Boson NetSim Lab Manual


The IP addresses and subnet masks used in this lab are shown in the table below:

IP Addresses
Device Interface IP Address Subnet Mask
Switch1 VLAN 1 192.168.100.101 255.255.255.0
Switch2 VLAN 1 192.168.100.102 255.255.255.0
HostA - 192.168.100.1 255.255.255.0
HostB - 192.168.100.2 255.255.255.0

Lab Tasks
1. Configure Switch1 with the appropriate host name. Configure the Fast Ethernet 0/11 and Fast
Ethernet 0/12 interfaces to always be trunks.

2. Configure Switch2 with the appropriate host name. Configure the Fast Ethernet 0/11 and Fast
Ethernet 0/12 interfaces to always be trunks.

3. On Switch1 and Switch2, configure the VTP domain name to be cisco.

4. On Switch1, verify that the switch is configured as a VTP server.

5. Configure Switch2 as a VTP client, and verify the configuration by issuing the appropriate
commands. The VTP operating mode should now be set to Client.

6. On Switch2, verify that the VTP operating mode is set to Client.

7. On Switch1, create VLAN 10 and VLAN 100.

8. On Switch2, verify that the VLAN database update was received.

9. On Switch2, attempt to create VLAN 11. Was VLAN 11 created? ___________________________

Once you have completed this lab, be sure to check your work by using the grading function.
You can do so by clicking the Grade Lab icon ( ) in the toolbar or by pressing Ctrl+G.

2 Boson NetSim Lab Manual


Lab Solutions
1. Issue the following commands to configure a host name and to configure the FastEthernet interfaces
to always be trunks:

Switch(config)#hostname Switch1
Switch1(config)#interface fastethernet 0/11
Switch1(config-if)#switchport trunk encapsulation dot1q
Switch1(config-if)#switchport mode trunk
Switch1(config-if)#interface fastethernet 0/12
Switch1(config-if)#switchport trunk encapsulation dot1q
Switch1(config-if)#switchport mode trunk

2. Issue the following commands to configure a host name and to configure the FastEthernet interfaces
to always be trunks:

Switch(config)#hostname Switch2
Switch2(config)#interface fastethernet 0/11
Switch2(config-if)#switchport trunk encapsulation dot1q
Switch2(config-if)#switchport mode trunk
Switch2(config-if)#interface fastethernet 0/12
Switch2(config-if)#switchport trunk encapsulation dot1q
Switch2(config-if)#switchport mode trunk

3. On Switch1 and Switch2, issue the following commands to configure the VTP domain name:

Switch1(config)#vtp domain cisco

Switch2(config)#vtp domain cisco

4. On Switch1, issue the following command to verify that the switch is configured as a VTP server.
Sample output is below:

Switch1#show vtp status


VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 64
Number of existing VLANs : 5

VTP Operating Mode : Server


VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xEE 0xB3 0xDC 0x9F 0xE2 0xE0 0x25 0xDF
Configuration last modified by 0.0.0.0 at 3-1-93 04:55:57
Local updater ID is 0.0.0.0 (no valid interface found)

5. On Switch2, issue the following command to configure the switch as a VTP client:

Switch2(config)#vtp mode client

3 Boson NetSim Lab Manual


6. The VTP operating mode should now be set to Client. You can verify this by issuing the following
command:

Switch2#show vtp status


VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 64
Number of existing VLANs : 5

VTP Operating Mode : Client


VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xEE 0xB3 0xDC 0x9F 0xE2 0xE0 0x25 0xDF
Configuration last modified by 0.0.0.0 at 3-1-93 04:55:57
Local updater ID is 0.0.0.0 (no valid interface found)

7. On Switch1, issue the following commands to create VLAN 10 and VLAN 100:

Switch1(config)#vlan 10
VLAN 10 added:
Name:VLAN0010

Switch1(config-vlan)#vlan 100
VLAN 100 added:
Name:VLAN0100

8. On Switch2, issue the following command to verify that the VLAN database update was received.
Sample output is shown below:

Switch2#show vlan brief

VLAN Name Status Ports


---- -------------------- --------- -----------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10
10 VLAN0010 active
100 VLAN0100 active

1002 fddi-default active


1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

9. On Switch2, issue the following command to attempt to create VLAN 11. Since Switch2 is configured
as a VTP client, creating VLANs should be prohibited.

Switch2(config)#vlan 11
VTP VLAN configuration not allowed when device is in CLIENT mode.

4 Boson NetSim Lab Manual


Sample Configuration Scripts
Switch1 Switch1 (continued)
Switch1#show running-config interface FastEthernet0/8
Building configuration !
Current configuration : 940 bytes interface FastEthernet0/9
! !
Version 15.b interface FastEthernet0/10
service timestamps debug uptime !
service timestamps log uptime interface FastEthernet0/11
no service password-encryption switchport mode trunk
! !
hostname Switch1 interface FastEthernet0/12
! switchport mode trunk
ip subnet-zero !
! interface Vlan 1
ip cef no ip address
no ip domain-lookup no ip route-cache
spanning-tree mode pvst !
spanning-tree extend system-id vlan 10 name VLAN0010
! vlan 100 name VLAN0100
interface FastEthernet0/1 !
! ip classless
interface FastEthernet0/2 no ip http server
! !
interface FastEthernet0/3 line con 0
! line aux 0
interface FastEthernet0/4 line vty 0 15
! login
interface FastEthernet0/5 !
! no scheduler allocate
interface FastEthernet0/6 end
!
interface FastEthernet0/7
!

5 Boson NetSim Lab Manual


Switch2 Switch2 (continued)
Switch2#show running-config interface FastEthernet0/8
Building configuration... !
Current configuration : 640 bytes interface FastEthernet0/9
! !
Version 15.b interface FastEthernet0/10
service timestamps debug uptime !
service timestamps log uptime interface FastEthernet0/11
no service password-encryption switchport mode trunk
! !
hostname Switch2 interface FastEthernet0/12
! switchport mode trunk
ip subnet-zero !
! interface Vlan 1
ip cef no ip address
no ip domain-lookup no ip route-cache
spanning-tree mode pvst !
spanning-tree extend system-id vlan 10 name VLAN0010
! vlan 100 name VLAN0100
interface FastEthernet0/1 !
! ip classless
interface FastEthernet0/2 no ip http server
! !
interface FastEthernet0/3 line con 0
! line aux 0
interface FastEthernet0/4 line vty 0 15
! login
interface FastEthernet0/5 !
! no scheduler allocate
interface FastEthernet0/6 end
!
interface FastEthernet0/7
!

Copyright © 1996–2017 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.

6 Boson NetSim Lab Manual

Вам также может понравиться