80
CCNA Semester3 Chapter 2: Basic Switch Concepts and Configuration CCNA Exploration 4.0

Ca Ex S3 C2 Basic Switch Concepts And Configuration

  • Upload
    neo-kim

  • View
    2.686

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Ca Ex S3 C2 Basic Switch Concepts And Configuration

CCNA – Semester3

Chapter 2: Basic Switch Concepts

and Configuration

CCNA Exploration 4.0

Page 2: Ca Ex S3 C2 Basic Switch Concepts And Configuration

2

Objectives

• Summarize the operation of Ethernet as defined for

100/1000 Mbps LANs in the IEEE 802.3 standard.

• Explain the functions that enable a switch to forward

Ethernet frames in a LAN.

• Configure a switch for operation in a network

designed to support voice, video, and data

transmissions.

• Configure basic security on a switch that will operate

in a network designed to support voice, video, and

data transmissions.

Page 3: Ca Ex S3 C2 Basic Switch Concepts And Configuration

3

Introduction to Ethernet/802.3 LANs

Page 4: Ca Ex S3 C2 Basic Switch Concepts And Configuration

44

Media Access Control in Ethernet

Page 5: Ca Ex S3 C2 Basic Switch Concepts And Configuration

55

CSMA/CD

Page 6: Ca Ex S3 C2 Basic Switch Concepts And Configuration

66

CSMA/CD

Page 7: Ca Ex S3 C2 Basic Switch Concepts And Configuration

77

CSMA/CD

Page 8: Ca Ex S3 C2 Basic Switch Concepts And Configuration

88

CSMA/CD

Page 9: Ca Ex S3 C2 Basic Switch Concepts And Configuration

9

Ethernet Communications

Ethernet Communications:

– Unicast

– Broadcast

– Multicast

Page 10: Ca Ex S3 C2 Basic Switch Concepts And Configuration

10

Ethernet Communications

• Ethernet Frame:

• Ethernet Address

Page 11: Ca Ex S3 C2 Basic Switch Concepts And Configuration

11

Duplex Settings

Page 12: Ca Ex S3 C2 Basic Switch Concepts And Configuration

12

Switch Port Settings

• The Cisco Catalyst switches have three settings:

– The auto option sets autonegotiation of duplex mode.

With autonegotiation enabled, the two ports communicate

to decide the best mode of operation.

– The full option sets full-duplex mode.

– The half option sets half-duplex mode.

• Auto-MDIX

• The auto-MDIX feature is enabled by default on switches running

Cisco IOS Release 12.2(18)SE or later. For releases between

Cisco IOS Release 12.1(14)EA1 and 12.2(18)SE, the auto-MDIX

feature is disabled by default.

Page 13: Ca Ex S3 C2 Basic Switch Concepts And Configuration

13

MAC Addressing and Switch MAC Address

Tables

Page 14: Ca Ex S3 C2 Basic Switch Concepts And Configuration

14

MAC Addressing and Switch MAC Address

Tables

Page 15: Ca Ex S3 C2 Basic Switch Concepts And Configuration

15

MAC Addressing and Switch MAC Address

Tables

Page 16: Ca Ex S3 C2 Basic Switch Concepts And Configuration

16

MAC Addressing and Switch MAC Address

Tables

Page 17: Ca Ex S3 C2 Basic Switch Concepts And Configuration

17

MAC Addressing and Switch MAC Address

Tables

Page 18: Ca Ex S3 C2 Basic Switch Concepts And Configuration

18

MAC Addressing and Switch MAC Address

Tables

Page 19: Ca Ex S3 C2 Basic Switch Concepts And Configuration

19

Design Considerations for Ethernet/802.3

Networks

• Bandwidth and Throughput

– A major disadvantage of Ethernet 802.3 networks is

collisions.

• Collision domains:

Page 20: Ca Ex S3 C2 Basic Switch Concepts And Configuration

20

Design Considerations for Ethernet/802.3

Networks

Broadcast Domains:

• Although switches filter most

frames based on MAC addresses, they do not filter broadcast frames. For other switches on the LAN to get broadcasted frames, broadcast frames must be forwarded by switches. A collection of interconnected switches forms a single broadcast domain. Only a Layer 3 entity, such as a router, or a virtual LAN (VLAN), can stop a Layer 2 broadcast domain. Routers and VLANs are used to segment both collision and broadcast domains. The use of VLANs to segment broadcast domains will be discussed in the next chapter.

Page 21: Ca Ex S3 C2 Basic Switch Concepts And Configuration

21

Design Considerations for Ethernet/802.3

Networks

Network Latency

• The time source NIC place voltage pulses on the wire and

