【eNSP实战】配置Console口Password和AAA认证

1、路由器配置

1.1 配置Password认证

[AR1]user-interface console 0	# 进入console口配置模式
[AR1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):abc123,		# 设置密码
[AR1-ui-console0]return 
<AR1>quit	# 退出重新登录

  Configuration console exit, please press any key to log on

Login authentication

Password:	# 这里没有回显,直接输入密码
<AR1>

1.2 配置AAA认证

[AR1]user-interface console 0	# 进入console配置模式
[AR1-ui-console0]authentication-mode aaa	# 设置Console口认证模式为AAA
[AR1-ui-console0]quit
#
[AR1]aaa	# 进入AAA试图
[AR1-aaa]local-user con-user password cipher abc123,	# 创建本地用户,并设置密码	
[AR1-aaa]local-user con-user privilege level 15			# 设置用户权限级别	
[AR1-aaa]local-user con-user service-type terminal		# 设置用户服务模式
[AR1-aaa]return
<AR1>quit

  Configuration console exit, please press any key to log on

Login authentication

Username:con-user	# 输入用户名
Password:	# 输入密码(没有回显)
<AR1>

2、交换机配置

2.1 配置Password认证

[LSW1]user-interface console 0		# 进入console口配置模式
[LSW1-ui-console0]authentication-mode password		# 设置认证模式
[LSW1-ui-console0]set authentication password cipher abc123,	# 设置密码
[LSW1-ui-console0]return
<LSW1>quit

Please Press ENTER.

Login authentication

Password:	# 输入密码,没有回显
<LSW1>

2.2 配置AAA认证

[LSW1]user-interface console 0		# 进入console配置模式	
[LSW1-ui-console0]authentication-mode aaa	# 设置console口认证模式为AAA
[LSW1-ui-console0]quit
#
[LSW1]aaa	# 进入AAA配置模式	
[LSW1-aaa]local-user con-user password cipher abc123,	# 添加本地用户,并设置密码
[LSW1-aaa]local-user con-user privilege level 15		# 配置用户权限级别
[LSW1-aaa]local-user con-user service-type terminal		# 配置用户服务模式
[LSW1-aaa]return
<LSW1>quit

Please Press ENTER.

Login authentication

Username:con-user	# 输入用户名
Password:	# 输入密码(没有回显)
<LSW1>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值