[精选]操作与配置CiscoIOS设备简介.pptx

上传人:茅**** 文档编号:87836094 上传时间:2023-04-18 格式:PPTX 页数:68 大小:441.82KB
返回 下载 相关 举报
[精选]操作与配置CiscoIOS设备简介.pptx_第1页
第1页 / 共68页
[精选]操作与配置CiscoIOS设备简介.pptx_第2页
第2页 / 共68页
点击查看更多>>
资源描述

《[精选]操作与配置CiscoIOS设备简介.pptx》由会员分享,可在线阅读,更多相关《[精选]操作与配置CiscoIOS设备简介.pptx(68页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、本章目标本章目标通过本章的学习,您应该掌握以下内容通过本章的学习,您应该掌握以下内容:开启交换机和路由器并观察其启动过程开启交换机和路由器并观察其启动过程注意交换机的出厂初始配置情况,完成路由器的注意交换机的出厂初始配置情况,完成路由器的初始参数配置初始参数配置在网络设备上进入并辨识不同的命令模式在网络设备上进入并辨识不同的命令模式本章目标续本章目标续在不同的用户界面下应用各种帮助和命令行编辑在不同的用户界面下应用各种帮助和命令行编辑功能功能查看并确认并于各网络设备的基本信息查看并确认并于各网络设备的基本信息 Cisco IOS 软件提供多种网络效劳进而支持软件提供多种网络效劳进而支持各种网络

2、应用各种网络应用.Cisco 互连网操作系统互连网操作系统IOS软件软件网络设备的配置网络设备的配置基于以下各方面来配置设备基于以下各方面来配置设备:所需功能的网络策略所需功能的网络策略 与协议关联的地址和相关参数与协议关联的地址和相关参数 管理方面的需要管理方面的需要 交换机将出厂缺省设置作为初始配置交换机将出厂缺省设置作为初始配置如果路由器中没有配置文件,会提示进入初始化如果路由器中没有配置文件,会提示进入初始化设置过程设置过程 硬件自检硬件自检定位并加载定位并加载Cisco IOS映象文件映象文件定位并运行配置文件定位并运行配置文件Cisco设备的简单启动过程设备的简单启动过程可以通过多

3、种途径来配置可以通过多种途径来配置配置直接在设备的内存中生配置直接在设备的内存中生效效控制端口控制端口Aux 端口端口端口端口PC or Unix效劳器效劳器Web 或网络管或网络管理效劳器理效劳器 虚拟终端虚拟终端多种途径的配置多种途径的配置TelnetTFTP提供命令行界面提供命令行界面在不同的网络设备上运行时有差异在不同的网络设备上运行时有差异 在命令模式下可以键入或粘贴命令在命令模式下可以键入或粘贴命令 键入命令后回车,设备即解析和执键入命令后回车,设备即解析和执行所键入的命令行所键入的命令两个主要命令模式是用户模式和特两个主要命令模式是用户模式和特权模式权模式不同的命令模式有不同的提

4、示符不同的命令模式有不同的提示符CiscoIOSCisco IOS用户界面的基本特性用户界面的基本特性用户模式用户模式对交换机和路由器的有限操作对交换机和路由器的有限操作命令提示符为命令提示符为 主机名主机名主要有两个命令模式提供命令键入主要有两个命令模式提供命令键入.模式一模式一:Cisco IOS的主要命令模式的主要命令模式特权特权或或enabled模式模式对交换机和路由器更深入的操作对交换机和路由器更深入的操作有配置和监视权力有配置和监视权力是进入其它配置模式的前提是进入其它配置模式的前提命令提示符为命令提示符为 主机名主机名#模式二模式二 也是最常用的模式也是最常用的模式:Cisco

5、IOS的主要命令模式续的主要命令模式续系统启动例程会初始化交换机系统启动例程会初始化交换机初始启动利用缺省配置参数初始启动利用缺省配置参数1.启动前确认正确连接线缆和控制线启动前确认正确连接线缆和控制线2.接入电源接入电源3.观察启动顺序观察启动顺序面板上的指示灯面板上的指示灯LEDsCisco IOS输出到控制台上的内容输出到控制台上的内容交换机的初始启动交换机的初始启动检查交换机指示灯检查交换机指示灯LEDs交换机自检期间的端口指示灯交换机自检期间的端口指示灯 1.启动时,所有端口指示灯变绿启动时,所有端口指示灯变绿.2.每个端口自检完毕,对应的指示灯熄灭每个端口自检完毕,对应的指示灯熄灭

6、.3.如果端口自检失败如果端口自检失败,对应指示灯呈黄色对应指示灯呈黄色.4.如果有任何自检失败情况,系统指示灯呈现黄色如果有任何自检失败情况,系统指示灯呈现黄色.5.如果没有自检失败如果没有自检失败,自检过程完成自检过程完成.6.随着自检过程的完成随着自检过程的完成,指示灯闪亮后熄灭指示灯闪亮后熄灭.交换机初次启动时的显示信息交换机初次启动时的显示信息控制台连接控制台连接Catalyst 1900 Management ConsoleCopyright c Cisco Systems,Inc.1993-1998All rights reserved.Enterprise Edition So

7、ftwareEthernet Address:00-50-BD-73-E2-C0PCA Number:73-3121-01PCA Serial Number:FAA0252A0QXModel Number:WS-C1924-ENSystem Serial Number:FAA0304S0U3Power Supply S/N:PHI025101F3-1 users now active on Management Console.User Interface Menu M Menus K mand Line I IP ConfigurationEnter Selection:控制台控制台登入交换

8、机并键入特权模式密码登入交换机并键入特权模式密码 enableEnter password:#disable quit用户模式提示用户模式提示特权模式提示特权模式提示上下文关联帮助上下文关联帮助错误信息提示错误信息提示指出所输入交换机命令的错误所指出所输入交换机命令的错误所在,以便于修改或纠正在,以便于修改或纠正.可以重新调出一个较长或较复杂可以重新调出一个较长或较复杂的命令或其它内容,用来再次运的命令或其它内容,用来再次运行、查看或修改行、查看或修改.之前命令保存区之前命令保存区交换机命令行帮助机制交换机命令行帮助机制提供命令清单和与特定命令提供命令清单和与特定命令相关联的参数相关联的参数.

9、Switch#show interfacesSwitch#show version显示交换机初始启动的状态显示交换机初始启动的状态Switch#show running-config显示交换机的各种运行状态显示交换机的各种运行状态wg_sw_c#show versionCisco Catalyst 1900/2820 Enterprise Edition SoftwareVersion V8.01.01 written from 171.068.229.225Copyright c Cisco Systems,Inc.1993-1998wg_sw_c uptime is 15days 21ho

10、urs 53minutes 11seconds cisco Catalyst 1900 486sxl processor with 2048K/1024K bytes of memoryHardware board revision is 5Upgrade Status:No upgrade currently in progress.Config File Status:No configuration upload/download is in progress 27 Fixed Ethernet/IEEE 802.3 interfacesBase Ethernet Address:00-

11、50-BD-73-E2-C0交换机之交换机之show version 命令命令wg_sw_c#show runBuilding configuration.Current configuration:!hostname wg_sw_c!ip address 10.1.1.33 255.255.255.0ip default-gateway 10.3.3.3!interface Ethernet 0/1interface Ethernet 0/24!Interface Ethernet 0/25!interface FastEthernet 0/26!interface FastEthernet

12、 0/27交换机之交换机之show running-configuration 命令命令wg_sw_c#show runBuilding configuration.Current configuration:!hostname wg_sw_c!ip address 10.1.1.33 255.255.255.0ip default-gateway 10.3.3.3!interface Ethernet 0/1interface Ethernet 0/12!Interface Ethernet 0/25!interface FastEthernet 0/26!interface FastEth

13、ernet 0/27Catalyst 1924Catalyst 1912wg_sw_c#show interfaces ethernet 0/1Ethernet 0/1 is Enabled Hardware is Built-in 10Base-TAddress is 0050.BD73.E2C1MTU 1500 bytes,BW 10000 Kbits802.1d STP State:Forwarding Forward Transitions:1Port monitoring:DisabledUnknown unicast flooding:Enabled Unregistered mu

14、lticast flooding:Enabled Description:Duplex setting:Half duplex Back pressure:Disabled-More-交换机之交换机之show interfaces命令命令wg_sw_a#show ip IP Address:10.5.5.11Subnet Mask:255.255.255.0Default Gateway:10.5.5.3Management VLAN:1Domain name:Name server 1:0.0.0.0Name server 2:0.0.0.0 server:Enabled port:80RI

15、P:Enabledwg_sw_a#查看交换机的查看交换机的IPIP地址地址配置模式配置模式:全局配置模式全局配置模式 wg_sw_a#conf termwg_sw_aconfig#端口配置模式端口配置模式wg_sw_aconfig#interface e0/1wg_sw_aconfig-if#配置交换机配置交换机配置交换机的各种标识配置交换机的各种标识配置交换机的各种标识配置交换机的各种标识为交换机设置本地标识为交换机设置本地标识交换机名交换机名(config)#hostname wg_sw_cwg_sw_c(config)#wg_sw_aconfig#ip address ip addres

16、s maskwg_sw_aconfig#ip address 10.5.5.11 255.255.255.0配置交换机配置交换机IPIP地址地址系统启动例程会初始化路由器系统启动例程会初始化路由器如果需要,路由器可以有选择性地回退启动如果需要,路由器可以有选择性地回退启动Check hardwareFind and load Cisco IOSsoftware image Find and apply routerconfiguration information Load Bootstrap1.启动前确认正确连接线缆和控制线启动前确认正确连接线缆和控制线2.按下电源开关按下电源开关3.观察启

17、动顺序观察启动顺序 Cisco IOS输出到控制台上的内容输出到控制台上的内容Cisco路由器的初始启动路由器的初始启动没有配置文件与有配置文件的路由器启动比照没有配置文件与有配置文件的路由器启动比照-System Configuration Dialog-Continue with configuration dialog?yes/no:yes At any point you may enter a question mark?for help.Use ctrl-c to abort configuration dialog at any prompt.Default settings a

18、re in square brackets .Setup模式模式wg_ro_c con0 is now availablePress RETURN to get started.用户模式用户模式提示提示wg_ro_c路由器启动时在控制台上的输出路由器启动时在控制台上的输出内容内容控制台控制台Setup:初始配置对话框初始配置对话框 Router#setup -System Configuration Dialog-Continue with configuration dialog?yes/no:yAt any point you may enter a question mark?for h

19、elp.Use ctrl-c to abort configuration dialog at any prompt.Default settings are in square brackets.Basic management setup configures only enough connectivityfor management of the system,extended setup will ask youto configure each interface on the systemWould you like to enter basic management setup

20、?yes/no:n预先浏览端口配置情况预先浏览端口配置情况First,would you like to see the current interface summary?yes:Interface IP-Address OK?Method Status ProtocolBRI0 unassigned YES unset administratively down downBRI0:1 unassigned YES unset administratively down downBRI0:2 unassigned YES unset administratively down downEth

21、ernet0 unassigned YES unset administratively down downSerial0 unassigned YES unset administratively down down自检过程中所找到的端口自检过程中所找到的端口设置全局参数设置全局参数初始化全局参数初始化全局参数Configuring global parameters:Enter host name Router:wg_ro_c The enable secret is a password used to protect access to privileged EXEC and conf

22、iguration modes.This password,after entered,be es encrypted in the configuration.Enter enable secret:cisco The enable password is used when you do not specify an enable secret password,with some older software versions,and some boot images.Enter enable password:sanfran The virtual terminal password

23、is used to protect access to the router over a network interface.Enter virtual terminal password:sanjose Configure SNMP Network Management?no:设置全局参数续设置全局参数续初始化协议配置初始化协议配置 Configure LAT?yes:n Configure AppleTalk?no:Configure DECnet?no:Configure IP?yes:Configure IGRP routing?yes:n Configure RIP routin

24、g?no:Configure CLNS?no:Configure IPX?no:Configure Vines?no:Configure XNS?no:Configure Apollo?no:设置端口参数设置端口参数BRI interface needs isdn switch-type to be configured Valid switch types are:0 none.Only if you dont want to configure BRI.1 basic-1tr6.1TR6 switch type for Germany 2 basic-5ess.AT&T 5ESS swit

25、ch type for the US/Canada 3 basic-dms100.Northern DMS-100 switch type for US/Canada 4 basic-net3.NET3 switch type for UK and Europe 5 basic-ni.National ISDN switch type 6 basic-ts013.TS013 switch type for Australia 7 ntt.NTT switch type for Japan 8 vn3.VN3 and VN4 switch types for France Choose ISDN

26、 BRI Switch Type 2:Configuring interface parameters:Do you want to configure BRI0 BRI d-channel interface?no:Do you want to configure Ethernet0 interface?no:y Configure IP on this interface?no:y IP address for this interface:10.1.1.33 Subnet mask for this interface 255.0.0.0:255.255.255.0 Class A ne

27、twork is 10.0.0.0,24 subnet bits;mask is/24Do you want to configure Serial0 interface?no:设置脚本确实认与应用设置脚本确实认与应用The following configuration mand script was created:hostname Routerenable secret 5$1$/CCk$4r7zDwDNeqkxFO.kJxC3G0enable password sanfranline vty 0 4password sanjoseno snmp-server!no appletalk

28、routingno decnet routingip routingno clns routingno ipx routingno vines routingno xns routingno apollo routingisdn switch-type basic-5essinterface BRI0shutdownno ip address!interface Ethernet0no shutdownip address 10.1.1.31 255.255.255.0no mop enabled!interface Serial0shutdownno ip addressend0 Go to

29、 the IOS mand prompt without saving this config.1 Return back to the setup without saving this config.2 Save this configuration to nvram and exit.Enter your selection 2:Consolewg_ro_cwg_ro_cenablewg_ro_c#wg_ro_c#disablewg_ro_cwg_ro_clogoutwg_ro_c con0 is now availablePress RETURN to get started.用户模式

30、提示用户模式提示特权模式提示特权模式提示登入路由器登入路由器 只要所输命令串在全部命令中是唯一的,可以将一个命令尽只要所输命令串在全部命令中是唯一的,可以将一个命令尽可能地简写,可能地简写,路由器在用户模式下的命令清单路由器在用户模式下的命令清单wg_ro_c?Exec mands:access-enable Create a temporary Access-List entry atmsig Execute Atm Signalling mands cd Change current device clear Reset functions connect Open a terminal

31、connection dir List files on given device disable Turn off privileged mands disconnect Disconnect an existing network connection enable Turn on privileged mands exit Exit from the EXEC help Description of the interactive help system lat Open a lat connection lock Lock the terminal login Log in as a

32、particular user logout Exit from the EXEC-More-wg_ro_c#?Exec mands:access-enable Create a temporary Access-List entry access-profile Apply user-profile to interface access-template Create a temporary Access-List entry bfe For manual emergency modes setting cd Change current directory clear Reset fun

33、ctions clock Manage the system clock configure Enter configuration mode connect Open a terminal connection copy Copy from one file to another debug Debugging functions see also undebug delete Delete a file dir List files on a filesystem disable Turn off privileged mands disconnect Disconnect an exis

34、ting network connection enable Turn on privileged mands erase Erase a filesystem exit Exit from the EXEC help Description of the interactive help system-More-路由器在特权模式下的命令清单路由器在特权模式下的命令清单只要输入局部命令串唯一表示某个命令,紧接着按只要输入局部命令串唯一表示某个命令,紧接着按tab键就可以完整地输入一个命令键就可以完整地输入一个命令路由器命令行帮助机制路由器命令行帮助机制上下文关联帮助上下文关联帮助错误信息提示错

35、误信息提示指出所输入交换机命令的错误所指出所输入交换机命令的错误所在,以便于修改或纠正在,以便于修改或纠正.可以重新调出一个较长或较复杂可以重新调出一个较长或较复杂的命令或其它内容,用来再次运的命令或其它内容,用来再次运行、查看或修改行、查看或修改.之前命令保存区之前命令保存区提供命令清单和与特定命令提供命令清单和与特定命令相关联的参数相关联的参数.路由器的上下文相关联帮助路由器的上下文相关联帮助Router#clokTranslating CLOK%Unknown mand or puter name,or unable to find puter addressRouter#cl?clea

36、r clockRouter#clock%In plete mand.Router#clock?set Set the time and dateRouter#clock set%In plete mand.Router#clock set?hh:mm:ss Current Time 符号解析符号解析命令提示命令提示调出最近用过的内容调出最近用过的内容路由器的上下文相关联帮助续路由器的上下文相关联帮助续Router#clokTranslating CLOK%Unknown mand or puter name,or unable to find puter addressRouter#clear

37、 clockRouter#%In plete mand.Router#set Set the time and dateRouter#%In plete mand.Router#hh:mm:ss Current TimeRouter#clock set 19:56:00%In plete mand.Router#clock set 19:56:00?Day of the monthMONTH Month of the yearRouter#clock set 19:56:00 04 8%Invalid input detected at the markerRouter#clock set 1

38、9:56:00 04 August%In plete mand.Router#clock set 19:56:00 04 August?Year命令提示命令提示语法检查语法检查命令提示命令提示RouterShape the future of internetworking by creating unpreced使用增强的编辑命令使用增强的编辑命令使用增强的编辑命令使用增强的编辑命令“Shape the future of internetworking by creating unprecedented value for customers,employees,and partners.

39、上述文字段在输入时会超出一行上述文字段在输入时会超出一行Router$future of internetworking by creating unprecedented op使用增强的编辑命令使用增强的编辑命令 一行中长字串会自动滚卷一行中长字串会自动滚卷.RouterShape the value of internetworking by creating unpreced使用增强的编辑命令使用增强的编辑命令 一行中长字串会自动滚卷一行中长字串会自动滚卷.光标移动到命令行的开始位置光标移动到命令行的开始位置.Router$value for customers,employees,an

40、d partners.使用增强的编辑命令使用增强的编辑命令 一行中长字串会自动滚卷一行中长字串会自动滚卷.光标移动到命令行的开始位置光标移动到命令行的开始位置.光标移动到命令行的结束位置光标移动到命令行的结束位置.使用增强的编辑命令使用增强的编辑命令 一行中长字串会自动滚卷一行中长字串会自动滚卷.光标移动到命令行的开始位置光标移动到命令行的开始位置.光标移动到命令行的结束位置光标移动到命令行的结束位置.回移一个单词回移一个单词 Router$value for customers,employees,and partners.使用增强的编辑命令使用增强的编辑命令 一行中长字串会自动滚卷一行中长

41、字串会自动滚卷.光标移动到命令行的开始位置光标移动到命令行的开始位置.光标移动到命令行的结束位置光标移动到命令行的结束位置.回移一个单词回移一个单词.下移一个字符下移一个字符.Router$value for customers,employees,and partners.使用增强的编辑命令使用增强的编辑命令 一行中长字串会自动滚卷一行中长字串会自动滚卷.光标移动到命令行的开始位置光标移动到命令行的开始位置.光标移动到命令行的结束位置光标移动到命令行的结束位置.回移一个单词回移一个单词 下移一个字符下移一个字符.回移一个字符回移一个字符.Router$value for customers,

42、employees,and partners.使用增强的编辑命令使用增强的编辑命令 一行中长字串会自动滚卷一行中长字串会自动滚卷.光标移动到命令行的开始位置光标移动到命令行的开始位置.光标移动到命令行的结束位置光标移动到命令行的结束位置.回移一个单词回移一个单词 下移一个字符下移一个字符.回移一个字符回移一个字符.下移一个单词下移一个单词 Router$value for customers,employees,and partners.一行中长字串会自动滚卷一行中长字串会自动滚卷.光标移动到命令行的开始位置光标移动到命令行的开始位置.光标移动到命令行的结束位置光标移动到命令行的结束位置.回移

43、一个单词回移一个单词 下移一个字符下移一个字符.回移一个字符回移一个字符.下移一个单词下移一个单词使用增强的编辑命令使用增强的编辑命令使用增强的编辑命令使用增强的编辑命令删除当前字符删除当前字符 Router$value for customers,employees,and partners.Ctrl-P or Up arrow调出最近调出最近前一前一使用过的命令使用过的命令Ctrl-N or Down arrow调出更近使用过的命令调出更近使用过的命令Router show history显示命令保存区内容显示命令保存区内容Router terminal history size line

44、s 设置命令保存区大小设置命令保存区大小回览之前用过的命令回览之前用过的命令show version 命令命令wg_ro_a#show versionCisco Internetwork Operating System Software IOS tm 2500 Software C2500-JS-L,Version 12.03,RELEASE SOFTWARE fc1Copyright c 1986-1999 by cisco Systems,Inc.piled Mon 08-Feb-99 18:18 by phanguyeImage text-base:0 x03050C84,data-b

45、ase:0 x00001000ROM:System Bootstrap,Version 11.010c,SOFTWAREBOOTFLASH:3000 Bootstrap Software IGS-BOOT-R,Version 11.010c,RELEASE SOFTWAREfc1wg_ro_a uptime is 20 minutesSystem restarted by reloadSystem image file is flash:c2500-js-l_120-3.binoutput omitted-More-Configuration register is 0 x2102查看配置情况

46、查看配置情况控制台控制台IOSSetup utilityshowstartup-configshowrunning-config将配置参数保存到将配置参数保存到NVRAM中中ConfigConfigRAMNVRAMshow running 和和 show startup 命令命令wg_ro_c#show startup-configUsing 1359 out of 32762 bytes!version 12.0!-More-wg_ro_c#show running-configBuilding configuration.Current configuration:!version 12.

47、0!-More-保存在保存在NVRAM中中保存在保存在RAM中中显示当前运行的和保存的配置情况显示当前运行的和保存的配置情况路由器模式一览路由器模式一览路由器模式一览路由器模式一览Routerconfig#RouterenableRouter#config termExitCtrl-Z end用户模式用户模式特权模式特权模式全局配置模式全局配置模式配置模式配置模式模式提示模式提示InterfaceRouterconfig-if#Subinterface Routerconfig-subif#Controller Routerconfig-controller#LineRouterconfig-

48、line#RouterRouterconfig-router#IPX router Routerconfig-ipx-router#保存配置保存配置wg_ro_c#wg_ro_c#copy running-config startup-configDestination filename startup-config?Building configurationwg_ro_c#将当前运行的配置复制到将当前运行的配置复制到NVRAM中中配置路由器的各种标识配置路由器的各种标识配置路由器的各种标识配置路由器的各种标识为路由器或其端口设置标识或信息为路由器或其端口设置标识或信息路由器名路由器名Rou

49、terconfig#hostname wg_ro_cwg_ro_cconfig#开机时的固定显示信息开机时的固定显示信息wg_ro_cconfig#banner motd#Accounting Department You have entered a secured system.Authorized access only!#配置路由器的各种标识配置路由器的各种标识配置路由器的各种标识配置路由器的各种标识为路由器或其端口设置标识或信息为路由器或其端口设置标识或信息路由器名路由器名Routerconfig#hostname wg_ro_cwg_ro_cconfig#开机时的固定显示信息开机时

50、的固定显示信息wg_ro_cconfig#banner motd#Accounting Department You have entered a secured system.Authorized access only!#端口描述端口描述wg_ro_cconfig#interface ethernet 0wg_ro_cconfig-if#description Engineering LAN,Bldg.18Routerconfig#line console 0Routerconfig-line#loginRouterconfig-line#password cisco控制台密码控制台密码虚

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 其他杂项

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com