0% found this document useful (0 votes)
6 views8 pages

04 BCMSN VTP

Uploaded by

imed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views8 pages

04 BCMSN VTP

Uploaded by

imed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

BCMSN LAB 4

VTP Configuration

Lab 4: VTP Configuration


Objective
Assign a VTP domain, and verify VLANs and VTP domain configuration.

Lab Topology
For this lab, your network design will include two pods of devices. You will be responsible for
configuring the devices in both pods. The devices on the left side of the topology are in Pod 1.
The devices on the right side of the topology are in Pod 2. P1PC1 and P2PC2 are PC workstations.
P1ASW1 and P2ASW2 are access-layer switches. P1DSW1 and P2DSW2 are distribution-layer
switches. The access and distribution layers are two of the three layers in the Cisco three-layer
hierarchical network model, which also includes the core layer.
The Topology diagram below represents the NetMap in the Simulator. To access each of the
devices from within the Simulator, select the device name from the appropriate menu in the
Simulator. For example, to access P1ASW1, click the eSwitches button and select P1ASW1 from
the drop-down menu.

P1PC1 172.16.1.1 P2PC2 172.16.2.2

Fa0/5 Fa0/5

P1ASW1 172.16.1.10 P2ASW2 172.16.1.20

Fa0/1 Fa0/2 Fa0/3 Fa0/4 Fa0/1 Fa0/2 Fa0/3 Fa0/4

Fa0/1 Fa0/2 Fa0/3 Fa0/4 Fa0/1 Fa0/2 Fa0/3 Fa0/4

Fa0/11 Fa0/11

P1DSW1 Fa0/12 Fa0/12 P2DSW2


172.16.1.100 172.16.1.200

Boson NetSim for CCNP Lab Manual 163


BCMSN LAB 4
VTP Configuration

Command Summary
Command Description
vlan vlan_id creates a VLAN
name vlan_name names a VLAN
show vlan shows VLAN information
shutdown disables an interface
no shutdown enables an interface
vtp mode [client | server | transparent] sets VTP mode
show vtp status displays VTP configuration
switchport access vlan vlan_id assigns the default VLAN for a port
switchport mode access assigns an access port
switchport mode trunk assigns a trunk port
switchport nonegotiate disables VTP
switchport trunk allowed vlan remove vlan_list removes VLANs from a trunk port
switchport trunk encapsulation dot1q configures trunk for 802.1Q encapsulation
switchport trunk encapsulation isl configures trunk for ISL encapsulation
switchport trunk allowed vlan allows VLANs to be carried by trunk; 1, 1002-1005 required
vlan database enters VLAN database configuration mode
vtp domain domain_name assigns the domain name for VTP
vtp mode [client | server | transparent ] configures the VTP mode
show interfaces interface_id switchport shows the switchport configuration
ping ip_address sends an ICMP echo request

Lab Tasks
In this lab, you will assign the PC routers to their own VLAN and learn how to provide reachability
between devices across a switched LAN. This lab continues from BCMSN Lab 3: Trunking. For your
convenience, the required initial configurations will be loaded into all devices at the start of the lab.
1. Configure the ASWs and DSWs to be VTP clients.
2. Verify that the ASWs are VTP clients. Use the show vtp status command.
3. Attempt to create a new VLAN using 10 plus the number of the PC router. For example,
create VLAN 11 for P1PC1 and VLAN 12 for P2PC2. Were you successful? Why not?
______________________________________________________________
4. Configure the ASWs to be VTP transparent.
5. Verify that the ASWs are VTP transparent.
6. Try again to create VLAN 11 for P1PC1 and VLAN 12 for P2PC2.
7. Verify that the VLANs exist. Use the show vlan command on the ASWs.

164 Boson NetSim for CCNP Lab Manual


BCMSN LAB 4
VTP Configuration

