Back to Lab Listing

Lab Objective:

Learn how to configure RADIUS.

Lab Purpose:

As I’m sure you’ve read in your study guide, AAA can use TACACS+ or RADIUS to control user access to network equipment. In this lab we will configure a RADIUS server to authenticate a user to connect to a router.

Lab Tool:

Packet Tracer

Lab Topology:

Please use the following topology to complete this lab exercise:

configuring radius

Lab Walkthrough:

Task 1:

Connect a PC to a router F0/0 and F0/1 on the router to a server. You may have different interfaces from mine, so just swap to your relevant interfaces.

Task 2:

Configure the IP address and default gateway on the host as per the diagram.

configuring radius2

Task 3:

Configure the IP addresses on the router interfaces. Change the hostname to R1, which the RADIUS server will verify.

Router(config)#int f0/0

Router(config-if)#ip add 192.168.2.1 255.255.255.0

Router(config-if)#no shut

Router(config-if)#int f0/1

Router(config-if)#ip add 192.168.1.1 255.255.255.0

Router(config-if)#no shut

Router(config-if)#exit

Router(config)#hostname R1

Router(config)#enable password hello

Task 4:

Make sure you also add an IP address of 192.168.1.2 to the server and a default gateway of 192.168.1.1.

configuring radius3

Task 5:

Configure AAA on the server. The client name is R1, the IP is 192.168.1.1, the key is p@ssword (goes in the ‘Secret’ field), and the server type is RADIUS. After you click ‘Add’, create a username of ‘101labs’ and a password of ‘cisco’ under User Setup and click ‘Add’.

configuring radius4

Task 6:

Add the RADIUS configuration to the router. Create the RADIUS server IP address and the key to be sent. The ‘login default – local’ line of config tells the router to use any local usernames and passwords if it can’t reach the server to authenticate the client.

R1(config)#aaa new-model

R1(config)#radius-server host 192.168.1.2 key p@ssword

R1(config)#aaa authentication login default group radius local

R1(config)#line vty 0 15

R1(config-line)#login authentication default

Task 7:

Enable debugging for AAA on the router.

R1#debug aaa authentication

Task 8:

Telnet from the PC to the router. The session will be validated by the RADIUS server. You will see the router prompt appear to show you are connected. Feel free to log in if you wish.

configuring radius5

Task 9:

Check the router debug messages.

*Aug 29 14:19:24.267: AAA/BIND(4): Bind i/f

*Aug 29 14:19:24.267: AAA/AUTHEN/LOGIN(4): Pick method list ‘default’

Note:

This is a simple AAA configuration; it can be far more complicated, of course!

Newsletter Subscribe

Stay Informed, Stay Inspired: Subscribe for Cutting-Edge IT-Certification Insights

101 Labs Newsletter