Switching p1
Switching p1
Agenda
• Switch Operation
• Switch Port Configuration
• VLANs and Trunks
• Aggregating Switch Links
• Traditional Spanning Tree Protocol
• Spanning Tree Configuration
• Protecting Spanning Tree Protocol Topology
• Advanced Spanning Tree Protocol
• Multilayer Switching
• Enterprise Campus Network Design
• Layers 3 High Availability
• Policy-Based Routing
Agenda
Wireless
• Conceptos de WLAN
• Introducción a la Tecnología Inalámbrica
• Componentes de la WLAN
• Funcionamiento de la WLAN
• Funcionamiento de CAPWAP
• Gestión de Canales
• Amenazas en la WLAN
• WLAN Seguras
Switching
Switch Operation
Layer 2 Switch Operation
An Ethernet switch operates at OSI Layer 2, making decisions about forwarding frames
based on the destination MAC addresses found within the frames. This means that the
Ethernet media is no longer shared among connected devices. Instead, at its most basic
level, an Ethernet switch provides isolation between connected hosts.
Multilayer Switch Operation
Catalyst switches, such as the 9300, 9400, and 9500, can also forward frames based
on Layers 3 and 4 information contained in packets. This is known as multilayer
switching (MLS). Naturally, Layer 2 switching is performed at the same time
because even the higher-layer encapsulations still are contained in Ethernet frames
Tables Used in Switching
• Content-Addressable Memory
• All Catalyst switch models use a CAM table for Layer 2 switching. As frames arrive on switch ports, the source MAC
addresses are learned and recorded in the CAM table. The port of arrival and the VLAN both are recorded in the table,
along with a time stamp. If a MAC address learned on one switch port has moved to a different port, the MAC
address and time stamp are recorded for the most recent arrival port. Then, the previous entry is deleted. If a MAC
address is found already present in the table for the correct arrival port, only its time stamp is updated.
• To verify VLAN configuration, use the show vlan command to output a list of all
VLANs defined in the switch, along with the ports that are assigned to each VLAN.
Virtual LANs
• VLANs can be scaled in the switch block by using two basic methods:
• End-to-end VLANs
• End-to-end VLANs, also called campuswide VLANs, span the entire switch fabric of a
network.
• Because all VLANs must be available at each access-layer switch, VLAN trunking must be
used to carry all VLANs between the access- and distribution-layer switches.
• Local VLANs
• Local or geographic VLANs range in size from a single switch in a wiring closet to an entire
building. Arranging VLANs in this fashion enables the Layer 3 function in the campus
network to intelligently handle the interVLAN traffic loads, where traffic passes into the core.
This scenario provides maximum availability by using multiple paths to destinations,
maximum scalability by keeping the VLAN within a switch block, and maximum
manageability.
Layer 2 Switch Operation
VLAN Trunks
• A trunk link can transport more than one VLAN through a single switch port.
Trunk links are most beneficial when switches are connected to other switches or
switches are connected to routers. A trunk link is not assigned to a specific VLAN.
Instead, one, many, or all active VLANs can be transported between switches
using a single physical trunk link.
VLAN Trunk Configuration
VLANs across switches
Tagged Frames
802.1Q Trunk
Trunk Port
• For more concise information about a trunking port, you can use the show
interface [type mod/num] trunk command
VLAN Trunking Protocol
• Cisco has developed a method to manage VLANs across the campus network. The
VLAN Trunking Protocol (VTP) uses Layer 2 trunk frames to communicate VLAN
information among a group of switches. VTP manages the addition, deletion, and
renaming of VLANs across the network from a central point of control. Any
switch participating in a VTP ex change is aware of and can use any VLAN that
VTP manages.
• To participate in a VTP management domain, each switch must be configured
to operate in one of several modes. The VTP mode determines how the
switch processes and advertises VTP information. You can use the following
modes:
• Client mode
• Server mode
• • Transparent mode
VTP Configuration
• By default, every switch operates in VTP server mode for the management
domain NULL (a blank string), with no password or secure mode. If the
switch hears a VTP summary advertisement on a trunk port from any other
switch, it automatically learns the VTP do main name, VLANs, and the
configuration revision number it hears. This makes it easy to bring up a new
switch in an existing VTP domain. However, be aware that the new switch
stays in VTP server mode, something that might not be desirable.
VTP Configuration
• Configuring a VTP Management Domain
Switch(config)# vtp domain domainname
• If you use this command on a VTP server, it also advertises that pruning
needs to be enabled for the entire management domain. All other switches
listening to that advertisement also will enable pruning.
• When pruning is enabled, all general-purpose VLANs become eligible for
pruning on all trunk links, if needed. However, you can modify the default
list of pruning eligibility with the following interface-configuration
command:
Switch(config)# interface type mod/num
Switch(config-if)# switchport trunk pruning vlan {{{add | except | remove} vlan-list} | none}
Troubleshooting VTP
• If a switch does not seem to be receiving updated information from a VTP
server, consider these possible causes:
• The switch is configured for VTP transparent mode. In this mode, incoming VTP
advertisements are not processed; they are relayed only to other switches in the
domain.
• If the switch is configured as a VTP client, there might not be another switch
functioning as a VTP server. In this case, configure the local switch to become a
VTP server itself.
• The link toward the VTP server is not in trunking mode.
• Make sure the VTP domain name is configured correctly.
• Make sure the VTP version is compatible with other switches in the VTP domain.
• Make sure the VTP password matches others in the VTP domain.