Connecting Networks v6.0 – Chapter 5: Network Security and Monitoring

Instructor Planning Guide

Activities

What activities are associated with this chapter?

Assessment

Students should complete Chapter 5, “Assessment” after completing Chapter 5.

Quizzes, labs, Packet Tracers and other activities can be used to informally assess student progress.

Sections & Objectives

5.1 LAN Security

Explain how to mitigate common LAN security attacks.

Describe common LAN security attacks.

Explain how to use security best practices to mitigate LAN attacks.

5.2 SNMP

Configure SNMP to monitor network operations in a small to medium-sized business network.

Explain how SNMP operates.

Configure SNMP to compile network performance data.

5.3 Cisco Switch Port Analyzer (SPAN)

Troubleshoot a network problem using SPAN.

Explain the features and characteristics of SPAN.

Configure local SPAN.

Troubleshoot suspicious LAN traffic using SPAN.

Chapter 5: Network Security and Monitoring

5.1 – LAN Security

5.1.1 – LAN Security Attacks

5.1.1.1 – Common LAN Attacks

Common security solutions using routers, firewalls, Intrusion Prevention System (IPSs), and VPN devices protect Layer 3 up through Layer 7.

Layer 2 must also be protected.

Common Layer 2 attacks include:

5.1.1.2 – CDP Reconnaissance Attack

The Cisco Discovery Protocol (CDP) is a proprietary Layer 2 link discovery protocol, enabled by default.

CDP can automatically discover other CDP-enabled devices.

CDP information can be used by an attacker.

Use the no cdp run global configuration command to disable CDP globally.

Use the no cdp enable interface configuration command to disable CDP on a port.

5.1.1.3 – Telnet Attacks

There are two types of Telnet attacks:

To mitigate these attacks:

5.1.1.4 – MAC Address Table Flooding Attack

Common LAN switch attack is the MAC address table flooding attack.

Configure port security to mitigate these attacks.

5.1.1.5 – VLAN Attacks

Switch spoofing attack - an example of a VLAN attack.

Methods to mitigate VLAN attacks:

5.1.1.6 – DHCP Attacks

DHCP spoofing attack - An attacker configures a fake DHCP server on the network to issue IP addresses to clients.

DHCP starvation attack - An attacker floods the DHCP server with bogus DHCP requests and leases all of the available IP addresses. This results in a denial-of-service (DoS) attack as new clients cannot obtain an IP address.

Methods to mitigate DHCP attacks:

5.1.2 – LAN Security Best Practices

5.1.2.1 – Secure the LAN

Strategies to help secure Layer 2 of a network:

5.1.2.2 – Mitigate MAC Address Flooding Table Attacks

Enable port security to prevent MAC table flooding attacks.

Port security allows an administrator to do the following:

5.1.2.3 – Mitigate VLAN Attacks

To prevent basic VLAN attacks:

5.1.2.4 – Mitigate DHCP Attacks

To prevent DHCP attacks use DHCP snooping.

With DHCP snooping enabled on an interface, the switch will deny packets containing:

DHCP snooping recognizes two types of ports:

5.1.2.5 – Secure Administrative Access using AAA

Local AAA Authentication

  1. Client establishes a connection with the router.
  2. AAA router prompts the user for username and password.
  3. Router authenticates the username and password using the local database, and allows user access

Server-Based AAA Authentication

  1. Client establishes a connection with the router.
  2. AAA router prompts the user for a username and password.
  3. The router authenticates the username and password using a remote AAA server.

The AAA router uses Terminal Access Controller Access Control System (TACACS+) or Remote Authentication Dial-In User Service (RADIUS) protocol to communicate with the AAA server.

5.1.2.6 – Secure Device Access using 802.1X

IEEE 802.1X standard defines a port-based access control and authentication protocol.

5.2 – SNMP

5.2.1 – SNMP Operation

5.2.1.1 – Introduction to SNMP

Simple Network Management Protocol (SNMP) enables network administrators to monitor and manage network nodes.

The SNMP system consists of three elements:

5.2.1.2 – SNMP Operation

SNMP agents that reside on managed devices collect and store information about the device.

This information is stored by the agent locally in the MIB.

SNMP manager then uses the SNMP agent to access information within the MIB.

SNMP agent responds to SNMP manager requests as follows:

5.2.1.3 – SNMP Agent Traps

An Network Management System (NMS) periodically polls the SNMP agents using the get request.

Using this process, SNMP can collect information to monitor traffic loads and to verify device configurations of managed devices.

SNMP agents to generate and send traps to inform the NMS immediately of certain events.

Traps are unsolicited messages alerting the SNMP manager to a condition or event such as improper user authentication or link status.

5.2.1.4 – SNMP Versions

All versions use SNMP managers, agents, and MIBs, this course focuses on versions 2c and 3.

A network administrator must configure the SNMP agent to use the SNMP version supported by the management station.

5.2.1.5 – Community Strings

SNMPv1 and SNMPv2c use community strings that control access to the MIB.

Two types of community strings:

5.2.1.6 – Management Information Base Object ID

The MIB defines each variable as an object ID (OID).

Most devices implement RFC defined common public variables.

CPU is one of the key resources, it should be measured continuously.

5.2.1.7 – SNMPv3

SNMPv3 authenticates and encrypts packets over the network to provide secure access to devices.

