设为首页 收藏本站
查看: 863|回复: 0

[经验分享] 关于Cisco IOS的设备管理配置

[复制链接]

尚未签到

发表于 2018-7-18 08:57:34 | 显示全部楼层 |阅读模式
 配置路由器的标识    路由器主机名的配置:缺省的主机名为Router
  Router(config)#hostname [主机名]
  路由器的日期标志的配置:
  Router(config)#banner motd #
  配置路由器的接口
  1) 配置接口的IP地址:
  Router(config)#interface [接口]
  Router(config-if)#ip address [IP地址] [子网掩码]
  2)删除一个接口的IP地址:
  Router(config)#interface [接口]
  Router(config-if)#no ip address
  3)激活一个接口:
  Cisco路由器的所有接口缺省时都是禁用状态,必须使用no shutdown来激活一个接口
  Router(config-if)#no shutdown
  Router(config-if)#shutdown (禁用接口)
  4)配置同步串行接口:
  将DCE接口配置时钟速率:
  Router(config-if)#clock rate 64000
  Router#show controllers [接口] (查看接口类型)
  配置同步串行接口的带宽:
  Router(config-if)#bandwidth [带宽,单位是kbps]
  <!--[if !supportLists]-->
  <!--[endif]-->查看接口状态
  Router#show interface (查看路由器上所有接口的详细信息)
  Router#show interface [接口] (查看路由器上特定接口的详细信息)
  Router#show ip interface brief (查看路由器上所有接口的摘要信息)
  <!--[if !supportLists]--> <!--[endif]-->解释路由器接口的状态
  <!--[if !supportLists]-->1) <!--[endif]-->Interface is up , Line protocol is up (正常)
  <!--[if !supportLists]-->2) <!--[endif]-->Interface is Administratively down , Line protocol is down (接口没有使用no shutdown命令来激活)
  <!--[if !supportLists]-->3) <!--[endif]-->Interface is Down , Line Protocol is down (出现在同步串行接口,线缆不匹配或未连接好,或者是接口被损坏)
  <!--[if !supportLists]-->4) <!--[endif]-->Interface is Up ,Line Protocol is down
  LAN接口:线缆不匹配或未连接好,或者是接口被损坏
  WAN接口:时钟速率未设置、未收时钟保持信息、第二层的封装不匹配。
  <!--[if !supportLists]--> <!--[endif]-->查看串行线缆的类型
  Router#show controller [接口]
  <!--[if !supportLists]--> <!--[endif]-->配置路由器的口令
  <!--[if !supportLists]-->1) <!--[endif]-->Console端口口令的配置:
  Router(config)#line con 0
  Router(config-line)#password [口令]
  Router(config-line)#login   no login   login local
  Login:登录时必须输入口令
  No Login:登录时不需要口令。
  Login local:使用路由器本地配置的用户名和口令来登录。
  <!--[if !supportLists]-->2) <!--[endif]-->Telnet登录口令的配置:
  Router(config)#line vty ?
  Router(config-line)#password [口令]
  Router(config-line)#login   no login   login local
  <!--[if !supportLists]-->3) <!--[endif]-->从用户模式到特权模式口令的配置:
  Router(config)#enable password [口令]
  Router(config)#enable secret [口令]
  两种方法同时配置时,口令不能相同,enable secret配置的口令生效。
  <!--[if !supportLists]-->4) <!--[endif]-->加密明文的口令:
  Router(config)#service password-encryption
  <!--[if !supportLists]--> <!--[endif]-->其他线路配置模式的命令:
  Router(config-line)#exec-timeout [分] [秒]
  Router(config-line)#exec-timeout 0 0 永不超时
  <!--[if !supportLists]--> <!--[endif]-->启动交换机
  <!--[if !supportLists]-->1 <!--[endif]-->Catalyst交换机的启动准备
  <!--[if !supportLists]-->2 <!--[endif]-->Catalyst交换机的面板指示灯
  SYST:系统状态指示灯;呈绿色状态:交换机自检(POST)成功;呈琥珀色(Amber) :交换机自检不成功。
  RPS:
  Port Mode LED:端口模式指示灯,用于管理端口状态的指示灯。
  STAT:状态
  UTL:背板带宽利用率指示灯。
  DUPLEX:双工指示灯。
  SPEED:速率指示灯。
  <!--[if !supportLists]-->3 <!--[endif]-->Catalyst交换机的初始启动输出
  <!--[if !supportLists]-->4 <!--[endif]-->Setup模式
  <!--[if !supportLists]-->5 <!--[endif]-->登录交换机
  <!--[if !supportLists]-->6 <!--[endif]-->交换机命令行的帮助功能
  <!--[if !supportLists]-->7 <!--[endif]-->配置交换机
  <!--[if !supportLists]-->(1) <!--[endif]-->配置交换机的主机名:Switch(config)#hostname [主机名]
  <!--[if !supportLists]-->(2) <!--[endif]-->配置交换机的管理IP地址:
  Switch(config)#interface vlan 1
  Switch(config-if)#ip address [IP地址] [子网掩码]
  Switch(config-if)#no shutdown
  <!--[if !supportLists]-->(3) <!--[endif]-->配置交换机的默认网关:
  Switch(config)#ip default-gateway [网关地址]
  <!--[if !supportLists]-->(4) <!--[endif]-->查看交换机的信息
  #show version
  #show run
  #show run
  #show int
  <!--[if !supportLists]--><!--[endif]-->配置DHCP Server
  <!--[if !supportLists]--> <!--[endif]-->IP未编号(IP Unnumber)
  Router(config-if)#ip unnumbered LAN接口或LOOPBACK接口
  <!--[if !supportLists]--> <!--[endif]-->Cisco Easy IP
  <!--[if !supportLists]-->1 <!--[endif]-->DHCP(Dynamic Hosts Configuration Protocol,动态主机分配/配置协议)
  主要是用于实现Cisco Easy IP。即动态分配IP信息(包括IP地址、子网掩码、默认网关、DNS服务器地址)即租用的时间等。
  <!--[if !supportLists]-->2 <!--[endif]-->DHCP服务器的操作
  <!--[if !supportLists]-->(1) <!--[endif]-->DHCP客户端通过第三层广播(255.255.255.255)向DHCP服务器发送DHCPDISCOVER信息;
  <!--[if !supportLists]-->(2) <!--[endif]-->DHCP服务器向DHCP客户端广播(255.255.255.255)回复一个DHCPOFFER信息;
  <!--[if !supportLists]-->(3) <!--[endif]-->DHCP客户端向DHCP服务器广播发送DHCPREQUEST信息;
  <!--[if !supportLists]-->(4) <!--[endif]-->DHCP服务器向DHCP客户端广播发送一个DHCPACK信息。
  <!--[if !supportLists]-->3 <!--[endif]-->DHCP服务器的配置
  <!--[if !supportLists]-->4 <!--[endif]-->DHCP客户端的配置
  -if)#ip address dhcp

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-538246-1-1.html 上篇帖子: cisco路由器EIGRP配置实例 下篇帖子: 用autosecure加强CISCO路由器安全
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表