add mac

Permanently authenticates certain hosts.
Syntax
add mac mac-address [ ethernet unit/slot/port ] [ duration time ]
no add mac mac-address [ ethernet unit/slot/port ] [ duration time ]
Command Default

Permanent authentication is not enabled.

Parameters
mac-address
Specifies the MAC address of the host.
ethernet unit/slot/port
Specifies the Ethernet interface.
duration time
Specifies how long the MAC address remains authenticated. Valid values are from 0 through 128,000 seconds. The default is the time configured using the reauth-time command. If 0 is configured, then Web Authentication for the MAC address will not expire.
Modes

Web Authentication configuration mode

Usage Guidelines

Certain hosts, such as a DHCP server, gateway, or printers, may need to be permanently authenticated. Typically, these hosts are managed by the network administrator and are considered to be authorized hosts. Also, some of these hosts (such as printers) may not have a browser and will not be able to perform the Web Authentication.

Note: If a MAC address is statically configured, the MAC address will not be allowed to be dynamically configured on any port.

The no form of the command, without any parameters, removes all hosts and sets the duration a MAC address remains authenticated to its default.

Examples

The following example configures the host with MAC address 0000.00eb.2d14 to be permanently authenticated.

device(config)# vlan 10
device(config-vlan-10# webauth
device(config-vlan-10-webauth)# add mac 0000.00eb.2d14 duration 0

The following example specifies the MAC address to be added by the specified port that is a member of the VLAN.

device(config)# vlan 10
device(config-vlan-10# webauth
device(config-vlan-10-webauth)# add mac 0000.00eb.2d14 ethernet 1/1/1 duration 0