When you use the static keyword, the command displays static IPv4 source guard entries. If you
specify neither a port nor an interface card, the command displays static IPv4 source guard entries
on all ports.
Examples
# Display all IPv4 source guard entries.
<Sysname> display ip source binding
Total entries found: 5
MAC Address
040a-0000-4000
040a-0000-3000
040a-0000-2000
040a-0000-1000
040a-0000-0000
# Display all static IPv4 source guard entries.
<Sysname> display ip source binding static
Total entries found: 2
MAC Address
040a-0000-0012
040a-0000-0013
Table 80 Command output
Field
Total entries found
MAC Address
IP Address
VLAN
Interface
Type
Related commands
•
ip verify source
•
ip source binding
ip source binding
Use ip source binding to configure a static IPv4 source guard entry on a port.
Use undo ip source binding to delete a static IPv4 source guard entry from a port.
Syntax
ip source binding { ip-address ip-address | ip-address ip-address mac-address mac-address |
mac-address mac-address } [ vlan vlan-id ]
IP Address
10.1.0.9
10.1.0.8
10.1.0.7
10.1.0.6
N/A
IP Address
10.1.0.12
10.1.0.12
Description
Total number of IPv4 source guard entries.
MAC address of the IPv4 source guard entry. N/A means that no MAC
address is bound in the entry.
IP address of the IPv4 source guard entry. N/A means that no IP
address is bound in the entry.
VLAN bound to the IPv4 source guard entry. N/A means that no VLAN
information exists in the entry.
Interface of the IPv4 source guard entry.
Type of the IPv4 source guard entry:
•
Static—Static entry.
•
DHCP-SNP—Entry generated based on a DHCP snooping entry.
•
DHCP-RLY—Entry generated based on a DHCP relay entry.
453
VLAN
Interface
2
GE3/0/1
2
GE3/0/1
2
GE3/0/1
N/A
GE3/0/2
N/A
GE3/0/2
VLAN
Interface
6
GE3/0/3
6
GE3/0/3
Type
Static
DHCP-SNP
DHCP-SNP
DHCP-RLY
DHCP-RLY
Type
Static
Static