Adding a static binding

To add the static configuration of an IP-to-MAC binding for a port to the database, enter the ip source-binding command at the global configuration level. Use the noform of the command to remove the IP-to-MAC binding from the database.

Syntax:


[no] ip source-binding <mac-address> vlan <vlan-id> <ip-address> interface <port-number>
<mac-address>

Specifies a MAC address to bind with a VLAN and IP address on the specified port in the DHCP binding database.

vlan <vlan-id>

Specifies a VLAN ID number to bind with the specified MAC and IP addresses on the specified port in the DHCP binding database.

<ip-address>

Specifies an IP address to bind with a VLAN and MAC address on the specified port in the DHCP binding database.

interface <port-number >

Specifies the port number on which the IP-to- MAC address and VLAN binding is configured in the DHCP binding database.

An example of the ip source-binding command is shown here:

switch(config)# ip source-binding 0030c1-7f49c0
interface vlan 100 10.10.20.1 interface A4
NOTE:

The ip source-binding command is the same command used by the Dynamic IP Lockdown feature to configure static bindings. The Dynamic ARP Protection and Dynamic IP Lockdown features share a common list of source IP-to-MAC bindings.