Cisco 设备常用命令 2019/08/21 11:49 • Cisco • 阅读 2459 目录 更换设备名称配置 IP 地址配置特权模式密码设置明文密码加密关闭密码保护配置 Telnet 远程登录配置 Console 连接配置密码 更换设备名称 Route(config)#hostname Cisco Cisco(config)# 配置 IP 地址 Route#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Route(config)#int vlan 1 Route(config-if)#ip address 192.168.1.1 255.255.255.0 //配置IP地址和掩码 Route(config-if)#no shutdown Route(config-if)#exit Route(config)#ip default-gateway 192.168.1.254 //配置网关 配置特权模式密码 Route#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Route(config)#enable password cisco123 Route(config)#exit 设置明文密码加密 Route#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Route(config)#service password-encryption //打开加密服务 Route(config)#exit 关闭密码保护 Route#no enable password //删除特权模式密码 Route#no enable secret //删除密码加密 配置 Telnet 远程登录 Route#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Route(config)#line vty 0 4 //表示vty0到vty4,共5个虚拟终端 Route(config-line)#password cisco //配置密码 Route(config-line)#login //开启允许远程访问 Route(config-line)#exit 备注:只有一个虚拟终端的话,就只能等待连接中的用户断开连接,等待的那个人才能再连接。 共5个虚拟终端,代表支持五个用户同时连接。多余用户继续等待! 配置 Console 连接配置密码 Route#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Route(config)#line console 0 Route(config-line)#password cisco //配置密码 Route(config-line)#login Route(config-line)#exit 本文为原创文章,著作权归作者所有:来自「KOBIN 技术随笔」作者的原创作品,转载请标明出处。Cisco 设备常用命令https://blog.kobin.cn/blog/network/n0/537.html Cisco路由器 赞 (1) 0 0 生成海报 发表回复 您的邮箱地址不会被公开。 必填项已用 * 标注*昵称: *邮箱: 网址: 记住昵称、邮箱和网址,下次评论免输入 提交 CAPTCHAis initialing...