Ccnpv7.1 Switch Lab3-1 Vlan-trunk-Vtp Instructor
Ccnpv7.1 Switch Lab3-1 Vlan-trunk-Vtp Instructor
Ccnpv7.1 Switch Lab3-1 Vlan-trunk-Vtp Instructor
1 SWITCH
Topology
Objectives
Setup a VTP v2 Domain.
Create and maintain VLANs.
Configure 802.1Q Trunking.
Setup a VTP v3 Domain.
Background
VLANs logically segment a network by function, team, or application, regardless of the physical location of the
users. End stations in a particular IP subnet are often associated with a specific VLAN. VLAN membership on a
switch that is assigned manually for each interface is known as static VLAN membership.
Trunking, or connecting switches, and the VLAN Trunking Protocol (VTP) are technologies that support VLANs.
VTP manages the addition, deletion, and renaming of VLANs on the entire network from a single switch.
Note: This lab uses Cisco Catalyst 3560 and 2960 switches running Cisco IOS 15.0(2)SE6 IP Services and LAN
Base images, respectively. The 3560 and 2960 switches are configured with the SDM templates “dual-ipv4-and-
ipv6 routing” and “lanbase-routing”, respectively. Depending on the switch model and Cisco IOS Software version,
the commands available and output produced might vary from what is shown in this lab. Catalyst 3650 switches
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
(running any Cisco IOS XE release) and Catalyst 2960-Plus switches (running any comparable Cisco IOS image)
can be used in place of the Catalyst 3560 switches and the Catalyst 2960 switches.
Required Resources
2 Cisco 2960 with the Cisco IOS Release 15.0(2)SE6 C2960-LANBASEK9-M or comparable
2 Cisco 3560v2 with the Cisco IOS Release 15.0(2)SE6 C3560-IPSERVICESK9-M or comparable
Computer with terminal emulation software
Ethernet and console cables
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
The interface VLAN 99 will not come up immediately, because the broadcast domain it is associated with
(VLAN 99) doesn’t exist on the switch. We will fix that in a few moments.
(Optional) On each switch, create an enable secret password and configure the VTY lines to allow remote
access from other network devices.
DLS1 example:
DLS1(config)# enable secret class
DLS1(config)# line vty 0 15
DLS1(config-line)# password cisco
DLS1(config-line)# login
Note: The passwords configured here are required for NETLAB compatibility only and are NOT
recommended for use in a live environment.
Note(2): For purely lab environment purposes, it is possible to configure the VTY lines so that they accept
any Telnet connection immediately, without asking for a password, and place the user into the privileged
EXEC mode directly. The configuration would be similar to the following example for DLS1:
DLS1(config)# enable secret class
DLS1(config)# line vty 0 15
DLS1(config-line)# no login
DLS1(config-line)# privilege level 15
VTP Server You can create, modify, and delete VLANs and specify other configuration parameters,
such as VTP version and VTP pruning, for the entire VTP domain. VTP servers
advertise their VLAN configuration to other switches in the same VTP domain and
synchronize their VLAN configuration with other switches based on advertisements
received over trunk links. VTP server is the default mode.
In VTP Server mode, VLAN configurations are only stored in the flash:vlan.dat file.
While VLANs are manipulated in the configuration mode, the configuration commands
do not appear in the running-config.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
A VTP client behaves like a VTP server and transmits and receives VTP updates on its
VTP Client trunks, but you cannot create, change, or delete VLANs on a VTP client. VLANs are
configured on another switch in the domain that is in server mode.
In VTP Client mode, VLAN configurations are only stored in the flash:vlan.dat file. The
configuration of VLANs does not appear in the running-config.
VTP Transparent VTP transparent switches do not participate in VTP. A VTP transparent switch does not
advertise its VLAN database nor synchronize its VLAN database based on received
advertisements. However, transparent switches forward received VTP messages under
two circumstances: either the VTP domain name of the transparent switch is empty (not
yet configured), or it matches the domain name in the received VTP messages.
In VTP Transparent mode, VLAN configurations are stored both in flash:vlan.dat file and
also are present in the running-config. If extended range VLANs are used, however,
they are stored in the flash:vlan.dat only if the switch is running VTP version 3.
VTP Off A switch in VTP Off mode functions in the same manner as a VTP transparent switch,
except that it does not forward VTP advertisements on trunks. VTP off is only available
on switches that support VTP version 3 although it is not necessary to run VTP version
3 on the switch to be able to put it into the Off mode.
In VTP Off mode, VLAN configurations are stored both in flash:vlan.dat file and also are
present in the running-config. If extended range VLANs are used, however, they are
stored in the flash:vlan.dat only if the switch is running VTP version 3.
In this lab we will demonstrate the configuration and operation of both VTP versions 2 and 3. We will do this by
first configuring VTP version 2 between DLS1 and ALS1, and then configuring DLS1, DLS2 and ALS2 with VTP
version 3.
Topology
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Feature VLAN:
--------------
VTP Operating Mode : Transparent
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
Configuration Revision : 0
MD5 digest : 0x57 0xCD 0x40 0x65 0x63 0x59 0x47 0xBD
0x56 0x9D 0x4A 0x3E 0xA5 0x69 0x35 0xBC
Because no VLAN configurations were made, all settings except the VTP mode that was changed in Lab 1
are the defaults. This switch is capable of running version 1, 2 or 3 of VTP and runs version 1 by default. All
switches in the VTP domain must run the same VTP version. The VTP mode is set to Transparent as a result
of steps performed in Lab 1. The number of existing VLANs is the five built-in VLANs. Different switches in the
Catalyst family support different numbers of local VLANs. The 3560 switch used in this lab supports a
maximum of 1,005 VLANs locally, while the 2960 switch used in this lab supports at most 255 VLANs. Lastly,
note that the configuration revision is 0.
As you should recall from CCNA, the configuration revision number is compared amongst VTPv1 or VTPv2
switches and the VLAN database from the switch with the highest revision number is adopted by all the other
switches in the VLAN management domain. Every time VLAN information is modified and saved in the VLAN
database (vlan.dat), the revision number is increased by one when the user exits from VLAN configuration
mode.
In VTPv3, revision numbers are still used but they no longer determine the switch whose database is going to
apply to the entire domain. Instead, a single designated switch in a VTP domain called the primary server is
allowed to assert its database in the entire VTP domain, even if its own revision number is lower. Other
switches that are not primary servers are not allowed to assert their databases even if their revision numbers
are higher.
Multiple switches in the VTP domain can be in VTP server mode. In VTPv1 and VTPv2, any of these server
switches can be used to manage all other switches in the VTP domain. In VTPv3, a single primary server for
a particular VTP domain is designated to control where changes originate from in the switched network. This
enables careful management and protection of the VLAN database.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
automatic VLAN database propagation. Because this password is set, VTPv2 will not allow ALS1 to
automatically learn the domain name once trunks are installed.
DLS1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
DLS1(config)# vtp domain SWLAB
Changing VTP domain name from NULL to SWLAB
DLS1(config)# vtp version 2
DLS1(config)# vtp mode server
Setting device to VTP Server mode for VLANS.
DLS1(config)# vtp password cisco123
Setting device VTP password to cisco123
DLS1(config)#
*Mar 1 00:29:10.895: %SW_VLAN-6-VTP_DOMAIN_NAME_CHG: VTP domain name changed to
SWLAB.
Verify these settings by using the show vtp status command again.
DLS1# show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : SWLAB
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 64a0.e72a.2200
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
Feature VLAN:
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
Configuration Revision : 0
MD5 digest : 0xA7 0xE6 0xAF 0xF9 0xFE 0xA0 0x88 0x6B
0x21 0x6D 0x70 0xEE 0x04 0x6D 0x90 0xF3
Suspending a VLAN deserves a special mention. Each VLAN has an operational state associated with it: it
can be either active (the default state) or suspended. A suspended VLAN exists but it does not operate.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Access ports assigned to a suspended VLAN drop all frames and are unable to communicate, similar to ports
put into a nonexistent VLAN. Putting a suspended VLAN back into the active state reinstates normal
communication on ports in that VLAN.
To globally suspend a VLAN, use the state suspend command in the VLAN configuration mode. This state
is propagated by VTP to all other switches in the VTP domain if VTP is in use.
To locally shut down a VLAN, use the shutdown command in the VLAN configuration mode. This setting is
not propagated through VTP.
Do not confuse the shutdown command in the VLAN configuration mode with the same command available
under interface Vlan mode, which has a different and unrelated meaning. Further discussion on
suspending and reactivating VLANs can be found in Part 3, Step 7 of this lab.
DLS1(config)# vlan 99
DLS1(config-vlan)# name MANAGEMENT
DLS1(config-vlan)# vlan 100
DLS1(config-vlan)# name SERVERS
DLS1(config-vlan)# vlan 110
DLS1(config-vlan)# name GUEST
DLS1(config-vlan)# vlan 120
DLS1(config-vlan)# name OFFICE
DLS1(config-vlan)# vlan 999
DLS1(config-vlan)# name PARKING_LOT
DLS1(config-vlan)# state suspend
DLS1(config-vlan)# vlan 666
DLS1(config-vlan)# name NATIVE_DO_NOT_USE
DLS1(config-vlan)# exit
The VLANs will not appear in the VLAN database until the exit command is issued.
After configuring the VLANs, issue the show vtp status command and you will see that the all-important
configuration revision number has increased based on these changes to the VLAN database. Note that the
revision number you have when performing this lab may be different.
DLS1#show vtp status | include Configuration Revision
Configuration Revision : 6
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
By default, all VLANs are allowed on all trunks. You can explicitly control which VLANs are allowed on a trunk
by using the switchport trunk allowed vlan vlan-id command on the interface at each end of the
trunk.
There are several approaches to deciding what VLANs to allow or disallow to cross the trunk. Common
practice is to disallow VLAN 1 and the PARKING_LOT vlan. You could go a step further and disallow any
unused VLAN numbers, but you would then have to modify all the trunks should you later add a new VLAN to
the network.
In this lab, disallowing the PARKING_LOT VLAN from all trunks is not really necessary since the VLAN has
been suspended. Disallowing the VLAN can serve as an additional protection against inadvertent reactivation
of this VLAN.
Disallowing VLAN 1, also referred to as VLAN 1 Minimization, excludes VLAN 1 from the trunk but does not
restrict layer 2 management traffic (such as CDP, LLDP, VTP, STP, etc) from passing.
Since only these 2 VLANs are being disallowed, the except option of the command can be used:
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Validate these settings by examining the switchport configuration for one of the trunk interfaces:
After activating the interfaces, use the show interface trunk command to see the status of the trunks.
You should see interfaces Fa0/7 and Fa0/8 in trunking mode.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 255
Number of existing VLANs : 5
Configuration Revision : 0
MD5 digest : 0x57 0xCD 0x40 0x65 0x63 0x59 0x47 0xBD
0x56 0x9D 0x4A 0x3E 0xA5 0x69 0x35 0xBC
Set the VTP password on ALS1 and the VLAN database will be synchronized. However before you can set
the password, the VTP domain name must be manually configured.
ALS1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
ALS1(config)# vtp domain SWLAB
Changing VTP domain name from NULL to SWLAB
ALS1(config)# vtp password cisco123
Setting device VTP password to cisco123
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
ALS1(config)# end
*Mar 1 00:27:21.902: %SW_VLAN-6-VTP_DOMAIN_NAME_CHG: VTP domain name changed to
SWLAB.
Now check the VTP status and you will see a revision number matching that of DLS1, and that VLANs 99,
100, 110, 120, 666 and 999 are all in the local VLAN database.
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 255
Number of existing VLANs : 11
Configuration Revision : 6
MD5 digest : 0xF3 0x8A 0xEA 0xFA 0x9B 0x39 0x6D 0xF5
0xA6 0x03 0x2F 0xB8 0x16 0xC1 0xE6 0x8C
VLAN 999 will be missing from the filtered output above because it only includes VLANs in active state and
VLAN 999 is suspended. Using the show vlan brief without filtering would show the VLAN 999.
You will also see that the configured VLANs except VLANs 1 and 999 are allowed over the trunks
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
You will also see that the state of interface VLAN 99 has changed to ‘up’
Because ALS1 is in VTP Client mode, local changes to the VLAN database cannot be made:
At this point, VTP version 2 is working and secured between DLS1 and ALS1. You should now be able to ping
DLS1 from ALS1 and vice versa.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
state is requested in privileged EXEC mode and is relinquished whenever another switch attempts to
become the primary server or when the switch is reloaded.
2. VTP version 3 has the ability to hide the VTP password. On a VTP version 1 or 2 switch, issuing the
command show vtp password will show the password to you in plain text. VTP version 3 allows
you to specify that the password be hidden in the output, preventing the password from being
inadvertently or maliciously divulged.
3. VTP version 3 can propagate information about extended-range VLANs; VLANs numbered between
1006 and 4094. To support these VLANs with VTP version 2, all switches had to be in transparent
mode and the VLANs had to be configured manually on a switch-by-switch basis.
4. VTP version 3 only supports pruning for normal-range VLANs.
5. VTP version 3 supports propagating Private VLAN information. As with extended-range VLANs, the
lack of PVLAN support in VTP version 2 required all switches to be transparent mode and manual
configuration at each switch.
6. VTP version 3 added support for opaque databases. In other words, VTP version 3 can transport
more than just the VLAN database between switches. The only option at this time is to share the
Multiple Spanning Tree (MSTP) database, but room was left for expansion. We will cover MSTP in a
later lab.
VTP version 3 is backwards compatible with VTP version 2; at the boundary of the two protocols, a VTP
version 3 switch will send out both version 3 and version 2-compatible messages. Version 2 messages
received by a version 3 switch are discarded.
DLS1 Configuration:
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Fa0/8 none
Fa0/9 none
Fa0/10 none
Fa0/11 none
Fa0/12 none
Feature VLAN:
--------------
VTP Operating Mode : Server
Number of existing VLANs : 5
Number of existing extended VLANs : 0
Maximum VLANs supported locally : 1005
Configuration Revision : 0
Primary ID : 0000.0000.0000
Primary Description :
MD5 digest :
Feature MST:
--------------
VTP Operating Mode : Transparent
Feature UNKNOWN:
--------------
VTP Operating Mode : Transparent
DLS2#
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Notice that the configuration revision number is zero and the number of local VLANs is the default of 5. There
has been no update because DLS1’s configuration revision number was reset to zero when the VTP version
was changed, so at this point DLS2 and ALS2 will not learn about the configured VLANs because as far as
they are concerned, they have the same database as DLS1.
If we attempt to add VLANs at DLS1, or any of the other VTP version 3 switches, our attempt will not work
and we will be told that we cannot add VLANs.
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 16 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Primary ID : e840.406f.7280
Primary Description : DLS1
DLS2#
The promotion of DLS1 to primary increments its configuration revision number to 1, so the VLANs that were
previously created on DLS1 are propagated to DLS2 and ALS2 automatically.
VLAN 999 will be missing from the filtered output above because it only includes VLANs in active state and
VLAN 999 is suspended. Using the show vlan brief without filtering would show the VLAN 999.
DLS1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
DLS1(config)# vlan 510
DLS1(config-vlan)# name TEST510
DLS1(config-vlan)# exit
DLS1(config)# vlan 511
DLS1(config-vlan)# name TEST511
DLS1(config-vlan)# exit
DLS1(config)# vlan 512
DLS1(config-vlan)# name TEST512
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 17 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
DLS1(config-vlan)# exit
DLS1(config)# vlan 513
DLS1(config-vlan)# name TEST513
DLS1(config-vlan)# exit
DLS1(config)# vlan 514
DLS1(config-vlan)# name TEST514
DLS1(config-vlan)# exit
DLS1(config)# vlan 515
DLS1(config-vlan)# name TEST515
DLS1(config-vlan)# exit
DLS1(config)# vlan 1500
DLS1(config-vlan)# name TEST-EXT-1500
DLS1(config-vlan)# exit
DLS1(config)# no vlan 510-514
DLS1(config)# end
DLS1#
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 18 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Alternatively, the VLAN can be shut down by issuing the shutdown command while in VLAN configuration
mode and then exiting.
Both these options are equivalent, however only the shutdown vlan command works in while in VTP
Client mode.
Shutdown the Guest VLAN 110 on ALS1, wait a few moments, exit the configuration mode and then issue the
show vlan brief command. The status should change to “act/lshut”.
Reactivate all ports in ALS1 Guest VLAN 110 using the no shutdown command in VLAN configuration
mode.
ALS1(config)# no shutdown vlan 110
As discussed and demonstrated in Part 2, Step 3 of this lab, you can put a VLAN into suspended status by
using the state suspend command while in VLAN configuration mode on a VTPv2 server switch or on the
VTPv3 primary server switch. In a mixed VTP version network, the suspension only works network-wide if it
originates from the VTPv3 primary server. Suspending a VLAN causes all ports in that VLAN throughout the
VTP domain to stop transferring data.
Suspend Guest VLAN 110 on DLS1, wait a few moments, exit VLAN configuration mode and then issue the
show vlan brief | include suspended command. The status should change show the VLAN as
suspended.
DLS1(config)# vlan 110
DLS1(config-vlan)# state ?
active VLAN Active State
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 19 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Issue the show vlan brief | include suspended command on another switch in the network, and you
will see that the VLAN status is suspended as well.
Reactivate VLAN 110 using the state active command in VLAN configuration mode.
DLS1(config)# vlan 110
DLS1(config-vlan)# state active
DLS1(config-vlan)# exit
DLS1(config)#
Issue the show vlan brief | include suspended command on another switch in the network, and you
will see that the VLAN status is no longer listed.
DLS2# show vlan brief | include suspended
999 PARKING_LOT suspended Fa0/1, Fa0/2, Fa0/3, Fa0/4
DLS2#
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 20 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
Device Configurations:
Below are the final configurations for each switch.
DLS1
DLS1# show run | exclude !
Building configuration...
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 21 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 22 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
shutdown
interface FastEthernet0/14
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/15
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/16
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/17
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/18
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/19
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/20
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/21
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/22
switchport access vlan 999
switchport mode access
switchport nonegotiate
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 23 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
shutdown
interface FastEthernet0/23
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/24
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface GigabitEthernet0/1
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface GigabitEthernet0/2
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface Vlan1
no ip address
interface Vlan99
ip address 10.1.99.101 255.255.255.0
ip http server
ip http secure-server
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
line vty 5 15
login
end
DLS2
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 24 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
hostname DLS2
boot-start-marker
boot-end-marker
no aaa new-model
system mtu routing 1500
no ip domain-lookup
ip domain-name CCNP.NET
spanning-tree mode pvst
spanning-tree extend system-id
vlan internal allocation policy ascending
interface FastEthernet0/1
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/2
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/3
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/4
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/5
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/6
shutdown
interface FastEthernet0/7
switchport trunk encapsulation dot1q
switchport trunk native vlan 666
switchport trunk allowed vlan 2-998,1000-4094
switchport mode trunk
switchport nonegotiate
interface FastEthernet0/8
switchport trunk encapsulation dot1q
switchport trunk native vlan 666
switchport trunk allowed vlan 2-998,1000-4094
switchport mode trunk
switchport nonegotiate
interface FastEthernet0/9
switchport trunk encapsulation dot1q
switchport trunk native vlan 666
switchport trunk allowed vlan 2-998,1000-4094
switchport mode trunk
switchport nonegotiate
interface FastEthernet0/10
switchport trunk encapsulation dot1q
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 25 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 26 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
ALS1
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 27 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
ip domain-name CCNP.NET
spanning-tree mode pvst
spanning-tree extend system-id
vlan internal allocation policy ascending
interface FastEthernet0/1
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/2
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/3
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/4
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/5
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface FastEthernet0/6
shutdown
interface FastEthernet0/7
switchport trunk native vlan 666
switchport trunk allowed vlan 2-998,1000-4094
switchport mode trunk
switchport nonegotiate
interface FastEthernet0/8
switchport trunk native vlan 666
switchport trunk allowed vlan 2-998,1000-4094
switchport mode trunk
switchport nonegotiate
interface FastEthernet0/9
switchport trunk native vlan 666
switchport trunk allowed vlan 2-998,1000-4094
switchport mode trunk
switchport nonegotiate
interface FastEthernet0/10
switchport trunk native vlan 666
switchport trunk allowed vlan 2-998,1000-4094
switchport mode trunk
switchport nonegotiate
interface FastEthernet0/11
switchport trunk native vlan 666
switchport trunk allowed vlan 2-998,1000-4094
switchport mode trunk
switchport nonegotiate
interface FastEthernet0/12
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 28 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 29 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
switchport nonegotiate
shutdown
interface FastEthernet0/24
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface GigabitEthernet0/1
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface GigabitEthernet0/2
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface Vlan1
no ip address
shutdown
interface Vlan99
ip address 10.1.99.103 255.255.255.0
ip http server
ip http secure-server
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
line vty 5 15
login
end
ALS2
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 30 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 31 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 32 of 33
CCNPv7.1 SWITCH: Lab 3-1 – Static VLANS, Trunking, and VTP
shutdown
interface GigabitEthernet0/1
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface GigabitEthernet0/2
switchport access vlan 999
switchport mode access
switchport nonegotiate
shutdown
interface Vlan1
no ip address
shutdown
interface Vlan99
ip address 10.1.99.104 255.255.255.0
ip http server
ip http secure-server
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
line vty 5 15
login
end
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 33 of 33