8. Assign the ports that connect the ASWs to the PC routers to their respective VLANs.
9. On the ASWs, shut down interface VLAN 99.
10. Create new VLAN interfaces on the ASWs for the new VLANs of the PC routers. Assign
an IP address of 172.16.x.y, where x is the VLAN number and y is the ASW number.
For example, the IP address for the VLAN 11 interface on P1ASW1 will be 172.16.11.1
255.255.0.0. Enable the new interfaces.
11. Verify that the PC routers can ping the new VLAN interfaces.
12. Configure all of the trunk ports on the ASWs and DSWs to carry all VLANs.
13. Verify that the trunks allow all VLANs. Use the show interfaces interface_id
switchport command.
14. Check to see whether the DSWs have learned the new VLANs. Have they? Why not?
_____________________________________________________________
15. Assign a VTP domain name of cisco to the ASWs and DSWs.
16. Configure the ASWs as the VTP servers.
17. Verify that the ASWs are servers in the cisco domain. Use the show vtp status command.
18. Verify that the DSWs now know the new VLANs.

Lab Solutions
1. P1ASW1(config)#vtp mode client
P1DSW1(config)#vtp mode client
2. P1ASW1#show vtp status
VTP Version :2
Configuration Revision :2
Maximum VLANs supported locally : 64
Number of existing VLANs :6
VTP Operating Mode : Client
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x83 0x69 0xDF 0xEE 0xD3 0x5D 0x6D 0xCB
Configuration last modified by 172.16.99.10 at 3-1-93 03:14:15
3. P1ASW1(config)#vlan 11
VTP VLAN configuration is not allowed when device is in CLIENT mode.
4. P1ASW1(config)#vtp mode transparent
5. P1ASW1#show vtp status
VTP Version :2
Configuration Revision :0
Maximum VLANs supported locally : 64

Boson NetSim for CCNP Lab Manual 165


BCMSN LAB 4
VTP Configuration

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 : 0x83 0x69 0xDF 0xEE 0xD3 0x5D 0x6D 0xCB
Configuration last modified by 172.16.99.10 at 3-1-93 03:14:15
6. P1ASW1(config)#vlan 11
7. P1ASW1#show vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10, Fa0/11, Fa0/12
11 VLAN11 active
99 VLAN0099 active Fa0/5
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
(output omitted)
8. P1ASW1(config)#interface fastEthernet 0/5
P1ASW1(config-if)#switchport access vlan 11
9. P1ASW1(config)#interface vlan 99
P1ASW1(config-if)#shut
10. P1ASW1(config)#interface vlan 11
P1ASW1(config-if)#ip address 172.16.11.1 255.255.0.0
P1ASW1(config-if)#no shut
11. C:>ping 172.16.11.1
Pinging 172.16.11.1 with 32 bytes of data:
Reply from 172.16.11.1: bytes=32 time=60ms TTL=241
(output omitted)
Ping statistics for 172.16.11.1: Packets: Sent = 5, Received = 5, Lost = 0
(0% loss),
Approximate round trip times in milli-seconds:
Minimum = 50ms, Maximum = 60ms, Average = 55ms
12. P1ASW1(config)#interface range fastethernet 0/1 – 4
P1ASW1(config-if-range)#switchport trunk allowed vlan all

166 Boson NetSim for CCNP Lab Manual


BCMSN LAB 4
VTP Configuration

13. P1ASW1#show interfaces switchport


Name: Fa0/1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1
Trunking Native Mode VLAN: 1
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Voice VLAN: none (Inactive)
Appliance trust: none
14. No, the DSWs have not learned the VLANs because the ASWs are in VTP transparent
mode. VLANs are only advertised in VTP server mode.
P1DSW1#show vlan
15. P1ASW1(config)#vtp domain cisco
16. P1ASW1(config)#vtp mode server
17. P1ASW1#show vtp status
VTP Version :2
Configuration Revision :0
Maximum VLANs supported locally : 64
Number of existing VLANs :7
VTP Operating Mode : Server
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xD8 0x0C 0x7E 0x13 0xD1 0x20 0x25 0x80
Configuration last modified by 0.0.0.0 at 3-1-93 00:43:16
Local updater ID is 172.16.99.10 on interface Vl99 (lowest numbered
VLAN interface found)
18. P1DSW1#show vlan

Boson NetSim for CCNP Lab Manual 167


BCMSN LAB 4
VTP Configuration

Sample Configuration Scripts


