cisco — Example: Automated Double Authentication

version 16.10 no service password-encryption ! hostname myrouter ! ! ! **The following AAA commands are used to configure double authentication: ! ! **The following command enables AAA: aaa new-model ! **The following command enables user authentication via the RADIUS AAA server: ! aaa authentication login default none aaa authentication ppp default group radius ! **The following command causes the remote user’s authorization profile to be ! downloaded from the AAA server to the router when required: ! aaa authorization network default group radius ! enable password mypassword !

ip host blue 172.21.127.226 ip host green 172.21.127.218 ip host red 172.21.127.114 ip domain-name example.com ip name-server 172.16.2.75 ! ! interface GigabitEthernet0/0/0 ip address 172.21.127.186 255.255.255.248 no ip route-cache no ip mroute-cache no keepalive ntp disable no cdp enable ! interface Virtual-Template1 ip unnumbered loopback0 no ip route-cache no ip mroute-cache ! ! **The following command specifies that device authentication occurs via PPP CHAP: ppp authentication chap ! router eigrp 109 network 172.21.0.0 no auto-summary ! ip default-gateway 172.21.127.185 no ip classless ip route 172.21.127.114 255.255.255.255 172.21.127.113 !

**Virtual profiles are required for double authentication to work: virtual-profile virtual-template 1 dialer-list 1 protocol ip permit no cdp run ! **The following command defines where the TACACS+ AAA server is: tacacs server server1 address ipv4 172.16.57.35 ! **The following command defines the key to use with TACACS+ traffic (required): key mytacacskey snmp-server community public RO ! line con 0 exec-timeout 0 0 Configuring Authentication Example: Automated Double Authentication Configuring Authentication 46