3.10.16 Static IP/IPv6 Source Guard Configuration

Use this command to manually add a Static IP/IPv6 Source Guard entry on the given port.

Command Syntax:

ip source binding interface <port_type> <in_port_type_id> <vlan_var> <ipv4_var> <mac_var>
ipv6 source binding interface <port_type> <port_type_id> [ vlan <vlan_id> ] <ipv6_ucast> <mac_ucast>
Table 3-58. Command Description

Argument

Description

Parameter

<port_type>

Port type in GigabitEthernet

<in_port_type_id>

Port ID in the format of switch-no/port-no

<vlan_var> <vlan_id>

The vlan id for the settings.

<ipv4_var> <ipv6_ucast>

Allowed Source IP address.

<mac_var> <mac_ucast>

Allowed Source MAC address.

Default

N.A

Mode

Global Configuration mode

Usage

Add a static IP Source Guard. To delete it, use the ‘no’ version of the command.

Example

Example 1:

Add a Static IP Source Guard on port 3 with VLAN 2 IP 192.168.0.40 and MAC 10-10-10-10-10-10.

(config)# ip source binding interface GigabitEthernet 1/3 2 192.168.0.40 10-10-10-10-10-10

Example 2:

Delete a Static IP Source Guard on port 3 with VLAN 2 IP 192.168.0.40 and MAC 10-10-10-10-10-10.

(config)# no ip source binding interface GigabitEthernet 1/3 2 192.168.0.40 10-10-10-10-10-10