the time the receiving NIC interpret these pulses.

• The actual propagation delay as the signal takes time to

travel along the cable.

• Latency is added according to which networking devices.

Page 22: Ca Ex S3 C2 Basic Switch Concepts And Configuration

22

Design Considerations for Ethernet/802.3

Networks

Network Congestion

• The primary reason for segmenting a LAN into smaller parts

is to isolate traffic and to achieve better use of bandwidth per

user. Without segmentation, a LAN quickly becomes clogged

with traffic and collisions.

• The most common causes of network congestion:

– Increasingly powerful computer and network

technologies.

– Increasing volume of network traffic.

– High-bandwidth applications.

Page 23: Ca Ex S3 C2 Basic Switch Concepts And Configuration

23

Design Considerations for Ethernet/802.3

Networks

LAN Segmentation

• LANs are segmented into a number of smaller collision and

broadcast domains using routers and switches. Previously,

bridges were used, but this type of network equipment is

rarely seen in a modern switched LAN.

Page 24: Ca Ex S3 C2 Basic Switch Concepts And Configuration

24

Design Considerations for Ethernet/802.3

Networks

LAN Segmentation

Page 25: Ca Ex S3 C2 Basic Switch Concepts And Configuration

25

LAN Design Considerations

Controlling Network Latency

• Consider the latency caused by each device on the network.

– A core level switch supporting 48 ports, running at 1000 Mb/s full duplex requires 96 Gb/s internal throughput if it is to maintain full wire-speed across all ports simultaneously.

• Higher OSI layer devices can also increase latency on a network.

– A router must strip away the Layer 2 fields in a frame in order to interpret layer 3 addressing information. The extra processing time causes latency.

– Balance the use of higher layer devices to reduce network latency with the need to prevent contention from broadcast traffic or the high collision rates.

Page 26: Ca Ex S3 C2 Basic Switch Concepts And Configuration

26

LAN Design Considerations

Removing Bottlenecks

Activity 2.1.3.2

Page 27: Ca Ex S3 C2 Basic Switch Concepts And Configuration

27

Forwarding Frames using a Switch

Page 28: Ca Ex S3 C2 Basic Switch Concepts And Configuration

28

• Store-and-forward – The entire frame is received before

any forwarding takes place

• Cut-through – The frame is forwarded through the switch

before the entire frame is received

Switch Forwarding Methods

Page 29: Ca Ex S3 C2 Basic Switch Concepts And Configuration

29

There are two variants of cut-through switching:

• Fast-forward – switching immediately forwards a packet

after reading the destination address.

• Fragment-free – Fragment-free switching filters out collision

fragments ( < 64 bytes ) before forwarding begins.

Switch Forwarding Methods

Page 30: Ca Ex S3 C2 Basic Switch Concepts And Configuration

30

Symmetric and Asymmetric Switching

Page 31: Ca Ex S3 C2 Basic Switch Concepts And Configuration

31

• In port-based memory buffering frames are stored in

queues that are linked to specific incoming ports

• Shared memory buffering deposits all frames into a

common memory buffer which all the ports on the switch

share

Memory buffering

Page 32: Ca Ex S3 C2 Basic Switch Concepts And Configuration

32

Layer 2 and Layer 3 Switching

Page 33: Ca Ex S3 C2 Basic Switch Concepts And Configuration

33

Layer 3 Switch and Router Comparison

Activity 2.2.4.3

Page 34: Ca Ex S3 C2 Basic Switch Concepts And Configuration

34

Switch Management Configuration

Page 35: Ca Ex S3 C2 Basic Switch Concepts And Configuration

35

Navigating CLI Modes

Page 36: Ca Ex S3 C2 Basic Switch Concepts And Configuration

36

Navigating CLI Modes

Page 37: Ca Ex S3 C2 Basic Switch Concepts And Configuration

37

GUI-based Alternatives to the CLI

Cisco Network Assistant Cisco Device Manager

Cisco View SNMP Network Manager

Page 38: Ca Ex S3 C2 Basic Switch Concepts And Configuration

38

Using the Help Facility

Page 39: Ca Ex S3 C2 Basic Switch Concepts And Configuration

39

Console Error Messages

Page 40: Ca Ex S3 C2 Basic Switch Concepts And Configuration

40

Accessing the Command History

Page 41: Ca Ex S3 C2 Basic Switch Concepts And Configuration

41

The Switch Boot Sequence

The boot sequence of a Cisco switch:

• The switch loads the boot loader software from NVRAM

• The boot loader:

– Performs low-level CPU initialization

– Performs POST for the CPU subsystem

– Initializes the flash file system on the system board

– Loads a default operating system software image into memory and boots the switch

