ciscoIOS设备管理配置
来源:网络发布时间:2010-04-22
2 配置路由器的标识
路由器主机名的配置:缺省的主机名为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 [接口]