Ip source-guard – PLANET SGSD-1022 User Manual

Page 498

Advertising
background image

User’s Manual of SGSD-1022 / SGSD-1022P

SGSW-2840 / SGSW-2840P


Command

Function

Mode

ip source-guard

Configures the switch to filter inbound traffic based on source

IPaddress, or source IP address and corresponding MAC

address

IC

ip source-guard binding

Adds a static address to the source-guard binding table

GC

show ip source-guard

Shows whether source guard is enabled or disabled on

eachinterface

PE

show ip source-guardbinding

Shows the source guard binding table

PE

Table 5-45 IP Source Guard Commands

ip source-guard

This command configures the switch to filter inbound traffic based source IP address, or source IP address and corresponding

MAC address. Use the no form to disable this function.

Syntax

ip source-guard {sip | sip-mac}

no ip source-guard

sip -Filters traffic based on IP addresses stored in the binding table.

sip-mac -Filters traffic based on IP addresses and corresponding MAC addresses stored in the binding table.

Default Setting

Disabled

Command Mode

Interface Configuration (Ethernet)

Command Usage

• Source guard is used to filter traffic on an unsecure port which receives messages from outside the network or firewall,

and therefore may be subject to traffic attacks caused by a host trying to use the IP address of a neighbor.

• Setting source guard mode to “sip” or “sip-mac” enables this function on the selected port. Use the “sip” option to check

the VLAN ID, source IP address, and port number against all entries in the binding table. Use the “sip-mac” option to

check these same parameters, plus the source MAC address. Use the no source guard command to disable this

function on the selected port.

• When enabled, traffic is filtered based upon dynamic entries learned via DHCP snooping, or static addresses

configured in the source guard binding table.

• Table entries include a MAC address, IP address, lease time, entry type (Static-IP-SG-Binding,

Dynamic-DHCP-Binding, Static-DHCP-Binding), VLAN identifier, and port identifier.

• Static addresses entered in the source guard binding table with the ip source-guard binding command are

automatically configured with an infinite lease time. Dynamic entries learned via DHCP snooping are configured by the

DHCP server itself; static entries include a manually configured lease time.

498

Advertising
This manual is related to the following products: