Skip to main content
ManualsDex
Cisco Original PDF 6 Pages118 KB Troubleshooting & Error Codes ↓

Cisco Configuring IP Source Guard User Guide

Category:Configuring IP Source Guard
Download PDF (118 KB)

Document viewer

6 Pages · 118 KB · Cisco official PDF

Troubleshooting & error codes

Extracted diagnostic sections from the manufacturer manual

Diagnostic guide
Beginning with Cisco NX-OS Release 9.3(5), IP Source Guard is supported on Cisco Nexus 9364C-GX, Cisco Nexus 9316D-GX, and Cisco Nexus 93600CD-GX switches.
IP Source Guard does not require TCAM carving on the Cisco Nexus 9300-X Cloud Scale Switches.
If IPSG is enabled, port security can't be enabled on the interface.

Default Settings for IP Source Guard

This table lists the default settings for IP Source Guard parameters.

IP Source Guard

No static or default IP source entries exist by default.

Configuring IP Source Guard

Enabling or Disabling IP Source Guard on a Layer 2 Interface You can enable or disable IP Source Guard on a Layer 2 interface. By default, IP Source Guard is disabled on all interfaces.

Make sure that the DHCP feature and DHCP snooping are enabled.

Make sure that the ACL TCAM region size for IPSG (ipsg) is configured.

Step 1

Enters interface configuration mode for the specified interface.

Step 2

switch(config)# interface ethernet 2/3 switch(config-if)# Configuring IP Source Guard Configuring IP Source Guard Default Settings for IP Source Guard Purpose Command or Action Enables IP Source Guard on the interface. The no form of this command disables IP Source Guard on the interface.

Example: switch(config-if)# ip verify source dhcp-snooping vlan Step 3 Displays the running configuration for DHCP snooping, including the IP Source Guard configuration.

Step 4

Copies the running configuration to the startup configuration.

Step 5

switch(config-if)# copy running-config startup-config Adding or Removing a Static IP Source Entry You can add or remove a static IP source entry on the device. By default, there are no static IP source entries.

Creates a static IP source entry for the current interface. The no form of this command removes the static IP source entry.

Manual overview & contents

Cisco · 6 Pages

Official 6-page Cisco documentation (118 KB PDF). Key sections include About IP Source Guard, Prerequisites for IP Source Guard, Guidelines and Limitations for IP Source Guard, Default Settings for IP Source Guard, Configuring IP Source Guard for Trunk Ports.

This chapter describes how to configure IP Source Guard on Cisco NX-OS devices. IP Source Guard is a per-interface traffic filter that permits IP traffic only when the IP address and MAC address of each packet matches one of two sources of IP and MAC address bindings: - Entries in the Dynamic Host Configuration Protocol (DHCP) snooping binding table - Static IP source entries that you configure Filtering on trusted IP and MAC address bindings helps prevent spoofing attacks, in which an attacker uses the IP address of a valid host to gain unauthorized network access.

Sections inside this manual

Page numbers for quick lookup in the PDF
  1. About IP Source Guardp. 1
  2. Prerequisites for IP Source Guardp. 2
  3. Guidelines and Limitations for IP Source Guardp. 2
  4. Default Settings for IP Source Guardp. 3
  5. Configuring IP Source Guard for Trunk Portsp. 5
  6. Displaying IP Source Guard Bindingsp. 5
  7. Clearing IP Source Guard Statisticsp. 6
  8. Configuration Example for IP Source Guardp. 6
  9. Additional Referencesp. 6
  10. Related Documentsp. 6

Extracted manual text

This chapter includes the following sections:

About IP Source Guard, on page 1
Prerequisites for IP Source Guard, on page 2
Guidelines and Limitations for IP Source Guard, on page 2
Default Settings for IP Source Guard, on page 3
Configuring IP Source Guard, on page 3
Displaying IP Source Guard Bindings, on page 5
Clearing IP Source Guard Statistics, on page 6
Configuration Example for IP Source Guard, on page 6
Additional References, on page 6 About IP Source Guard IP Source Guard is a per-interface traffic filter that permits IP traffic only when the IP address and MAC address of each packet matches one of two sources of IP and MAC address bindings:
Entries in the Dynamic Host Configuration Protocol (DHCP) snooping binding table
Static IP source entries that you configure Filtering on trusted IP and MAC address bindings helps prevent spoofing attacks, in which an attacker uses the IP address of a valid host to gain unauthorized network access. To circumvent IP Source Guard, an attacker would have to spoof both the IP address and the MAC address of a valid host.

You can enable IP Source Guard on Layer 2 interfaces that are not trusted by DHCP snooping. IP Source Guard supports interfaces that are configured to operate in access mode and trunk mode. When you initially enable IP Source Guard, all inbound IP traffic on the interface is blocked except for the following:

DHCP packets, which DHCP snooping inspects and then forwards or drops, depending upon the results of inspecting the packet
IP traffic from static IP source entries that you have configured on the Cisco NX-OS device The device permits the IP traffic when DHCP snooping adds a binding table entry for the IP address and MAC address of an IP packet or when you have configured a static IP source entry.

Configuring IP Source Guard

The device drops IP packets when the IP address and MAC address of the packet do not have a binding table entry or a static IP source entry. For example, assume that the show ip dhcp snooping binding command displays the following binding table entry:

MacAddress — Ethernet2/3

If the device receives an IP packet with an IP address of 10.5.5.2, IP Source Guard forwards the packet only if the MAC address of the packet is 00:02:B3:3F:3B:99.

Prerequisites for IP Source Guard

You must enable the DHCP feature and DHCP snooping before you can configure IP Source Guard.
You must configure the ACL TCAM region size for IP Source Guard using the hardware access-list tcam region ipsg command. See Configuring ACL TCAM Region Sizes.

By default the ipsg region size is zero. You need to allocate enough entries to this region for storing and enforcing the SMAC-IP bindings.

Frequently asked questions

What topics are covered in the Cisco Configuring IP Source Guard User Guide?

This 6-page manual covers: About IP Source Guard, Prerequisites for IP Source Guard, Guidelines and Limitations for IP Source Guard, Default Settings for IP Source Guard, Displaying IP Source Guard Bindings, Clearing IP Source Guard Statistics, Configuration Example for IP Source Guard, Additional References.

Does this manual include troubleshooting or error codes?

Yes, troubleshooting and fault information (Default Settings for IP Source Guard) is included inside the manual.

More manuals from Cisco

View all →
Download (118 KB)