• The operating system runs using the config.text file, stored in the switch flash storage.

The boot loader can help you recover from an operating system crash:

• Provides access into the switch if the operating system has problems serious enough that it cannot be used.

• Provides access to the files stored on flash before the operating system is loaded.

• Use the boot loader command line to perform recovery operations.

Page 42: Ca Ex S3 C2 Basic Switch Concepts And Configuration

42

Prepare to Configure the Switch

Step 1:

• PC or terminal is connected to the console port

• Terminal emulator application, such as HyperTerminal, is running and configured correctly.

Step 2:

• Attach the power cable plug to the switch power supply socket.

Step 3:

• When the switch is on, the POST begins. During POST, the LEDs blink while a series of tests determine that the switch is functioning properly. When the POST has completed, the SYST LED rapidly blinks green. If the switch fails POST, the SYST LED turns amber. When a switch fails the POST test, it is necessary to repair the switch.

Page 43: Ca Ex S3 C2 Basic Switch Concepts And Configuration

43

Basic Switch Configuration

• Management Interface Considerations

Page 44: Ca Ex S3 C2 Basic Switch Concepts And Configuration

44

Basic Switch Configuration

• Configure Management Interface

Page 45: Ca Ex S3 C2 Basic Switch Concepts And Configuration

45

Basic Switch Configuration

• Configure Default Gateway

Page 46: Ca Ex S3 C2 Basic Switch Concepts And Configuration

46

Basic Switch Configuration

• Verity Configuration

Page 47: Ca Ex S3 C2 Basic Switch Concepts And Configuration

47

Basic Switch Configuration

• Configure Duplex and Speed

Page 48: Ca Ex S3 C2 Basic Switch Concepts And Configuration

48

Basic Switch Configuration

• Configure a Web Interface

Page 49: Ca Ex S3 C2 Basic Switch Concepts And Configuration

49

Basic Switch Configuration

Managing the MAC Address Table

• Dynamic addresses are source MAC addresses that the

switch learns and then ages when they are not in use. You

can change the aging time setting for MAC addresses. The

default time is 300 seconds.

• The switch provides dynamic addressing by learning the

source MAC address of each frame that it receives on

each port, and then adding the source MAC address and

its associated port number to the MAC address table.

• To create a static mapping in the MAC address table, use

the mac-address-table static <MAC address> vlan {1-

4096, ALL} interfaceinterface-id command.

Page 50: Ca Ex S3 C2 Basic Switch Concepts And Configuration

50

Verifying Switch Configuration

Page 51: Ca Ex S3 C2 Basic Switch Concepts And Configuration

51

Basic Switch Management

• Back up and Restore Switch Configurations

Page 52: Ca Ex S3 C2 Basic Switch Concepts And Configuration

52

Basic Switch Management

• Back up and Restore Switch Configurations

• Clearing Configuration Information

– Use erase nvram: or erase startup-config command

• Deleting a Stored Configuration File

– Use delete flash:filename command

Page 53: Ca Ex S3 C2 Basic Switch Concepts And Configuration

53

Basic Switch Management

• 2.3.8.4

Page 54: Ca Ex S3 C2 Basic Switch Concepts And Configuration

54

Configuring Switch Security

Page 55: Ca Ex S3 C2 Basic Switch Concepts And Configuration

55

Configure Password Options

• Console password

– Sw(config)#line console 0

– Sw(config-line)#password cisco

– Sw(config-lien)#login

• Line vty password

– Sw(config)#line vty 0 4

– Sw(config-line)#password cisco

– Sw(config-lien)#login

• Enable password:

– Sw(config)#enalbe password cisco

– Sw(config)#enalbe secret class

Page 56: Ca Ex S3 C2 Basic Switch Concepts And Configuration

56

Configure Password Options

• Configure Encrypted Passwords

Page 57: Ca Ex S3 C2 Basic Switch Concepts And Configuration

57

Configure Password Options

Enable Password Recovery

• Step 1. Connect a terminal or PC with terminal-emulation software to the

switch console port.

• Step 2. Set the line speed on the emulation software to 9600 baud.

• Step 3. Power off the switch. Reconnect the power cord to the switch and

within 15 seconds, press the Mode button while the System LED is still

flashing green. Continue pressing the Mode button until the System LED

turns briefly amber and then solid green. Then release the Mode button.

• Step 4. Initialize the Flash file system using the flash_init command.

• Step 5. Load any helper files using the load_helper command.

• Step 6. Display the contents of Flash memory using the dir flash

command.

• Step 7. Rename the configuration file to config.text.old, which contains

the password definition, using the rename flash:config.text

