• The aaa authentication command defines a method list, “test,” to be used on serial interfaces running PPP. The keywords group tacacs+ means that authentication will be done through TACACS+. If TACACS+ returns an ERROR of some sort during authentication, the keyword local indicates that authentication will be attempted using the local database on the network access server. • The interface command selects the line. • The ppp authentication command applies the test method list to this line. • The address ipv4 command identifies the TACACS+ daemon as having an IP address of 192.0.2.3.
• The key command defines the shared encryption key to be “key1.” The following example shows how to configure AAA authentication for PPP: Device(config)# aaa authentication ppp default if-needed group tacacs+ local In this example, the keyword default means that PPP authentication is applied by default to all interfaces. The if-needed keyword means that if the user has already authenticated by going through the ASCII login procedure, then PPP is not necessary and can be skipped. If authentication is needed, the keywords group tacacs+ means that authentication will be done through TACACS+.
If TACACS+ returns an ERROR of some sort during authentication, the keyword local indicates that authentication will be attempted using the local database on the network access server. The following example shows how to create the same authentication algorithm for PAP, but it calls the method list “MIS-access” instead of “default”:
Device> enable Device# configure terminal Device(config)# aaa authentication ppp MIS-access if-needed group tacacs+ local Device(config)# interface gigabitethernet 1/1/2 Device(config)# ppp authentication pap MIS-access Device(config)# end In this example, because the list does not apply to any interfaces (unlike the default list, which applies automatically to all interfaces), the administrator must select interfaces to which this authentication scheme should apply by using the interface command. The administrator must then apply this method list to those interfaces by using the ppp authentication command. Example:
AAA Scalability The following example shows a general security configuration using AAA with RADIUS as the security protocol. In this example, the network access server is configured to allocate 16 background processes to handle AAA requests for PPP.
Device> enable Device# configure terminal Device(config)# aaa new-model Device(config)# radius server radserver Device(config-sg-radius)# address ipv4 radius-host Device(config-sg-radius)# key myRaDiUSpassWoRd Device(config-sg-radius)# exit Device(config)# radius-server configure-nas Device(config)# username root password ALongPassword Device(config)# aaa authentication ppp dialins group radius local Device(config)# aaa authentication login admins local Device(config)# aaa authorization network default group radius local Device(config)# aaa accounting network default start-stop group radius Device(config)# aaa processes 16 Configuring Authentication Example:
AAA Scalability Configuring Authentication 38