• 信息安全课程笔记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 设置权限等级和增加命令


    小胖专属学习分享
  • 相关阅读:
    C语言volatile解析
    使用中断开关实现全局变量互斥访问
    CentOS7下gogs安装总结
    iOS Xcode: linker command failed with exit code 1 (use -v to see invocation) 处理方法
    C# 10进制与62进制互转 数据大无压力 10进制与72,96进制任意转换
    Web网站的性能测试工具
    NetCore跨平台桌面框架Avalonia的OSX程序打包
    C# 类中静态变量静态构造函数执行顺序
    mac osx下虚拟主机配置
    React+ES6+Webpack深入浅出
  • 原文地址:https://www.cnblogs.com/xpl520/p/11465086.html
Copyright © 2020-2023  润新知