ciscoIOS设备管理配置

来源:网络发布时间:2010-04-22

  <!--[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

纠错

育路版权与免责声明

① 凡本网注明稿件来源为"原创"的所有文字、图片和音视频稿件,版权均属本网所有。任何媒体、网站或个人转载、链接转贴或以其他方式复制发表时必须注明"稿件来源:育路网",违者本网将依法追究责任;

② 本网部分稿件来源于网络,任何单位或个人认为育路网发布的内容可能涉嫌侵犯其合法权益,应该及时向育路网书面反馈,并提供身份证明、权属证明及详细侵权情况证明,育路网在收到上述法律文件后,将会尽快移除被控侵权内容。