cisco交换机设置口令及用户

Cisco交换机配置
本文介绍Cisco交换机的基本配置方法,包括设置各种模式下的密码、创建本地用户、加密密码以及配置console口和telnet用户的登录方式。
部署运行你感兴趣的模型镜像

 

Switch#configure terminal   进入配置状态

Switch(config)#enable secret “password” 设置特权模式口令

Switch(config)#no enable secret   取消特权模式口令

Switch(config)#enable password “password” 设置EXEC模式口令

Switch(config)#no enable password   取消EXEC模式口令

witch(config)#username “username” privilege “num” secret “password” 建立本地用户及口令

Switch(config)#no username “username”   删除本地用户

Switch(config)#service password-encryption   加密所有明文口令

Switch(config)#no service password-encryption   拒绝加密所有明文口令

1、配置console用户用口令

Switch(config)#line console 0   进入console口配置状态

Switch(config-line)#login local    设置登录模式为本地用户验证模式

Switch(config-line)#no login local   取消本地用户验证模式

Switch(config)#line console 0   进入console口配置状态

Switch(config-line)#login    设置登录模式为线性登录模式

Switch(config-line)#password “password”   设置线性登录模式口令

Switch(config-line)#no login   取消线性登录模式

2、配置tenlnet(vty)用户及口令

Switch(config)#line vty 0 15   进入vty配置状态

Switch(config-line)#login local    设置登录模式为本地用户验证模式

Switch(config-line)#no login local   取消本地用户验证模式

Switch(config)#line vty 0 15   进入vty配置状态

Switch(config-line)#login    设置登录模式为线性登录模式

Switch(config-line)#password “password”   设置线性登录模式口令

Switch(config-line)#no login   取消线性登录模式

 

 

 

您可能感兴趣的与本文相关的镜像

Anything-LLM

Anything-LLM

AI应用

AnythingLLM是一个全栈应用程序,可以使用商用或开源的LLM/嵌入器/语义向量数据库模型,帮助用户在本地或云端搭建个性化的聊天机器人系统,且无需复杂设置

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值