Creating Static Passcodes
Static passcodes can be used for troubleshooting purposes, or for networks that want to use passcode authentication, but do not have the ability to support automatically-generated passcodes (for example, the network does not fully support the use of SNMP traps or Syslog messages with passcodes).
Manually-created passcodes are used in conjunction with dynamic passcodes . You can configure up to four static passcodes that never expire. Unlike dynamically created passcodes, static passcodes are saved to flash memory. By default, there are no static passcodes configured on the switch.
To create static passcodes, enter commands such as the following.
device(config-vlan-10-webauth)# auth-mode passcode static 3267345 device(config-vlan-10-webauth)# auth-mode passcode static 56127
The passcode can be a number from 4 to 16 digits in length. You can create up to four static passcodes, each with a different length. Static passcodes do not have to be the same length as passcodes that are automatically generated.
After creating static passcodes, enable passcode authentication.
To view the passcodes configured on the switch, use the
show webauth vlan
vlan-id
passcode command. Refer to
Displaying Passcodes.