3.CCNP ENCOR 350-401 - Switch Fundamentals
Switch Fundamentals
Introduction
- This video is the second in a CCNP ENCOR series.
- The topic is switches, leading into MAC address tables in the next video.
- Basic switch concepts already covered in the CCNA 200-301 series will be reviewed.
What is a Switch?
- A switch is a device used to connect multiple systems in a Local Area Network (LAN).
- Switches connect devices within the same network.
- Example: Connecting two PCs directly using Ethernet cables and LAN cards works for two devices.
- For three or more PCs, a switch is necessary as each PC has only one LAN card.
- The Ethernet cables from each PC connect to the switch, allowing all PCs to communicate.
Types of Switches
- Manageable Switch: Allows configuration via CLI, VLAN creation, Spanning Tree Protocol (STP) configuration, etc.
- Unmanageable Switch: Plug and play; no CLI or configuration options.
Manageable vs. Unmanageable
| Feature | Manageable Switch | Unmanageable Switch |
|---|
| Configuration | Yes, via CLI (Command Line Interface) | No CLI |
| VLAN Creation | Yes | No |
| Spanning Tree | Yes, STP configuration possible | No |
| Cost | More expensive | Less expensive (cheaper) |
| Console Port | Present | No console port |
| Management | Can manage and configure | Cannot manage; plug and play only |
Manageable Switch Types
- Layer 2 Switch: Operates at Layer 2 (Data Link Layer) of the OSI model.
- Layer 3 Switch: Operates at Layer 3 (Network Layer) of the OSI model; also known as a multilayer switch.
Layer 2 vs. Layer 3
- Layer 3 switches can perform routing by using the
ip routing command to enable routing - Layer 2 Switch: Forwards frames.
- Layer 3 Switch: Forwards frames and can also perform routing.
Switch Access and Operating System
- Switches can be accessed remotely via Telnet or SSH for configuration changes.
- Switches run on Cisco IOS (Internetworking Operating System).
- To check the switch version, use the
show version command.
Switch Hardware
- Switches have multiple ports (e.g., 48 ports, 16 ports, 8 ports) depending on the model.
- LEDs indicate the working status of the ports.
- Console port is available for configuration (RJ45 or USB mini console port).
Accessing Switch Using EVNG
- EVNG (Emulated Virtual Network Generator) can be used for labs.
- Packet Tracer and GNS3 can also be used.
- Not all commands function the same way in Packet Tracer. So, GNS3 or EVNG is better.
- In EVNG Right-click > Node > IOL > Select L2 or L3 switch.
- You can change the icon of the switch
- You must have enough RAM to run the switch (1 GB).
- Connect the switch by dragging cable > select the interfaces to connect.
- Start the selected nodes.
- Double click to open the console
- To check version in enable mode type command:
show version - Sample configuration- Create new VLAN command:
VLAN 10 name is Sales Exit and then type show VLAN brief - You can add port in a VLAN, first go in Interface
e0\0 using command interface e0\0 followed by command switchport mode access followed by command switchport access VLAN 10 and you can use command show VLAN brief to see which ports are up - You can put duplex full using command:
interface range e0\1 - 3 followed by command duplex full
Nexus Switches
- Nexus switches are used in data centers and are more powerful.
- They also use the
show version command. They run Nexus OS.
Catalyst Switches
- Catalyst was a company that was acquired by Cisco; these switches are now under the Cisco name.
Switch Types (Physical)
Modular Switches
- Modular switches allow adding or removing modules to increase or decrease the number of ports.
- You can add or remove modules depending on the requirements. They use screw type connections.
Fixed Switches
- Fixed switches do not allow changing modules.
Standalone Switches
- Require individual configuration for each switch.
Show mac address table dynamic
- To see MAC address- table, type command
show mac address table
Spanning Tree Protocol
- Command
show spanning tree VLAN 1 Command to check default VLAN
Pinging between Two Hosts
- Configure two hosts on separate switches.
- Ensure VLANs are configured correctly.
- Set the port to trunk using command:
switchport trunk encapsulation dot1qswitchport mode trunk
- Remember to enable IP routing by using command
ip routing for Layer 3 switches.
Packet Capturing using Wireshark
- Wireshark is a packet analyzer that captures and displays network traffic.
- Capture packets on interfaces to analyze data flow.
- You can filter through PVST, STP, VTP, etc.
- Remember to stop capturing the port, to see all packets captured
Reminder of What Is Next
- The next video will discuss MAC address tables and CAM tables.