Device> enable Device# configure terminal Device(config)# aaa new-model Device(config)# aaa authorization commands 15 auth1 group tacacs+ Device(config)# exit If no method list is configured under VTY lines, the default method list must be added to AAA. The following example shows a VTY configuration without a method list: Device> enable Device# configure terminal Device(config)# line vty 0 4 Device(config-line)# end The following example shows how to configure the default method list: Device> enable Device# configure terminal Device(config)# aaa new-model Device(config)# aaa authorization commands 15 default group tacacs+ Device(config)# exit Example:
RADIUS Authentication This section provides two sample configurations using RADIUS. The following example shows how to configure the router to authenticate and authorize using RADIUS:
Device> enable Device# configure terminal Device(config)# aaa authentication login radius-login group radius local Device(config)# aaa authentication ppp radius-ppp if-needed group radius Device(config)# aaa authorization exec default group radius if-authenticated Device(config)# aaa authorization network default group radius Device(config)# line 3 Device(config-line)# login authentication radius-login Device(config-line)# exit Device(config)# interface gigabitethernet 1/0/1 Device(config-if)# ppp authentication radius-ppp Device(config-if)# end The lines in this sample RADIUS authentication and authorization configuration are defined as follows:
• The aaa authentication login radius-login group radius local command configures the router to use RADIUS for authentication at the login prompt. If RADIUS returns an error, the user is authenticated using the local database. • The aaa authentication ppp radius-ppp if-needed group radius command configures the Cisco IOS XE software to use PPP authentication using CHAP or PAP if the user has not already logged in. If the EXEC facility has authenticated the user, PPP authentication is not performed.
• The aaa authorization exec default group radius if-authenticated command queries the RADIUS database for information that is used during EXEC authorization, such as autocommands and privilege levels, but only provides authorization if the user has successfully authenticated. • The aaa authorization network default group radius command queries RADIUS for network authorization, address assignment, and other access lists. • The login authentication radius-login command enables the radius-login method list for line 3. • The ppp authentication radius-ppp command enables the radius-ppp method list for serial interface 0. Configuring Authentication Example:
RADIUS Authentication Configuring Authentication 36