Currently Empty: 0.00 €
Module 2 - Lab 3 - User Accounts and Authentication Methods
As a network engineer, you have been given a task to connect a new switch to an existing network. The switch will be used to expand the network and increase its capacity. However, before the switch can be used, it needs to be set up to use RADIUS authentication so that a technician can log in using the credentials they received earlier. Â
Step 1: Log in with the default privileges to the switch and check the AAA configuration:
There is an existing RADIUS server called that is used for authentication in the network. Log in to the and AAA configuration.
Step 2: Add RADIUS configuration on SW1 switch:
Step 2: Add RADIUS configuration on SW1 switch:
Add the RADIUS configuration on the switch and verify the configuration.
SERVER1 RADIUS:Â
IP: 10.10.1.200, auth-type (default PAP), auth-port (default 1812), RADIUS key Radius2OpenÂ
Step 3: Set it as the default login option:
Set RADIUS authentication as the default log in method, save the configuration and logout. Check if you can log into the user account created by System Administrator (user: stordis, password: route2open)Â
- The default credentials for SONiC: admin / YourPaSsWoRdÂ
- Make sure both devices are in the same network, and they are pingable.Â
- If you configure AAA incorrectly you must reinstall SONiC.
- Â
The purpose of this lab is to practice changing user authentication method to RADIUS authentication.Â
Â
Step 1: Log in with the default privileges to the switch and check the AAA configuration.Â
Â
Log in to SW1 and check AAA configuration.Â
 1. Log in to the SONiC using the default login credentials.Â
 2. sonic login: adminÂ
 3. Password:Â
 4. Linux sonic 5.10.0–8–2–amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64Â
 5. You are onÂ
 6. ____  ___ _  _ _ ____Â
 7. / ___| / _ \| \ | (_)/ ___|Â
 8. \___ \| | | | \| | | |Â
 9. ___) | |_| | |\ | | |___Â
10. |____/ \___/|_| \_|_|\____|Â
11. — Software for Open Networking in the Cloud —Â
12. Unauthorized access and/or use are prohibited.Â
13. All access and/or use are subject to monitoring.Â
14. Help:Â Â Â http://azure.github.io/SONiC/Â
15. admin@sonic:~$ sonic–cliÂ
16. sonic# show aaaÂ
17. sonic# show radius-serverÂ
18. ——————————–Â
19. RADIUS Global ConfigurationÂ
20. ——————————–Â
21. key configured : NoÂ
22. sonic# Â
Â
Step 2: Add RADIUS configuration on SW1 switch.Â
Add new configurationÂ
 1. admin@sonic:~$ sonic–cliÂ
 2. sonic# configure terminalÂ
 3. sonic(config)# radius–server host 10.10.1.200 key Radius2OpenÂ
 4. sonic(config)# Â
 5. sonic(config)# endÂ
 6. sonic(config)# exitÂ
 7. sonic# show aaaÂ
 8. sonic# show radius-serverÂ
 9. ——————————–Â
10. RADIUS Global ConfigurationÂ
11. ——————————–Â
12. timeout       : 5Â
13. auth–type     : papÂ
14. key configured : NoÂ
15. ——————————————————————————–Â
16. HOST AUTH–TYPE KEY–CONFIG AUTH–PORT PRIORITY TIMEOUT RTSMT VRFÂ Â SIÂ
17. ——————————————————————————–Â
18. 10.10.1.200 –        Yes       1812     –       –      –    –    – Â
Â
Step 3: Set it as the default login option.Â
Change the default authentication method to RADIUS, logout and verify that user login (stordis / route2open) works.Â
 1. admin@sonic:~$ sonic–cliÂ
 2. sonic# configure terminalÂ
 3. sonic(config)# aaa authentication login default group radiusÂ
 4. sonic(config)# endÂ
 5. sonic(config)# exitÂ
 6. sonic# show aaaÂ
 7. ——————————–Â
 8. AAA Authentication InformationÂ
 9. ——————————–Â
10. failthrough : FalseÂ
11. login–method : radiusÂ
12. sonic# show radius-serverÂ
13. ——————————–Â
14. RADIUS Global ConfigurationÂ
15. ——————————–Â
16. timeout       : 5Â
17. auth–type     : papÂ
18. key configured : NoÂ
19. ——————————————————————————–Â
20. HOST AUTH–TYPE KEY–CONFIG AUTH–PORT PRIORITY TIMEOUT RTSMT VRFÂ Â SIÂ
21. ——————————————————————————–Â
22. 10.10.1.200 –        Yes       1812     –       –      –    –    –Â
23. sonic# exitÂ
23. admin@sonic:~$ sudo config save -yÂ
24. admin@sonic:~$ logout
Result: You are logged into Klish in EXEC mode.Â
 1. Debian GNU/Linux 10 sonic ttyS0Â
 2.  Â
 3. sonic login: stordisÂ
 4. Password:Â
 5. Last login: Fri Apr 14 08:59:37 UTC 2023 on ttyS0Â
 6. Linux sonic 4.19.0–9–2–amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64Â
 7. You are onÂ
 8.  ____  ___ _  _ _ ____Â
 9. / ___| / _ \| \ | (_)/ ___|Â
10. \___ \| | | | \| | | |Â
11.  ___) | |_| | |\ | | |___Â
12. |____/ \___/|_| \_|_|\____|Â
13.  Â
14. — Software for Open Networking in the Cloud —Â
15.  Â
16. Unauthorized access and/or use are prohibited.Â
17. All access and/or use are subject to monitoring.Â
18.  Â
19. Help: http://azure.github.io/SONiC/Â
20.  Â
21. sonic#Â