njsuntop 发表于 2018-7-16 08:02:43

Cisco登陆管理

  1.console登录配置
  cisco(config)#username cisco private 0 password cisco
  cisco(config)#enable password cisco
  cisco(config)#enable secret cisco
  cisco(config)#service password-encryption
  cisco(config)#line console 0
  cisco(config-line)#exec-timeout 5 0
  cisco(config-line)#logging synchronous
  cisco(config-line)#login local
  2.Telnet登录
  cisco(config)#username ciscoprivate 0 password cisco
  cisco(config)#enable password cisco
  cisco(config)#enable secret cisco
  cisco(config)#service password-encryption
  cisco(config)#interface FastEthernet0/0
  cisco(config-if)#ip address 192.168.1.1 255.255.255.0
  cisco(config)#line vty 0 4
  cisco(config-line)#exec-timeout 5 0
  cisco(config-line)#logging synchronous
  cisco(config-line)#login local
  3.SSH登录
  cisco(config)#ip domainname cisco.com      //配置域名
  cisco(config)#username cisco privilege 0 password 0 cisco //创建用户和密码,配置登陆级别
  cisco(config)#enable password cisco      //enable特权密码
  cisco(config)#enable secret cisco          //enable特权密码password/secret同时配置将使用sectet的密码
  cisco(config)#service password-encryption//加密所有明文密码
  cisco(config)#crypto keygenerate rsa       //启用ssh使用rsa加密算法512(越高资源消耗越大)
  cisco(config)#banner login ^C            //登陆警告
  ******************** Warning *****************
  Without authorization, pleasedo not log in, such as forced illegal intrusion,
  The resulting consequences wewill reserve the right above the law. !!!^C
  cisco(config)#interface FastEthernet0/0
  cisco(config-if)#ip address 192.168.1.1255.255.255.0
  cisco(config)##line vty 0 4
  cisco(config-line)#exec-timeout 5 0      //5分钟超时
  cisco(config-line)#logging synchronous   //光标同步
  cisco(config-line)#login local         //使用本地验证
  cisco(config-line)#transportinput ssh    //仅允许登入的方式
页: [1]
查看完整版本: Cisco登陆管理