The Wayback Machine - https://web.archive.org/web/20240906175041/https://www.geeksforgeeks.org/aaa-authentication-authorization-and-accounting-configuration-locally/
Open In App

AAA (Authentication, Authorization and Accounting) configuration (locally)

Last Updated : 10 Mar, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Prerequisite – AAA (Authentication, Authorization and Accounting) 
To provide security to access network resources, AAA is used. AAA is a standard based framework used to control who is permitted to use network resources (through authentication), what they are authorized to do (through authorization) and capture the actions performed while accessing the network (through accounting). 

AAA can be implemented by using the local database (running configuration of the device) or by using an external ACS server. Here, we will talk about the AAA configuration on the device locally only. 

AAA configuration – 
Now, in this example, we are configuring AAA Authentication on router.It includes following steps:- 
1. Enable AAA on router 
 

router1(config)#aaa new-model

AAA is enabled by the command aaa new-model . 

2. Create default authentication list – 
 

router1(config)#aaa authentication 
                     login default local

It enabled by the command aaa authentication login default local. 
In this command, default means we will Use the default method list and local Means we will use the local database. 

3. Apply the list to vty lines – 
 

router1(config)#line vty 0 4
router1(config)#login authentication default
router1(config)#exit

After creating the default method list, we have to apply it to the vty lines so that whenever some user try to access the router through SSH or telnet, the user has to provide credentials which are configured. 

4. Creating local user on the router – 
 

router1(config)#username GeeksforGeeks 
           privilege 15 password saurabh 

This is the most important step as we have to create a local database in which we provide the username (as geeksforgeeks), privilege level 15 and password (as saurabh). 

Note – The default method list we have applied on the vty lines will force the user (who wants to access the router) to enter these credentials when he wants to take remote access through telnet or ssh. 

5. Debugging aaa authentication – 
we can see the AAA authentication messages through the command ”debug aaa authentication”. 
 

router1#debug aaa authentication 

 

 

 router2# telnet 10_1_1_1
Trying 10_1_1_1 .... Open
User Access Verification
Username: geeksforgeeks
Password:
router1> 

Now, we will telnet the router1 (ip address-10.1.1.1/24) from router2 (ip address – 10.1.1.2/24) and it will ask for the credentials as shown in the figure. 

 

As soon as the user enters the credentials, we can see the authentication messages. In addition to this, if we want to apply a banner before asking for credentials, we can apply it using the command shown. 
 

router1(config)#aaa authentication 
        banner " welcome to our network" 

If we want to add username and password prompt, we can apply it by using the command shown below. 
 

router1(config)#aaa authentication 
       username-prompt "enter your username" 
router1(config)#aaa authentication 
       password-prompt "enter your password" 

Also, if we want to show a message when the credentials entered by the user are wrong then we can show that by using the command shown below. 
 

router1(config)#aaa authentication 
 fail-message "wrong username or password. 
  Please try again..." 

Also, we can limit the number of attempts a user can enter wrong credentials. After the 3rd attempt to enter the credentials, the session will be automatically terminated. 
 

router1(config)#aaa authentication 
       attempts login 3

 


Previous Article
Next Article

Similar Reads

