ip source binding
To add a static IP source binding rule for all interfaces or for an interface, use the ip source binding Global Configuration mode command.
To delete a static IP source binding rule for all interfaces or for an interface, use the no form of this command.
Syntax
ip source binding MAC-Addr vlan VLAN-LIST IPv4-Addr interface interface-id
no ip source binding MAC-Addr vlan VLAN-LIST IPv4-Addr interface interface-id
Parameters
MAC-Addr—MAC address for IP source binding.
vlan VLAN-LIST—Specifies a VLAN ID or a range of VLAN IDs for IP source binding.
IPv4-Addr—IP address for IP source binding.
interface interface-id—Specifies an interface ID or a list of interfaces. The interfaces can be one of these types: Ethernet port or port channel.
Default Configuration
No IP source binding rule is configured.
Command Mode
Global Configuration mode
User Guidelines
A static IP source binding entry has an IP address, its associated MAC address, and its associated VLAN number. The entry is based on the MAC address and the VLAN number. If you modify an entry by changing only the IP address, the switch updates the entry instead of creating a new one.
Example
switchxxxxxx(config)# ip source binding 00:aa:bb:cc:dd:ee vlan 7 192.168.1.50 interface fa1
switchxxxxxx(config)# ip source binding 00:bb:bb:cc:dd:ee vlan 7 192.168.1.60 interface gi1
switchxxxxxx(config)# ip source binding 00:cc:bb:cc:dd:ee vlan 10 192.168.1.90 interface po1