Syntax
bind-attribute { ip ip-address | location port slot-number subslot-number port-number | mac mac-address
| vlan vlan-id } *
undo bind-attribute { ip | location | mac | vlan } *
Default
No binding attribute is configured for a local user.
Views
Local user view
Predefined user roles
network-admin
Parameters
ip ip-address: Specifies the IP address of the user. This option applies only to 802.1X users.
location port slot-number subslot-number port-number: Specifies the port to which the user is bound. The
slot-number argument is in the range of 0 to 255, the subslot-number argument is in the range of 0 to 15,
and the port-number argument is in the range of 0 to 255. If the port that the user accesses is not the
same as that the user is bound, the authentication fails. This option applies only to LAN users.
mac mac-address: Specifies the MAC address of the user in the format H-H-H. This option applies only to
LAN users.
vlan vlan-id: Specifies the VLAN to which the user belongs. The vlan-id argument is in the range of 1 to
4094. This option applies only to LAN users.
Usage guidelines
Binding attributes are checked upon authentication of a local user. If the binding attributes of a local user
do not match the configured ones, the user fails the checking and the authentication.
Binding attribute checking does not take the service types of the users into account. A configured binding
attribute is effective for all types of users. Be cautious when deciding which binding attributes should be
configured for which types of local users. For example, an IP address binding applies only to 802.1X
authentication that supports IP address upload. If you configure an IP address binding for an
authentication method that does not support IP address upload, for example, MAC authentication, the
local authentication fails.
Examples
# Bind IP address 3.3.3.3 with the network access user abc.
<Sysname> system-view
[Sysname] local-user abc class network
[Sysname-luser-network-abc] bind-attribute ip 3.3.3.3
Related commands
display local-user
24