You can log on to the vSwitch using Telnet, SSH, Web, or console ports to obtain normal or privileged access permissions. in enterprises with a large number of network devices and high requirements for network security, the account used only for the Switch's local database cannot meet the user's requirements. customers often want to adopt centralized functions, multiple authentication methods.
You can log on to the vSwitch using Telnet, SSH, Web, or console ports to obtain normal or privileged access permissions. in enterprises with a large number of network devices and high requirements for network security, the account used only for the Switch's local database cannot meet the user's requirements. customers often want to adopt centralized functions, multiple authentication methods. this can reduce the IT management burden while improving security. The RADIUS service is one of them.
Here we use a customer's needs as an example: the customer's original WIN2003 domain controller is also a RADIUS authentication server, enabling the built-in IAS (InternetAuthentication Service) Service of WIN2003, performs unified logon authentication for all Cisco switches in the LAN. You have purchased a new DELL34XX switch and want to implement the following functions:
1. whether using the console port or telnet, the login user must first pass the IAS authentication, and only members in this domain can have the permission to access the switch;
2. login users can only obtain access permissions in normal mode. the customer sets a password in privileged mode for telnet or console logon on the switch, users who pass IAS authentication must enter the correct password to obtain the permission to view and modify the configuration.
We set up a simple environment as per the customer's requirements and perform the test in a completely new installation method:
Part 1: configure a vSwitch
1. configure and manage IP addresses for the vSwitch:
Interface vlan 1
Ip address 192.168.2.1 255.255.255.0
2. in global configuration mode, configure the IP address and key of the radius Server. Note that this key is used for communication verification between the RADIUSClient and the Server, the "key" setting must be exactly the same as the "share secret" setting on IAS.
. Then configure the authentication method for user logon and access to the privileged mode. we define the "login" authentication method as follows: first try radius, if radius serverdown, then try Local; enable authentication in privileged mode
To authenticate the password set on the local switch. "Priv" and "test" are custom file names so that they can be bound to the corresponding interface in the next step:
Radius-server host 192.168.2.100auth-port 1812
Radius-server key abcdabcd
Aaa authentication enable priv line
Aaa authentication login test radius local
3. enter the interface configuration mode, bind the corresponding configuration file to the corresponding interface, and set the password to enter the privileged mode:
Line telnet
Login authentication test
Enable authentication priv
Password e10adc3949ba59abbe56e057F20f883e encrypted
Line console
Login authentication test
Enable authentication priv
Password 50ec7f0e57fcc436db275c710a5ef127 encrypted
Finally, do not forget to set a local administrator account and password so that the switch can be managed after the RADIUS server is Down:
Username admin password 21232f297a57a5a743894a0e4a801fc3 level15 encrypted
# To perform RADIUS authentication on the logon WEB page, run the following command:
Console (config) # ip https authentication radius local
Part 2: install and configure the IAS service on the WIN2003 domain controller:
1. open the control panel? Add and delete a program? Add and delete windows components, find networkingservices, click "details", select "internet authentication services", OK, insert
Install the WIN2003 source disk:
2. after the installation is complete, we need to register it to the AD (if it is a working group environment, IAS authenticates the local user or group ). Open IAS, click Action, and select "registerserver in Active Directory ":
3. the system prompts that In order to enable IAS authentication, the IAS Server must be allowed to read the user's Dial-In attribute In AD. Click OK:
4. the system must register the IAS to the RAS/IAS serversgroup. Click OK to open the domain-controlled AD user computer console, in Users, we can see that this IAS named DELL is already a member of it:
5. at the same time, we must enable the "remoteaccess" permission for users in the domains that require IAS authentication. here, the user $ enab15 $ is a special account that needs to be created manually, used for privileged mode recognition through IAS
Use the default account:
6. open IAS, right-click "RADIUSClient", and choose to create a new client. This Client refers to the device requesting authentication service. here is the 5324 switch. enter a name and its management IP address:
7. select "RADIUS Standard" for Client-Vendor and enter "share secret". This key is used for communication verification between RADIUSClient and Server. Therefore, it must be used with the "radius-server key" on the switch.
XXXXXXXX "is set with the same password, and then click finish:
8. right-click "remote accesspolicy" and create an access policy for 5324. Note that multiple policies can be created. The system matches the policy in sequence, the following policies are ignored:
9. select "setup a custom policy" and enter the policy name. Next step:
10. next, define the access policy conditions and click "add". here, select "NAS-IP-Address", that is, this policy is only used for devices that meet the configured IP Address, enter the IP address of 5324. Next step:
11. select "grant remote access" and click next:
12. click next.
13. right-click the policy you just created to open the property:
14. click "edit profile", from which we can select the authentication method. Here we select not encrypted authentication:
15. select Encryption to ensure that all options are selected:
16. click the "advanced" option and click "add" to add the "attribute" value during the authentication process. Note that if there are other unnecessary attribute settings, please delete all the values before adding the required values; otherwise, the expected values may fail.
Result:
17. if you want to grant authenticated users the "administrator (I .e. privileged mode)" permission to log on to the vSwitch, you can add "service-type ", select "administrative" for Attributevalue"
:
Second, add "Cisco-AV-Pair" and click "add" to set the attribute value:
In the Attribute value column, enter "shell: priv-lvl = 15". "15" indicates the administrator permission, here, because we can only grant the normal access permission to the login user, set it to "1" and click OK to complete the settings.
:
18. after completing all the configurations, log on to the vSwitch using Telnet. if authentication fails, check the system logs and switch logs to see the specific causes.