信息安全课程笔记1
1 enable algorithm-type md5 | scrypt | sha 256 secret 对应7类8类9类
2 security passwords min-length :密码设置最小长度
3 设置用户和密码可以设置成7类8类9类,exec-timeout 最大超时工作时限,
4:dir nvram 查看文件及大小 w(wirte)存文件和权限
5:删除系统文件命令:erase startup-config
补充:
1:hostname r1
2:R1(config)#username xxx secret ppp
3:R1(config)#ip domain-name baidu.com 设置域名
4:R1(config)#crypto key generate rsa 加密方式
5:How many bits in the modulus [512]: 1024
6:R1(config)#line vty 0 4
7:R1(config-line)#login local
8:R1(config-line)#transport input ssh/all
[Connection to 192.168.1.1 closed by foreign host]
C:\>ssh -l xxx 192.168.1.1
Open
Password:
You can`t login here
R1>ena
Password:
R1(config)#ip ssh time-out 60 登陆中超时时间
R1(config)#ip ssh version 2
R1(config)#ip ssh authentication-retries 4 登录次数
R1(config-line)#exec-timeout 3 0 登录后无操作超时时间
R1#show ip ssh
R1#show crypto key mypubkey rsa 查看秘钥
R1(config)#login on-failure log 生成日志
R1(config)#login on-success log 生成日志
R1(config)#login delay 3 登录等待时间
R1(config)#ip access-list standard xpl 建立访问控制列表
R1(config-std-nacl)#permit 192.168.2.10 log
R1(config-std-nacl)#permit 192.168.2.10 0.0.0.255 log 允许访问的ip地址或者管理员
R1(config)#login quiet-mode access-class xpl 设置静默模式
R1(config)#security authentication failure rate 50 log 超出登录失败率 就生成日志。
Router#show privilege 查看等级
Router(config)#enable secret level 5 123456
Router(config)#privilege exec level 6 show running-config 设置权限等级和增加命令
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Java 中堆内存和栈内存上的数据分布和特点
· 开发中对象命名的一点思考
· .NET Core内存结构体系(Windows环境)底层原理浅谈
· C# 深度学习:对抗生成网络(GAN)训练头像生成模型
· .NET 适配 HarmonyOS 进展
· 手把手教你更优雅的享受 DeepSeek
· AI工具推荐:领先的开源 AI 代码助手——Continue
· 探秘Transformer系列之(2)---总体架构
· V-Control:一个基于 .NET MAUI 的开箱即用的UI组件库
· 乌龟冬眠箱湿度监控系统和AI辅助建议功能的实现