Icnd210s02 Vlan&trunks STP
Icnd210s02 Vlan&trunks STP
Trunks
Medium-Sized Switched Network Construction
Issues in a Poorly Designed Network
VLAN Overview
Segmentation
Flexibility
Security
Designing VLANs for an Organization
SwitchX(config-if)#
switchport mode {access | dynamic {auto | desirable} | trunk}
Configures the trunking characteristics of the port
SwitchX(config-if)#
switchport mode trunk
Configures the port as a VLAN trunk
Verifying a Trunk
SwitchX# show interfaces interface [switchport | trunk]
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
2 enet 100002 1500 - - - - - 0 0
. . .
SwitchX#
Assigning Switch Ports to a VLAN
SwitchX(config-if)#
switchport access [vlan vlan# | dynamic]
SwitchX(config-if)#
show interfaces interface switchport
Technology Use
Fast Ethernet Connects end-user devices to
the access layer switch
Gigabit Ethernet Connects access switch to
distribution switch and high
use servers to switches
10-Gigabit Provides high-speed switch to
Ethernet switch links, backbones
EtherChannel Provides high-speed switch to
switch links, backbones with
redundancy
Determining Equipment and
Cabling Needs
Radia Perlman
Redundant Topology
OR
SwitchX(config)#
spanning-tree portfast default
Enables PortFast on all non-trunking interfaces
SwitchX#
show running-config interface interface
Verifies that PortFast has been configured on an interface
Spanning-Tree Operation Example
Spanning-Tree Path Cost
1 Gb/s 4 1
100 Mb/s 19 10
10 Mb/s 100 100
Spanning-Tree Recalculation
Per VLAN Spanning Tree Plus (PVST+)
PVST+ Extended Bridge ID
Extended bridge ID
with system ID
System ID = VLAN
Rapid Spanning Tree Protocol
Default Spanning-Tree
Configuration
1. Enable PVRST+.
2. Designate and configure a switch to be the root bridge.
3. Designate and configure a switch to be the secondary
root bridge.
4. Verify the configuration.
PVRST+ Implementation
Commands
SwitchX(config)#
spanning-tree mode rapid-pvst
Configures PVRST+
SwitchX#
show spanning-tree vlan vlan# [detail]
Verifies the spanning-tree configuration
SwitchX#
debug spanning-tree pvst+
Displays PVST+ event debug messages
Verifying PVRST+
SwitchA(config)#
spanning-tree vlan 2 root secondary
This command configures this switch to be the secondary root
for VLAN 2.
OR
SwitchA(config)#
spanning-tree vlan x priority priority
This command statically configures the priority (increments of 4096).
Configuring the Root and
Secondary Bridges: SwitchB
SwitchB(config)#
spanning-tree vlan 2 root primary
This command forces the switch to be the root for VLAN 2.
SwitchB(config)#
spanning-tree vlan 1 root secondary
This command configures the switch to be the secondary root VLAN 1.
OR
SwitchB(config)#
spanning-tree vlan # priority priority
This command statically configures the priority (increments of 4096).
Summary
VTP information :
All ports that interconnect switches are configured as trunks.
VLANs are active in all server switches.
There is at least one VTP server switch.
The VTP domain name, and password, if assigned, match on all
switches (case-sensitive).
The switches all run the same version of VTP.
Verify the domain name and VTP version on transparent
switches.
Be aware that extended-range VLANs do not propagate for
VTPv1 and VTPv2.
Troubleshooting Spanning Tree
Visual Objective 2-2:
Troubleshooting Switched Networks
WG Switch Router
fa0/0
A 10.1.1.10 10.2.2.12
B 10.1.1.20 10.3.3.12
C 10.1.1.30 10.4.4.12
D 10.1.1.40 10.5.5.12
E 10.1.1.50 10.6.6.12
F 10.1.1.60 10.7.7.12
G 10.1.1.70 10.8.8.12
H 10.1.1.80 10.9.9.12
Summary