P1PC1
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname C:
!
ip subnet-zero
!
interface Ethernet0
ip address 172.16.1.1 255.255.0.0
no ip directed-broadcast
!
ip classless
no ip http server
!
ip route 0.0.0.0 0.0.0.0 172.16.1.100
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end
exit

168 Boson NetSim for CCNP Lab Manual


BCMSN LAB 4
VTP Configuration

Sample Configuration Scripts


P1ASW1 P1ASW1 (Continued)
version 12.1 no ip address
hostname P1ASW1 !
! interface FastEthernet0/8
enable password cisco switchport mode access
! no ip address
ip subnet-zero !
no ip domain-lookup interface FastEthernet0/9
! switchport mode access
interface FastEthernet0/1 no ip address
description P1ASW1 to P1DSW1 !
switchport mode trunk interface FastEthernet0/10
no ip address switchport mode access
duplex full no ip address
speed 100 !
! interface FastEthernet0/11
interface FastEthernet0/2 switchport mode access
description P1ASW1 to P1DSW1 no ip address
switchport mode trunk !
no ip address interface FastEthernet0/12
duplex full switchport mode access
speed 100 no ip address
! !
interface FastEthernet0/3 interface Vlan1
description P1ASW1 to P2DSW2 no ip address
switchport mode trunk no ip route-cache
no ip address shutdown
duplex full !
speed 100 interface Vlan11
! ip address 172.16.11.10 255.255.0.0
interface FastEthernet0/4 no ip route-cache
description P1ASW1 to P2DSW2 !
switchport mode trunk interface Vlan99
no ip address ip address 172.16.99.10 255.255.0.0
duplex full no ip route-cache
speed 100 shutdown
! !
interface FastEthernet0/5 ip http server
description student P1PC1 on P1ASW1 !
switchport access vlan 11 line con 0
switchport mode access password cisco
no ip address login
speed 10 line vty 0 4
! password cisco
interface FastEthernet0/6 login
no ip address line vty 5 15
! login
interface FastEthernet0/7 !
switchport mode access end

Boson NetSim for CCNP Lab Manual 169


BCMSN LAB 4
VTP Configuration

Sample Configuration Scripts


P1DSW1 P1DSW1 (Continued)
version 12.1 no ip address
! !
hostname P1DSW1 interface FastEthernet0/9
! no ip address
ip subnet-zero !
no ip domain-lookup interface FastEthernet0/10
! no ip address
interface FastEthernet0/1 !
description P1DSW1 to P1ASW1 interface FastEthernet0/11
switchport trunk encapsulation dot1q switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,99,1002-1005 switchport trunk allowed vlan 1,99,1002-1005
no ip address switchport mode trunk
duplex full no ip address
speed 100 !
! interface FastEthernet0/12
interface FastEthernet0/2 switchport trunk encapsulation dot1q
description P1DSW1 to P1ASW1 switchport trunk allowed vlan 1,99,1002-1005
switchport trunk encapsulation dot1q switchport mode trunk
switchport trunk allowed vlan 1,99,1002-1005 no ip address
no ip address !
duplex full interface GigabitEthernet0/1
speed 100 no ip address
! !
interface FastEthernet0/3 interface GigabitEthernet0/2
description P1DSW1 to P2ASW2 no ip address
switchport trunk encapsulation dot1q !
switchport trunk allowed vlan 1,99,1002-1005 interface Vlan1
no ip address ip address 172.16.1.100 255.255.0.0
duplex full shutdown
speed 100 !
! interface Vlan99
interface FastEthernet0/4 ip address 172.16.99.100 255.255.0.0
description P1DSW1 to P2ASW2 !
switchport trunk encapsulation dot1q ip classless
switchport trunk allowed vlan 1,99,1002-1005 ip http server
no ip address !
duplex full line con 0
speed 100 password cisco
! login
interface FastEthernet0/5 line vty 0 4
no ip address password cisco
! login
interface FastEthernet0/6 line vty 5 15
no ip address login
! !
interface FastEthernet0/7 end
no ip address
!
interface FastEthernet0/8

170 Boson NetSim for CCNP Lab Manual

You might also like