cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
436
Views
5
Helpful
2
Replies
Highlighted
Beginner

How do I encrypt a radius key in a switch/router configuration?

Hey y'all, new to this forum. Currently studying for my CCNA so I'm pretty green. Figured this would be a good spot to get definitive answers on current best practices.

 

My question is: I'm configuring radius in some new switches we bought (Catalyst 2960x). The problem is that the key shows up in the config in plain txt. I've tried adding 'radius-server key 7 password', but the command fails and seems as though it wants me to key in an already encrypted password string?

 

Is the 'service password-encryption' command the only other way to encrypt that password? I was under the impression that this global command isn't strong encryption. Below is my current config...

 

no service password-encryption

aaa group server radius RADIUSGROUPNAME
server-private xxx.xxx.xxx.xxx key password
ip radius source-interface VlanXX
radius-server retransmit 1
radius-server timeout 1

1 ACCEPTED SOLUTION

Accepted Solutions
VIP Mentor

Re: How do I encrypt a radius key in a switch/router configuration?

You are right with your assumption. The password following the "7" is the obfuscated password that is enabled with "service password-encryption". And yes, it's more a protection against shoulder-surfing and nothing more. But it's likely that your IOS has no more functionality to protect the key. On newer IOS versions there are encrypted passwords that can also protect the keys of AAA-servers and (that was IMO implemented first) VPN pre-shared keys. These keys are of type "6".

2 REPLIES 2
VIP Mentor

Re: How do I encrypt a radius key in a switch/router configuration?

You are right with your assumption. The password following the "7" is the obfuscated password that is enabled with "service password-encryption". And yes, it's more a protection against shoulder-surfing and nothing more. But it's likely that your IOS has no more functionality to protect the key. On newer IOS versions there are encrypted passwords that can also protect the keys of AAA-servers and (that was IMO implemented first) VPN pre-shared keys. These keys are of type "6".

Beginner

Re: How do I encrypt a radius key in a switch/router configuration?

I'm currently on 15.2 and yes it doesn't appear as though 6 is even an option. Good to know, thank you for your help.