flash:config.text.old command.

Page 58: Ca Ex S3 C2 Basic Switch Concepts And Configuration

58

Configure Password Options

Enable Password Recovery

• Step 8. Boot the system with the boot command.

• Step 9. You are prompted to start the setup program. Enter

N at the prompt, and then when the system prompts whether

to continue with the configuration dialog, enter N.

• Step 10. At the switch prompt, enter privileged EXEC mode

using the enable command.

• Step 11. Rename the configuration file to its original name

using the rename flash:config.text.old flash:config.text

command.

• Step 12. Copy the configuration file into memory using the

copy flash:config.text system:running-config command.

Page 59: Ca Ex S3 C2 Basic Switch Concepts And Configuration

59

Configure Password Options

Enable Password Recovery

• Step 13. Enter global configuration mode using the configure

terminal command.

• Step 14. Change the password using the enable

secretpassword command.

• Step 15. Return to privileged EXEC mode using the exit

command.

• Step 16. Write the running configuration to the startup

configuration file using the copy running-config startup-config

command.

• Step 17. Reload the switch using the reload command.

Page 60: Ca Ex S3 C2 Basic Switch Concepts And Configuration

60

Login Banners

• The Cisco IOS command set includes a feature that allows

you to configure messages that anyone logging onto the

switch sees. These messages are called login banners and

message of the day (MOTD) banners.

– Sw(config)#banner motd “string”

Page 61: Ca Ex S3 C2 Basic Switch Concepts And Configuration

61

Configure Telnet and SSH

Page 62: Ca Ex S3 C2 Basic Switch Concepts And Configuration

62

Common Security Attacks

• MAC Address Flooding: If the MAC address does not exist,

the switch acts like a hub and forwards the frame out every

port on the switch.

Page 63: Ca Ex S3 C2 Basic Switch Concepts And Configuration

63

Common Security Attacks

• MAC Address Flooding (cont.)

Page 64: Ca Ex S3 C2 Basic Switch Concepts And Configuration

64

Common Security Attacks

• MAC Address Flooding (cont.)

Page 65: Ca Ex S3 C2 Basic Switch Concepts And Configuration

65

Common Security Attacks

• MAC Address Flooding (cont.)

Page 66: Ca Ex S3 C2 Basic Switch Concepts And Configuration

66

Common Security Attacks

• MAC Address Flooding (cont.)

Page 67: Ca Ex S3 C2 Basic Switch Concepts And Configuration

67

Common Security Attacks

Spoofing Attacks

Page 68: Ca Ex S3 C2 Basic Switch Concepts And Configuration

68

Common Security Attacks

DHCP Spoofing

Page 69: Ca Ex S3 C2 Basic Switch Concepts And Configuration

69

Common Security Attacks

• CDP attacks: CDP contains information about the device,

such as the IP address, software version, platform,

capabilities, and the native VLAN. When this information is

available to an attacker, they can use it to find exploits to

attack your network, typically in the form of a Denial of

Service (DoS) attack.

Page 70: Ca Ex S3 C2 Basic Switch Concepts And Configuration

70

Common Security Attacks

Page 71: Ca Ex S3 C2 Basic Switch Concepts And Configuration

71

Security Tools

• Network Security Tools perform these functions:

• Network Security Audits help you to:

– Reveal what sort of information an attacker can gather

simply by monitoring network traffic.

– Determine the ideal amount of spoofed MAC addresses

to remove.

– Determine the age-out period of the MAC address table

• Network Penetration Testing helps you to

– Identify weaknesses within the configuration of your

networking devices

– Launch numerous attacks to test your network

– Caution: Plan penetration tests to avoid network

performance impacts.

Page 72: Ca Ex S3 C2 Basic Switch Concepts And Configuration

72

Security Tools

Page 73: Ca Ex S3 C2 Basic Switch Concepts And Configuration

73

Configuring Port Security

Page 74: Ca Ex S3 C2 Basic Switch Concepts And Configuration

74

Configuring Port Security

Page 75: Ca Ex S3 C2 Basic Switch Concepts And Configuration

75

Configuring Port Security

Page 76: Ca Ex S3 C2 Basic Switch Concepts And Configuration

76

Configuring Port Security

Page 77: Ca Ex S3 C2 Basic Switch Concepts And Configuration

77

Configuring Port Security

Page 78: Ca Ex S3 C2 Basic Switch Concepts And Configuration

78

Configuring Port Security

Page 79: Ca Ex S3 C2 Basic Switch Concepts And Configuration

79

Configuring Port Security

Activity 2.4.7.2

Page 80: Ca Ex S3 C2 Basic Switch Concepts And Configuration

80

Summary