i have been asked to list a switch under radius control , some switches are already added under it but im supposed to add any switches that arent , can i simply add the same command to other switches? also the key is made of numbers do i just paste the key in its number form
radius server radius
address ipv4 X.X.X.X auth-port 1812 acct-port 1813
key 7 999999999999999tttttt
Yes you can copy the exiting working Switch config and paste to new switch required radius control.
Couple steps required to be cautious while implementing.
1. Make sure you have a local username in case if the radius not working.
2. add the device into Radius device list.
3. apply the relevance AAA config to work as expected.
in case you see any issue logging using radius server, radius server will have logs why the user failing to log in for further diagnosis purpose. (sometimes you have extra space or copy-paste introduced new hidden character)
aaa authentication login default group radius local <<- this is the correct syntax (if you have radius group)
Another example if you using Group Servers :