
31
RBAC configuration examples
RBAC configuration example for local AAA authentication
users
Network requirements
, the switch performs local AAA authentication for the Telnet user. The user
account for the Telnet user is
user1@bbb
and is assigned user role
role1
.
Configure
role1
to have the following permissions:
•
Can execute the read commands of any feature.
•
Cannot configure any VLANs except VLANs 10 to 20.
Figure 2 Network diagram
Configuration procedure
# Assign an IP address to VLAN-interface 2 (the interface connected to the Telnet user).
<Switch> system-view
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ip address 192.168.1.70 255.255.255.0
[Switch-Vlan-interface2] quit
# Enable Telnet server.
[Switch] telnet server enable
# Enable scheme authentication on the user lines for Telnet users.
[Switch] line vty 0 63
[Switch-line-vty0-63] authentication-mode scheme
[Switch-line-vty0-63] quit
# Enable local authentication and authorization for ISP domain
bbb
.
[Switch] domain bbb
[Switch-isp-bbb] authentication login local
[Switch-isp-bbb] authorization login local
[Switch-isp-bbb] quit
# Create user role
role1
.
[Switch] role name role1
# Configure rule 1 to permit the user role to access the read commands of all features.
[Switch-role-role1] rule 1 permit read feature
# Configure rule 2 to permit the user role to create VLANs and access commands in VLAN view.
[Switch-role-role1] rule 2 permit command system-view ; vlan *
# Change the VLAN policy to permit the user role to configure only VLANs 10 to 20.
[Switch-role-role1] vlan policy deny
[Switch-role-role1-vlanpolicy] permit vlan 10 to 20
[Switch-role-role1-vlanpolicy] quit
Internet
Switch
Telnet user
192.168.1.58/24
Vlan-int 2
192.168.1.70/24
Summary of Contents for FlexNetwork 10500 Series
Page 139: ...130 Sysname display version ...