User Guide
639
Configuring IPv4 IMPB
IP-MAC Binding Configuration
Step 2
ip source binding
hostname
ip-addr mac-addr
vlan
vlan-id
interface { fastEthernet
port
|
gigabitEthernet
port
|
ten-gigabitEthernet
port |
port-channel
port-channel-id
} {
none |
arp-detection | ip-verify-source | both
}
Manually bind the host name, IP address, MAC address, VLAN ID and port number of the
host, and configure the protect type for the host.
hostname
:
Specify a name for the host. It contains 20 characters at most.
ip-addr
:
Enter the IP address of the host.
mac-addr
:
Enter the MAC address of the host, in the format of xx:xx:xx:xx:xx:xx.
vlan-id
:
Enter the VLAN ID of the host.
port
:
Enter the number of the port on which the host is connected.
none | arp-detection | ip-verify-source | both
:
Specify the protect type for the entry. None
indicates this entry will not be applied to any feature; arp-detection indicates this entry will
be applied to ARP Detection; ip-verify-source indicates this entry will be applied to IPv4
Source Guard.
Step 3
show ip source binding
Verify the binding entry.
Step 4
end
Return to privileged EXEC mode.
Step 5
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to bind an entry with the hostname host1, IP address
192.168.0.55, MAC address 74:d4:35:76:a4:d8, VLAN ID 10, port number 1/0/5, and enable
this entry for the ARP detection feature.
Switch#configure
Switch(config)#ip source binding
host1 192.168.0.55 74:d4:35:76:a4:d8
vlan
10
interface
gigabitEthernet
1/0/5 arp-detection
Switch(config)#show ip source binding
U Host IP-Addr MAC-Addr VID Port ACL SOURCE
- ---- ------- -------- --- ---- --- ------
1 host1 192.168.0.55 74:d4:35:76:a4:d8 10 Gi1/0/5 ARP-D Manual
Notice:
1.Here, ‘ARP-D’ for ‘ARP-Detection’,and’IP-V-S’ for ‘IP-Verify-Source’.
Switch(config)#end
Switch#copy running-config startup-config
Downloaded from