291
By default, the maximum number for IPv4 is 256, and the maximum number of IPv6 is 256.
If the maximum number of IPv4 (or IPv6) binding entries to be configured is smaller than the number of
existing IPv4 (or IPv6) binding entries on the port, the maximum number can be configured successfully
and the existing entries will not be affected. New IPv4 (or IPv6) binding entries, however, cannot be
added any more unless the number of IPv4 (or IPv6) binding entries on the port drops below the
configured maximum.
Examples
# Set the maximum number of IPv4 source guard entries to 100 on port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] ip check source max-entries 100
user-bind
Syntax
user-bind
{
ip-address
ip-address
|
ip-address
ip-address
mac-address
mac-address
|
mac-address
mac-address
} [
vlan
vlan-id
]
undo
user-bind
{
ip-address
ip-address
|
ip-address
ip-address
mac-address
mac-address
|
mac-address
mac-address
} [
vlan
vlan-id
]
View
Layer 2 Ethernet interface view
Default level
2: System level
Parameters
ip-address
ip-address
: Specifies the IPv4 address for the static binding. The IPv4 address can only be a
Class A, Class B, or Class C address and can be neither 127.x.x.x nor 0.0.0.0.
mac-address
mac-address
: Specifies the MAC address for the static binding in the format H-H-H. The
MAC address cannot be all 0s, all Fs (a broadcast address), or a multicast address.
vlan
vlan-id
: Specifies the VLAN for the static binding. The
vlan-id
argument is the ID of the VLAN to be
bound, in the range 1 to 4094.
Description
Use the
user-bind
command to configure an IPv4 static binding.
Use the
undo user-bind
command to delete an IPv4 static binding.
By default, no static binding exists on a port.
You cannot configure a static binding on a port in an aggregation group.
Related commands:
display user-bind
.
Examples
# Configure a static IPv4 source guard on port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] user-bind ip-address 192.168.0.1 mac-address
0001-0001-0001