409
NOTE:
You cannot configure the same static binding entry on one port for multiple times, but you can
configure the same static entry on different ports.
Configuring the dynamic IPv4 source guard binding function
After the dynamic IPv4 source guard binding function is enabled on a port, IP source guard generates
binding entries dynamically through cooperation with DHCP protocols:
•
On a Layer 2 Ethernet port, IP source guard cooperates with DHCP snooping, dynamically obtains
the DHCP snooping entries generated during dynamic IP address allocation, and generates IP
source guard entries accordingly.
•
On a VLAN interface, IP source guard cooperates with DHCP relay, dynamically obtains the DHCP
relay entries generated during dynamic IP address allocation across network segments, and
generates IP source guard entries accordingly.
Dynamic IPv4 source guard entries can contain such information as MAC address, IP address, VLAN
tag, ingress port information, and entry type (DHCP snooping or DHCP relay), where the MAC address,
IP address, or VLAN tag information may not be included depending on your configuration. IP source
guard applies these entries to the port to filter packets.
To configure the dynamic IPv4 source guard binding function:
To do…
Command…
Remarks
1.
Enter system view.
system-view
—
2.
Enter interface view.
interface
interface-type interface-
number
—
3.
Configure the dynamic IPv4
source guard binding
function.
ip check source
{
ip-address
|
ip-
address
mac-address
|
mac-
address
}
Required
Not configured by default
NOTE:
•
To implement dynamic IPv4 source guard binding in IP source guard, make sure that DHCP snooping
or DHCP relay is configured and works normally. For information about DHCP snooping
configuration and DHCP relay configuration, see
Layer 3—IP Services Configuration Guide.
•
If you configure dynamic IPv4 source guard binding on a port multiple times, only the last
configuration takes effect.
Displaying and maintaining IP source guard
To do…
Command…
Remarks
Display static IP source guard
binding entries
display user-bind
[
interface
interface-type
interface-number
|
ip-address
ip-address
|
mac-address
mac-address
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view