Step 1 |
enable
Example:
Switch> enable
|
Enables
privileged EXEC mode. Enter your password if prompted.
|
Step 2 | configure terminal
Example:
Switch# configure terminal
|
Enters global
configuration mode on
Switch A.
|
Step 3 | vtp domain
domain-name
Example:
Switch(config)# vtp domain workdomain
|
Configures a VTP
administrative domain.
The domain name
can be 1 to 32 characters.
|
Step 4 | vtp mode server
Example:
Switch(config)# vtp mode server
|
Configures
Switch A as the VTP server.
|
Step 5 | end
Example:
Switch(config)# end
|
Returns to
privileged EXEC mode.
|
Step 6 | show vtp status
Example:
Switch# show vtp status
|
Verifies the VTP
configuration on both
Switch A and
Switch B.
In the display,
check the
VTP Operating
Mode and the
VTP Domain
Name fields.
|
Step 7 | show vlan
Example:
Switch# show vlan
|
Verifies that
the VLANs exist in the database on
Switch A.
|
Step 8 | configure terminal
Example:
Switch# configure terminal
|
Enters global
configuration mode.
|
Step 9 | interface
interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
|
Defines the
interface to be configured as a trunk, and enters interface configuration mode.
|
Step 10 | switchport mode trunk
Example:
Switch(config-if)# switchport mode trunk
|
Configures the
port as a trunk port.
|
Step 11 | end
Example:
Switch(config-if)# end
|
Returns to
privileged EXEC mode.
|
Step 12 | show interfaces
interface-id
switchport
Example:
Switch# show interfaces gigabitethernet1/0/1 switchport
|
Verifies the
VLAN configuration.
|
Step 13 | Repeat the
above steps on
Switch A for a second port in the
switch.
|
|
Step 14 | Repeat the
above steps on
Switch B to configure the trunk ports that
connect to the trunk ports configured on
Switch A.
|
|
Step 15 | show vlan
Example:
Switch# show vlan
|
When the trunk
links come up, VTP passes the VTP and VLAN information to
Switch B. This command verifies that
Switch B has learned the VLAN
configuration.
|
Step 16 | configure terminal
Example:
Switch# configure terminal
|
Enters global
configuration mode on
Switch A.
|
Step 17 | interface
interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
|
Defines the
interface to set the STP port priority, and enters interface configuration
mode.
|
Step 18 | spanning-tree vlan
vlan-range
port-priority
priority-value
Example:
Switch(config-if)# spanning-tree vlan 8-10 port-priority 16
|
Assigns the
port priority for the VLAN range specified. Enter a port priority value from 0
to 240. Port priority values increment by 16.
|
Step 19 | exit
Example:
Switch(config-if)# exit
|
Returns to
global configuration mode.
|
Step 20 | interface
interface-id
Example:
Switch(config)# interface gigabitethernet1/0/2
|
Defines the
interface to set the STP port priority, and enters interface configuration
mode.
|
Step 21 | spanning-tree vlan
vlan-range
port-priority
priority-value
Example:
Switch(config-if)# spanning-tree vlan 3-6 port-priority 16
|
Assigns the
port priority for the VLAN range specified. Enter a port priority value from 0
to 240. Port priority values increment by 16.
|
Step 22 | end
Example:
Switch(config-if)# end
|
Returns to
privileged EXEC mode.
|
Step 23 | show running-config
Example:
Switch# show running-config
|
Verifies your
entries.
|
Step 24 | copy running-config startup-config
Example:
Switch# copy running-config startup-config
|
(Optional)
Saves your entries in the configuration file.
|