科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网网络频道路由交换 关于Cisco IOS的设备管理配置

关于Cisco IOS的设备管理配置

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

1) RAM/DRAM(动态随机访问内存):用于存储路由表信息、快速交换缓存、当前配置文件、数据包队列。断电丢失数据。

来源:chinalab 2011年9月4日

关键字: CISCO iOS

  • 评论
  • 分享微博
  • 分享邮件

  st1\:*{behavior:url(#ieooui) }

  <!--[if !supportLists]--> <!--[endif]-->Cisco IOS设备

  <!--[if !supportLists]--> <!--[endif]-->Cisco设备的软件和硬件

  <!--[if !supportLists]--> <!--[endif]-->Cisco IOS软件

  IOS(Internetworking Operating System,互联网操作系统)

  <!--[if !supportLists]--> <!--[endif]-->路由器的内部组件

  <!--[if !supportLists]-->1) <!--[endif]-->RAM/DRAM(动态随机访问内存):用于存储路由表信息、快速交换缓存、当前配置文件、数据包队列。断电丢失数据。

  <!--[if !supportLists]-->2) <!--[endif]-->NVRAM(非易失性内存):用于存储一个备份/启动配置文件。断电不丢失数据。

  <!--[if !supportLists]-->3) <!--[endif]-->FLASH(闪存):用于存储Cisco IOS软件镜像。

  <!--[if !supportLists]-->4) <!--[endif]-->ROM(只读内存):永久性保存启动代码。

  <!--[if !supportLists]-->5) <!--[endif]-->Console端口:在初始配置路由器时提供一个物理访问。

  <!--[if !supportLists]-->6) <!--[endif]-->Interface(接口):用于提供局域网或广域网连接。

  <!--[if !supportLists]--> <!--[endif]-->接口(Interface)

  1)模块化路由器:Cisco 2600系列(Cisco 2611,Cisco 2621)、Cisco 3600系列(Cisco3620、Cisco 3640、Cisco 3660)、Cisco 7200系列、Cisco 12000系列。

  接口的表示=接口类型+插槽号+/接口的编号

  2)ISR(集成多业务路由器):Cisco 1800系列、2800系列、3800系列。

  接口的表示=接口类型+插槽号+/子插槽号+/接口的编号

  3)固定接口路由器:Cisco 2500系列、Cisco 4000、Cisco 4500系列。

  接口的表示=接口类型+接口编号

  4)接口类型:

  局域网接口:

  AUI接口:10Mbps(Ethernet)

  RJ接口:10Mbps(Ethernet),10/100Mbps(FastEthernet),10/100/1000Mbps(Gigabit Ethernet)

  SC/ST接口:10Mbps(Ethernet),100Mbps(FastEthernet),1000Mbps(Gigabit Ethernet)

  广域网接口:

  同步串行接口:Serial

  5)插槽号(Slot)

  从下到上,从右到左,从0开始编号

  6)接口编号

  从下到上,从右到左,从0开始编号

  <!--[if !supportLists]--> <!--[endif]--> 连接Cisco设备

  超级终端——选择端口(Com1或Com2)——配置端口的属性(还原默认值)

  <!--[if !supportLists]--> <!--[endif]-->启动路由器

  <!--[if !supportLists]-->1 <!--[endif]-->Cisco路由器的启动准备工作

  <!--[if !supportLists]-->2 <!--[endif]-->Cisco设备的启动概述

  <!--[if !supportLists]-->3 <!--[endif]-->路由器启动之后的输出

  一台初始配置的路由器启动成功之后将进入Setup模式。

  <!--[if !supportLists]--> <!--[endif]-->登录路由器

  用户模式:Router>enable

  特权模式:Router#disable

  <!--[if !supportLists]--> <!--[endif]-->命令行接口(Command-Line Interface,CLI

  <!--[if !supportLists]-->1 <!--[endif]-->Cisco IOS命令行的功能

  <!--[if !supportLists]-->2 <!--[endif]-->用户模式(User Mode):

  基本的查看和测试操作

  命令支持缩写

  <!--[if !supportLists]-->3 <!--[endif]-->特权模式(Privileged):

  配置和调试操作;还可以进入IOS设备的其他模式。

  支持TAB键补齐命令

  <!--[if !supportLists]-->4 <!--[endif]-->路由器CLI下的帮助功能

  上下文敏感、控制台错误信息、命令的历史缓冲

  <!--[if !supportLists]-->5 <!--[endif]-->编辑命令

  CTRL+A:将光标移动到首字符

  CTRL+E:将光标移动到尾字符

  CTRL+B:将光标向后移动一个字符

  CTRL+F:将光标向前移动一个字符

  CTRL+P:将命令向前返回

  CTRL+N:将命令向后返回

  <!--[if !supportLists]-->6 <!--[endif]-->查看路由器的基本信息:

  Router>show version

  Router#show version

  <!--[if !supportLists]-->7 <!--[endif]-->显示配置

  Router#show run (查看在RAM的当前配置)

  Router#show start (查看在NVRAM中已保存的配置)

  <!--[if !supportLists]-->8 <!--[endif]-->保存配置

  Router#copy run start

  <!--[if !supportLists]--> <!--[endif]-->配置路由器

  <!--[if !supportLists]-->1 <!--[endif]-->路由器模式的概述

  Router>enable

  Router#config t

  Router(config)# (全局配置模式)

  Router(config)#interface [接口]

  Router(config-if)# (接口配置模式)

  Router(config-if)#exit

  Router(config)#exit

  Router#

  Router(config)#line console 0

  Router(config-line)# (线路配置模式)

  配置路由器的标识

  路由器主机名的配置:缺省的主机名为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

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章