cisco — Example: Double Authentication

Example: Configuring Login and Failed-Login Banners for AAA Authentication The following example shows how to configure a login banner that is displayed when a user logs in to the system, (in this case, the phrase “Unauthorized Access Prohibited”). The asterisk (*) is used as the delimiting character. RADIUS is specified as the default login authentication method. Device> enable Device# configure terminal Device(config)# aaa new-model Device(config)# aaa authentication banner *Unauthorized Access Prohibited* Device(config)# aaa authentication login default group radius Device(config)# end This configuration displays the following login banner: Unauthorized Access Prohibited Username:

The following example shows how to configure a failed-login banner that is displayed when a user tries to log in to the system and fails, (in this case, the phrase “Failed login. Try again”). The asterisk (*) is used as the delimiting character. RADIUS is specified as the default login authentication method. Device> enable Device# configure terminal Device(config)# aaa new-model Device(config)# aaa authentication banner *Unauthorized Access Prohibited* Device(config)# aaa authentication fail-message *Failed login. Try again.* Device(config)# aaa authentication login default group radius Device(config)# end This configuration displays the following login and failed-login banner:

Unauthorized Access Prohibited Username: Password: Failed login. Try again. Example: AAA Packet of Disconnect Server Key The following example shows how to configure POD (packet of disconnect), which terminates connections on the network access server (NAS) when particular session attributes are identified.

Device> enable Device# configure terminal Device(config)# aaa new-model Device(config)# aaa authentication ppp default radius Device(config)# aaa accounting network default start-stop radius Device(config)# aaa accounting delay-start Device(config)# aaa pod server server-key xyz123 Device(config)# radius server non-standard Device(config-sg-radius)# address ipv4 10.2.1.1 Device(config-sg-radius)# key rad123 Device(config-sg-radius)# end Example: Double Authentication The examples in this section illustrate possible configurations to be used with double authentication. Your configurations could differ significantly, depending on your network and security requirements.

Configuring Authentication Example: Configuring Login and Failed-Login Banners for AAA Authentication Configuring Authentication 40