cisco — Example: Configuring Method Lists

It is important to remember that a FAIL response is significantly different from an ERROR. A FAIL means that the user has not met the criteria contained in the applicable authentication database to be successfully authenticated. Authentication ends with a FAIL response. An ERROR means that the security server has not responded to an authentication query. Because of this, no authentication has been attempted. Only when an ERROR is detected will AAA select the next authentication method defined in the authentication method list. Suppose the system administrator wants to apply a method list only to a particular interface or set of interfaces.

In this case, the system administrator creates a named method list and then applies this named list to the applicable interfaces. The following example shows how the system administrator can implement an authentication method that will be applied only to interface 3:

Device> enable Device# configure terminal Device(config)# Device(config)# Device(config)# aaa authentication ppp server-group1 group radius group tacacs+ local none Device(config)# interface gigabitethernet 1/0/3 Device(config-if)# ppp authentication chap server-group1 Device(config-if)# end In this example, “apple” is the name of the method list, and the protocols included in this method list are listed after the name in the order in which they are to be performed. After the method list has been created, it is applied to the appropriate interface. Note that the method list name (apple) in both the AAAand PPP authentication commands must match.

In the following example, the system administrator uses server groups to specify that only R2 and T2 are valid servers for PPP authentication. To do this, the administrator must define specific server groups whose members are R2 (172.16.2.7) and T2 (172.16.2.77), respectively. In this example, the RADIUS server group “rad2only” is defined as follows using the aaa group server command: Device> enable Device# configure terminal Device(config)# aaa group server radius rad2only Device(config-sg-radius)# server 172.16.2.7 Device(config-sg-radius)# end The TACACS+ server group “tac2only” is defined as follows using the aaa group server command:

Device> enable Device# configure terminal Device(config)# aaa group server tacacs+ tac2only Device(config-sg-tacacs)# server 172.16.2.77 Device(config-sg-tacacs)# end The administrator then applies PPP authentication using the server groups. In this example, the default methods list for PPP authentication follows this order: group rad2only , group tac2only , and local : Device> enable Device# configure terminal Device(config)# aaa authentication ppp default group rad2only group tac2only local Device(config)# exit If a method list is configured under VTY lines, the corresponding method list must be added to AAA. The following example shows how to configure a method list under a VTY line:

Device> enable Device# configure terminal Device(config)# line vty 0 4 Device(config-line)# authorization commands 15 auth1 Device(config-line)# exit The following example shows how to configure a method list in AAA: Configuring Authentication Example: Configuring Method Lists Configuring Authentication 35