SNMPv3 provides three security features:

5.2.1.9 – Lab - Researching Network Monitoring Software

5.2.1.9 Lab - Researching Network Monitoring Software

5.2.2 – Configuring SNMP

5.2.2.1 – Steps for Configuring SNMP

Basic steps to configuring SNMP:

1.Configure the community string and access level using snmp-server community string ro | rw command.

2.(Optional) Document the location of the device using the snmp-server location text command.

3.(Optional) Document the system contact using the snmp-server contact text command.

4.(Optional)Use an ACL to restrict SNMP access to NMS hosts (SNMP managers). Reference the ACL using snmp-server community string access-list-number-or-name.

5.2.2.2 – Verifying SNMP Configuration

Kiwi Syslog Server is one of several solutions that display SNMP output.

The SNMP traps are sent to the SNMP manager and displayed on the syslog server.

To verify the SNMP configuration use the show snmp command.

Use the show snmp community command to show SNMP community string and ACL information.

5.2.2.3 – SNMP Best Practices

SNMP can create security vulnerabilities.

For SNMPv1 and SNMPv2c - community strings should be strong and changed frequently.

ACLs should be used to prevent SNMP messages from going beyond the required devices and to limit access to monitored devices.

SNMPv3 is recommended because it provides security authentication and encryption.

5.2.2.4 – Steps for Configuring SNMPv3

Steps to configure SNMPv3:

1.Configure a standard ACL that will permit access for authorized SNMP managers.

2.Configure an SNMP view to identify which OIDs the SNMB manager will be able to read.

3.Configure the SNMP group and  features including name, version, type of authentication and encryption, associates view to the group, read or write, filter with ACL.

4.Configure a user with features including username, associates with group, version, authentication type, encryption type and password.

5.2.2.5 – SNMPv3 Configuration

The example configures a standard ACL named PERMIT-ADMIN. It is configured to permit only the 192.168.1.0/24 network. All hosts attached to this network will be allowed to access the SNMP agent running on R1.

An SNMP view is named SNMP-RO and is configured to include the entire ISO tree from the MIB.

5.2.2.6 – Lab - Configuring SNMP

5.2.2.6 Lab - Configuring SNMP

5.3 – Cisco Switch Port Analyzer

5.3.1 – SPAN Overview

5.3.1.1 – Port Mirroring

Port mirroring allows a switch to copy and send Ethernet frames from specific ports to the destination port connected to a packet analyzer.

5.3.1.2 – Analyzing Suspicious Traffic

SPAN is a type of port mirroring that allows administrators or devices to collect and analyze traffic.

SPAN is commonly implemented to deliver traffic to specialized devices including:

SPAN can be implemented as either Local SPAN or Remote SPAN (RSPAN).

5.3.1.3 – Local SPAN

Local SPAN is when traffic on a switch is mirrored to another port on that switch.

A SPAN session is the association between source ports (or VLANs) and a destination port.

Three important things to consider when configuring SPAN:

5.3.1.4 – Remote SPAN

Remote SPAN (RSPAN) allows source and destination ports to be in different switches.

RSPAN uses two sessions.

5.3.2 – SPAN Configuration

5.3.2.1 – Configuring Local SPAN

A session number is used to identify a local SPAN session.

Use monitor session command to associate a source port and a destination port with a SPAN session.

A separate monitor session command is used for each session.

A VLAN can be specified instead of a physical port.

5.3.2.2 – Verifying Local SPAN

Use the show monitor command to verify the SPAN session. It displays the type of the session, the source ports for each traffic direction, and the destination port.

5.3.2.3 – Lab - Implement a Local SPAN

5.3.2.3 Lab - Implement Local SPAN

5.3.3 – SPAN as a Troubleshooting Tool

5.3.3.1 – Troubleshooting with SPAN Overview

SPAN allows administrators to troubleshoot network issues.

5.3.3.2 – Lab - Troubleshoot LAN Traffic Using SPAN

5.3.3.2 Lab - Troubleshoot LAN Traffic Using SPAN

5.4 – Summary

5.4.1 – Conclusion

5.4.1.1 - Chapter 5: Network Security and Monitoring

New Terms and Commands

•CDP reconnaissance attacks •Telnet attacks •MAC address table flooding attacks •DHCP spoofing attacks •Authentication, Authorization, and Accounting (AAA) •IEEE 802.1X. •Simple Network Management Protocol (SNMP) •Intrusion Prevention System (IPS) •Switched Port Analyzer (SPAN) •Cisco Discovery Protocol (CDP) •Link Layer Discovery Protocol (LLDP) •Terminal Access Controller Access Control System (TACACS+) protocol •Remote Authentication Dial-In User Service (RADIUS) protocol •Dynamic Trunking Protocol (DTP) •port security •DHCP starvation attack •denial-of-service (DoS) attack •DHCP snooping •Dynamic ARP inspection •IP Source Guard •DHCP Snooping Binding Database •Local AAA Authentication •Server-Based AAA Authentication •Supplicant •Authenticator •SNMP manager •SNMP agents
•Management Information Base (MIB) •network management system (NMS) •SNMP traps •get request •set request •network baseline •community strings •object ID (OID) •snmpget •packet analyzer •port mirroring •Local SPAN •Remote SPAN (RSPAN)
← All Network Security articles Home