< Home

firewall mac-binding

Function

The firewall mac-binding command adds address binding entries.

The undo firewall mac-binding command deletes address binding entries.

Format

firewall mac-binding ip-address mac-address [ vpn-instance vpn-instance-name ] [ vid vlan-id ] [ description description-text ]

undo firewall mac-binding ip-address [ description description-text ] [ vpn-instance vpn-instance-name ]

undo firewall mac-binding all [ vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
ip-address Specifies the IP address of the address binding pair. The value is in dotted decimal notation.
mac-address Specifies the MAC address of the address binding pair. The format is H-H-H. Each H represents four hexadecimal digits.
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be the name of an existing VPN instance.
vlan-id Indicates the ID of a bound VLAN.

The value is an integer ranging from 1 to 4094.

all Indicates all address binding pairs. -
description description-text Specifies the description of an address binding pair.

The value is a string of 1 to 48 characters.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the address binding function is disabled, the address binding pair can be configured. However, the configuration does not take effect.

Example

# Insert an address binding entry with IP address 192.168.10.10 and MAC address 00e0-0000-0001 into the address binding table.

<sysname> system-view
[sysname] firewall mac-binding enable
[sysname] firewall mac-binding 192.168.10.10 00e0-0000-0001 description mac_binding
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >