Configuring a static IPv4 source guard binding entry

Static IPv4 binding entries take effect on an interface only when the interface is configured with the IPv4 source guard feature (see "Configuring IPv4 source guard on an interface").

You can configure global static and interface-specific static IPv4 source guard binding entries. Global static binding entries take effect on all interfaces configured with the IPv4 source guard feature.

Interface-specific static binding entries take priority over global static binding entries. An interface first uses the static binding entries on the interface to match packets. If no match is found, the interface uses the global binding entries.

Configuring a global static IPv4 source guard binding entry

Step

Command

Remarks

2. Configure a global static IPv4 source guard binding entry.

ip source binding ip-address ip-address mac-address mac-address

By default, no global static IPv4 binding entry exists.

1. Enter system view.

system-view

N/A

Configuring a static IPv4 source guard binding entry on an interface

When you configure a static IPv4 source guard binding entry on an interface, follow these guidelines:

To configure a static IPv4 binding entry on an interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter Layer 2 interface view.

interface interface-type interface-number

N/A

3. Configure a static IPv4 source guard binding entry on the interface.

ip source binding { ip-address ip-address | ip-address ip-address mac-address mac-address | mac-address mac-address } [ vlan vlan-id ]

By default, no static IPv4 binding entry is configured on an interface.