Computer Network | AAA (Authentication, Authorization and Accounting)
The administrator can take access to a router or a device through a console but it is very inconvenient if he is sitting far from the place of that device. So, eventually, he has to take remote access to that device. But as remote access will be available by using an IP address, therefore, it is possible that an unauthorized user can take access us
4 min read
What is AAA (Authentication, Authorization, and Accounting)?
Authentication, Authorization, and Accounting (AAA) is an architectural framework to gain access to computer resources, enforcing policies, auditing usage, to provide essential information required for billing of services and other processes essential for network management and security. This process is mainly used so that network and software appl
2 min read
Difference Between Authentication and Authorization
Authentication and Authorization are utilized in data security, allowing the safeguarding of an automated data system. Both are very crucial topics often associated with the internet as key components of its service infrastructure. However, each term is distinct, representing different concepts. While they are frequently used in the same context wi
4 min read
Difference between Cloud Accounting and Desktop Accounting
1. Cloud Accounting : In cloud accounting both the accounting system and business data is stored in the cloud means on internet. It is a cloud based approach of performing accounting activities. It is a newer concept and it is based on cloud computing. It provides more number of features to user than the desktop accounting. Advantages of Cloud Acco
3 min read
Difference Between Single-Factor Authentication and Multi-Factor Authentication
The process of verifying a user's identity with the help of login credentials, biometric or OTP is called Authentication. Authentication is verifying a user's identity before allowing them to access the system or resource. Authentication is important to ensure privacy and protect the system from security breaches. Authentication is a core component
4 min read
Introduction of Virtual Router Redundancy Protocol (VRRP) and its configuration
VRRP is an open standard protocol, which is used to provide redundancy in a network. It is a network layer protocol (protocol number-112). The number of routers (group members) in a group acts as a virtual logical router which will be the default gateway of all the local hosts. If one router goes down, one of the other group members can take place
4 min read
Open shortest path first (OSPF) router roles and configuration
Prerequisite - Open shortest path first (OSPF) Open shortest path first (OSPF) is a link-state routing protocol which is used to find the best path between the source and the destination router using its own SPF algorithm. Open shortest path first (OSPF) router roles - An area is a group of contiguous networks and routers. Routers belonging to same
3 min read
Configuration of Router on a stick
Prerequisite - Access and trunk ports Switches divide broadcast domain through VLAN (Virtual LAN). VLAN is a partitioned broadcast domain from a single broadcast domain. Switch doesn't forward packets across different VLANs by itself. If we want to make these virtual LANs communicate with each other, a concept of Inter VLAN Routing is used. Inter V
3 min read
EIGRP Configuration
Prerequisite - EIGRP fundamentals Enhanced Interior Gateway Routing Protocol (EIGRP) is a dynamic routing network-layer Protocol which works on protocol number 88. EIGRP supports classless routing, VLSM, route summarization, load balancing, and many other useful features. It is a Cisco proprietary protocol, so all routers in a network that is runni
3 min read
Basic configuration of Adaptive Security Appliance (ASA)
Prerequisite - Adaptive security appliance (ASA) Adaptive Security Appliance (ASA) is a Cisco security appliance that combines classic firewall features with VPN, Intrusion Prevention, and antivirus capabilities. It has the capability to provide threat defense before the attacks spread into the networks. As an administrator, we have to ensure prote
5 min read
Cisco Switch Configuration basic commands
Prerequisite - Switch Functions A switch is a layer 2 device used to forward packet from one device to another within the network. It forwards the packet through one of its ports on the basis of destination MAC address and the entry in the MAC table. Following basic commands are used to configure a new switch : 1. Changing the hostname of a switch
2 min read
Working of Dynamic Host Configuration Protocol
Dynamic Host Configuration Protocol (DHCP) is a network management protocol used in networks to dynamically assign IP addresses & other network configuration information like default gateway, mask, DNS server address etc. DHCP server automatically assigns IP address to various devices in network. This in turn reduces work of Network Administrat
3 min read
Enable PPP Debug Command in PPP Configuration
For specified Point-to-Point Protocol (PPP) interface, Enable PPP Debug Command, as name suggests, generally enables all of the debugging options. If PORT parameter was not specified, then debugging information or data is generally transmitted to port or telnet session from which command was usually entered, otherwise, it is transmitted to PORT par
3 min read
ADD PPP Command in PPP Configuration
To use a physical layer, ADD command, as the name suggests, is required to add synchronous port, ISDN call, ACC call, MIOX circuit, etc. simply to the Point-to-Point Protocol (PPP) interface. There are several parameters included in this command. Some of the parameters are given below : OVER parameter : It is required to specify the physical interf
3 min read
File transfer protocol server configuration using cisco packet tracer
In this article we are going to design a file transfer protocol server configuration in cisco packet tracer and checking the connectivity for uploading and downloading the file from remote PC. Objectives: To Configure FTP Services on Server.To Upload a File into the FTP Server from Remote PC.To Download a File from the FTP Server from Remote PC.Pro
3 min read
Designing a Serial port configuration using cisco packet tracer
This article concerns the step-by-step designing of serial port configuration in cisco packet tracer using serial interfaces se0/0/0 or se0/0/1. In the end, it will also discuss how to check the network connectivity by transferring PDU’s between remote PCs. Objectives:To Configure serial port in cisco packet tracer using 2 routers and 2 PCs.Simulat
3 min read
Line Configuration in Computer Networks
A network is two or more devices connected through a link. A link is a communication pathway that transfers data from one device to another. Devices can be a computer, printer, or any other device that is capable to send and receive data. For visualization purposes, imagine any link as a line drawn between two points. For communication to occur, tw
9 min read
Zone-based firewall Configuration
Prerequisite - Zone-based firewall Zone-based firewall is an advanced method of stateful firewall. In stateful firewall, an entry containing source IP address, destination IP address, source Port number and destination Port number, is maintained for the traffic generated by the trusted (private) network in the stateful database. This will allow the
5 min read
Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol is a network protocol used to automate the process of assigning IP addresses and other network configuration parameters to devices (such as computers, smartphones, and printers) on a network. Instead of manually configuring each device with an IP address, DHCP allows devices to connect to a network and receive al
14 min read
Domain based Message Authentication, Reporting and Conformance (DMARC)
Gestation period of "@" : In 1970’s, there weren’t more awareness about threats and malicious activities. cybersecurity which was formally known as computer security was gradually progressing. Even before that Electronic Mail (E-mail) was equivalent to sticking note on someone’s computer. Because, who wouldn’t trust any message from their colleague
4 min read
Network Time Protocol (NTP) Security and Authentication
In the powerful scene of PC organizations, where accuracy is foremost, the Network Time Protocol (NTP) assumes an essential part in coordinating a consistent worldly dance among gadgets. As the foundation of time synchronization, NTP guarantees that divergent frameworks can walk as one, working with strong and proficient tasks across an organizatio
7 min read
How is Cryptography Used for Security and Authentication?
Cryptography plays a major role in terms of security and authentication. The process of cryptography is used for transferring data/messages. Through various security and authentication processes, this technique is used. Authorization and non-repudiation of data are also important features of cryptography. Let's get into detail to learn more about h
5 min read
What is User Authentication, and Why is it Important?
Today when more and more companies and organizations are going digital, the security of data and authorization to important systems and services is crucial. User authentication is central to this security paradigm as it refers to the mechanism by which the identity of a user is first confirmed before being granted access to a resource. In this arti
8 min read
PGP - Authentication and Confidentiality
During 2013, the NSA (United States National Security Agency) scandal was leaked to the public, people started to opt for services that could provide a strong privacy for their data. Among the services people opted for, most particularly for Emails, were different plug-ins and extensions for their browsers. Interestingly, among the various plug-ins
9 min read
Message Authentication Codes
Message Authentication Codes are the codes which plays their role in two important functions: Authentication Detection and Falsification Detection. Where do we need these codes? Suppose User A send message to user B with message - 'abc'. A encrypts the message using Shared - Key Cryptosystem for encrypting the message. A sends the key to B using a
2 min read
How message authentication code works?
Prerequisite - Message authentication codes Apart from intruders, the transfer of message between two people also faces other external problems like noise, which may alter the original message constructed by the sender. To ensure that the message is not altered there's this cool method MAC. MAC stands for Message Authentication Code. Here in MAC, s
2 min read
Challenge Handshake Authentication Protocol (CHAP)
Challenge Handshake Authentication Protocol (CHAP) is a Point-to-point protocol (PPP) authentication protocol developed by IETF (Internet Engineering Task Force). It is used at the initial startup of the link. Also, it performs periodic checkups to check if the router is still communicating with the same host. Features : It uses 3-way handshaking p
5 min read
Password Authentication Protocol (PAP)
There are simply two methods to authenticate PPP links namely Password Authentication Protocol (PAP) and Challenge Handshake Authentication Protocol (CHAP). From these two authentication protocols, PAP is less secured as the password is sent in clear text and is performed only at the initial link establishment. Password Authentication Protocol (PAP
3 min read
Challenge Response Authentication Mechanism (CRAM)
Challenge Response Authentication Mechanism (CRAM) is the most often used way to authenticate actions. They are a group of protocols in which one side presents a challenge(to be answered) and the other side must present a correct answer(to be checked/validated) to the challenge in order to get authenticated. Figure - CRAM activity flow diagram Two
3 min read
Types of Two-factor Authentication
Two-factor Authentication refers to the use of any two self-reliant methods from the various authentication methods. Two-factor authentication is used to ensure that the user has been recognized to access secure systems and to increase the security. Two-factor authentication is first implemented for laptops because of the fundamental security liabi
4 min read
Article Tags :