我用到的换位交换机型号为S3526EFC,高版本的ios命令可能有少许不同。
1.导出ios到tftp服务器(ip:192.168.1.2)[Quidway]tftp put S3526EFC-VRP310-r0035-64-a.bin //192.168.1.2/
2.华为交换机虚拟终端相关
华为交换机支持5个虚拟终端同时登录,当通过虚拟终端登录交换机时,有三种认证方式:不需认证,密码认证,账号+密码认证。当使用密码认证时,需设置登录用户权限,设置什么样的用户权限,登录时就只能使用什么样的用户权限;当使用账号+密码认证时,则根据所用账号的用户权限使用,虽然 也可以设置用户权限[Quidway-ui-vty0-2]user privilege level 3。但是不会起作用,也就是系统账户比虚拟终端登录账户的优先级高一等。
[Quidway]user-interface vty ?
INTEGER<0-4> First user terminal interface number to be configured
[Quidway]user-interface vty 0 2
[Quidway-ui-vty0-2]authentication-mode ?
none Login without checking
password Authentication use password of user terminal interface
scheme Authentication use RADIUS scheme
[Quidway-ui-vty0-2]authentication-mode password
[Quidway-ui-vty0-2]set authentication password simple admin
[Quidway-ui-vty0-2]user privilege level 3
查看当前登录的用户信息
[Quidway]display users
UI Delay Type Ipaddress Username
0 AUX 0 00:22:22
+ 1 VTY 0 00:00:00 TEL 192.168.2.1
2 VTY 1 00:00:03 TEL 192.168.2.1
查看所有的用户信息
[Quidway]display user-interface
Idx Type Tx/Rx Modem Privi Auth
F 0 AUX 0 9600 3 N
+ 1 VTY 0 3 P
+ 2 VTY 1 3 P
3 VTY 2 3 P
4 VTY 3 0 A
5 VTY 4 0 A
+ : Current user-interface is active.
F : Current user-interface is active and work in async mode.
Idx : Absolute index of user-interface.
Type : Type and relative index of user-interface.
Privi: The privilege of user-interface.
Auth : The authentication mode of user-interface.
A: Authenticate use AAA.
N: Current user-interface need not authentication.
P: Authenticate use current UI's password.
3. super的用法
通过虚拟终端登录交换机,若不特殊设置的话(只设置登录密码),则登录的用户等级为level 0 权限为参观级,太低 ,可通过super 或super 数字(0-3)来变更用户权限。
,在此
转载于:https://blog.51cto.com/xueyue8/1557448