Note These configuration examples include specific IP addresses and other specific information. This information is for illustration purposes only: your configuration will use different IP addresses, different usernames and passwords, and different authorization statements. Example: Configuration of the Local Host for AAA with Double Authentication These two examples show how to configure a local host to use AAA for PPP and login authentication, and for network and EXEC authorization. An example each is shown for RADIUS and for TACACS+. In both the examples, the first three lines configure AAA with a specific server as the AAA server.
The next two lines configure AAA for PPP and login authentication, and the last two lines configure network and EXEC authorization. The last line is necessary only if the access-profile command will be executed as an autocommand. The following example shows device configuration with a RADIUS AAA server:
Device> enable Device# configure terminal Device(config)# aaa new-model Device(config)# radius server radserver Device(config-sg-radisu)# address ipv4 secureserver Device(config-sg-radius)# key myradiuskey Device(config-sg-radius)# exit Device(config)# aaa authentication ppp default group radius Device(config)# aaa authentication login default group radius Device(config)# aaa authorization network default group radius Device(config)# aaa authorization exec default group radius Device(config)# end The following example shows device configuration with a TACACS+ server:
Device> enable Device# configure terminal Device(config)# aaa new-model Device(config)# tacacs server server1 Device(config-server-tacacs)# address ipv4 192.0.2.3 Device(config-server-tacacs)# key mytacacskey Device(config-server-tacacs)# exit Device(config)# aaa authentication ppp default group tacacs+ Device(config)# aaa authentication login default group tacacs+ Device(config)# aaa authorization network default group tacacs+ Device(config)# aaa authorization exec default group tacacs+ Device(config)# end Example: Configuration of the AAA Server for First-Stage PPP Authentication and Authorization This example shows a configuration on the AAA server.
A partial sample AAA configuration is shown for RADIUS. TACACS+ servers can be configured similarly. (See the Complete Configuration with TACACS Example.) This example defines authentication/authorization for a remote host named “hostx” that will be authenticated by CHAP in the first stage of double authentication. Note that the ACL AV pair limits the remote host to Telnet connections to the local host. The local host has the IP address 10.0.0.2. The following example shows a partial AAA server configuration for RADIUS: Configuring Authentication Example: Configuration of the Local Host for AAA with Double Authentication Configuring Authentication 41