SlideShare a Scribd company logo
1 of 62
第六讲 操作与配置 Cisco IOS
本章目标 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cisco  互连网操作系统 (IOS) 软件 Cisco IOS  软件提供多种网络服务进而支持各种网络应用 .
Cisco 设备的简单启动过程 ,[object Object],[object Object],[object Object]
多种途径的配置 ,[object Object],[object Object],控制端口 Aux  端口 端口 PC or Unix 服务器 Web  或网络管 理服务器  虚拟终端 Telnet TFTP
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Cisco IOS 用户界面的基本特性 Cisco IOS
Cisco IOS 的主要命令模式 ,[object Object],[object Object],[object Object],主要有两个命令模式提供命令键入 . 模式一 :
Cisco IOS 的主要命令模式 ( 续 ) ,[object Object],[object Object],[object Object],[object Object],[object Object],模式二  ( 也是最常用的模式 ):
[object Object],[object Object],交换机的初始启动 ,[object Object],[object Object],[object Object],[object Object],[object Object]
检查交换机指示灯 (LEDs)
交换机自检期间的端口指示灯  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
交换机初次启动时的显示信息 控制台连接 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
登入交换机并键入特权模式密码 控制台 > >  enable Enter password: # #  disable >  quit 用户模式提示 特权模式提示
显示交换机初始启动的状态 Switch #show interfaces Switch#show version Switch#show running-config ,[object Object]
交换机之 show version   命令 wg_sw_c# show version Cisco Catalyst 1900/2820 Enterprise Edition Software Version V8.01.01  written from 171.068.229.225 Copyright (c) Cisco Systems, Inc.  1993-1998 wg_sw_c uptime is 15day(s) 21hour(s) 53minute(s) 11second(s)  cisco Catalyst 1900 (486sxl) processor with 2048K/1024K bytes of memory Hardware board revision is 5 Upgrade Status: No upgrade currently in progress.  Config File Status: No configuration upload/download is in progress  27 Fixed Ethernet/IEEE 802.3 interface(s) Base Ethernet Address: 00-50-BD-73-E2-C0
交换机之 show running-configuration   命令 wg_sw_c#show run Building configuration... Current configuration: ! hostname &quot;wg_sw_c&quot; ! ip address 10.1.1.33 255.255.255.0 ip default-gateway 10.3.3.3 ! interface Ethernet 0/1 <text omitted> interface Ethernet 0/24 ! Interface Ethernet 0/25 ! interface FastEthernet 0/26 ! interface FastEthernet 0/27 wg_sw_c#show run Building configuration... Current configuration: ! hostname &quot;wg_sw_c&quot; ! ip address 10.1.1.33 255.255.255.0 ip default-gateway 10.3.3.3 ! interface Ethernet 0/1 <text omitted> interface Ethernet 0/12 ! Interface Ethernet 0/25 ! interface FastEthernet 0/26 ! interface FastEthernet 0/27 Catalyst 1924 Catalyst 1912
交换机之 show   interfaces 命令 wg_sw_c# show interfaces ethernet 0/1 Ethernet 0/1 is Enabled  Hardware is Built-in 10Base-T Address is 0050.BD73.E2C1 MTU 1500 bytes, BW 10000 Kbits 802.1d STP State:  Forwarding  Forward Transitions:  1 Port monitoring: Disabled Unknown unicast flooding: Enabled  Unregistered multicast flooding: Enabled  Description:  Duplex setting: Half duplex  Back pressure: Disabled --More--
配置交换机 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
配置交换机的各种标识 ,[object Object],交换机名 (config)# hostname  wg_sw_c wg_sw_c(config)#
[object Object],[object Object],Cisco 路由器的初始启动 Check hardware Find and load Cisco IOS software image Find and apply router configuration information Load Bootstrap 1. 启动前确认正确连接线缆和控制线 2. 按下电源开关 3. 观察启动顺序   Cisco IOS 输出到控制台上的内容
[object Object],路由器启动时在控制台上的输出内容 --- 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 are in square brackets '[ ]'. Setup 模式 wg_ro_c con0 is now available Press RETURN to get started. wg_ro_c> 控制台 用户模式 提示
Setup:  初始配置对话框  Router# setup --- System Configuration Dialog --- Continue with configuration dialog? [yes/no]: y At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: n
预先浏览端口配置情况 First, would you like to see the current interface summary? [yes]: Interface  IP-Address  OK? Method Status  Protocol BRI0  unassigned  YES unset  administratively down down BRI0:1  unassigned  YES unset  administratively down down BRI0:2  unassigned  YES unset  administratively down down Ethernet0  unassigned  YES unset  administratively down down Serial0  unassigned  YES unset  administratively down down ,[object Object]
设置全局参数 ,[object Object],Configuring global parameters: Enter host name [Router]: wg_ro_c The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes 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 is used to protect access to the router over a network interface. Enter virtual terminal password:  sanjose Configure SNMP Network Management? [no]:
设置全局参数 ( 续 ) ,[object Object],Configure LAT? [yes]: n Configure AppleTalk? [no]: Configure DECnet? [no]: Configure IP? [yes]: Configure IGRP routing? [yes]: n Configure RIP routing? [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 don't want to configure BRI. [1]  basic-1tr6....1TR6 switch type for Germany [2]  basic-5ess....AT&T 5ESS switch 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 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 network is 10.0.0.0, 24 subnet bits; mask is /24 Do you want to configure Serial0  interface? [no]:
设置脚本的确认与应用 The following configuration command script was created: hostname Router enable secret 5 $1$/CCk$4r7zDwDNeqkxFO.kJxC3G0 enable password sanfran line vty 0 4 password sanjose no snmp-server ! no appletalk routing no decnet routing ip routing no clns routing no ipx routing no vines routing no xns routing no apollo routing isdn switch-type  basic-5ess interface BRI0 shutdown no ip address ! interface Ethernet0 no shutdown ip address 10.1.1.31 255.255.255.0 no mop enabled ! interface Serial0 shutdown no ip address <text omitted> end [0] Go to the IOS command 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]:
登入路由器 Console wg_ro_c> wg_ro_c> enable wg_ro_c# wg_ro_c# disable wg_ro_c> wg_ro_c > logout wg_ro_c con0 is now available Press RETURN to get started. 用户模式提示 特权模式提示
[object Object],路由器在用户模式下的命令清单 wg_ro_c > ? Exec commands: access-enable  Create a temporary Access-List entry   atmsig  Execute Atm Signalling Commands   cd  Change current device   clear  Reset functions   connect  Open a terminal connection   dir  List files on given device   disable  Turn off privileged commands   disconnect  Disconnect an existing network connection   enable  Turn on privileged commands   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 particular user   logout  Exit from the EXEC -- More --
路由器在特权模式下的命令清单 wg_ro_c#? Exec commands: 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 functions 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 commands disconnect  Disconnect an existing network connection enable  Turn on privileged commands erase  Erase a filesystem exit  Exit from the EXEC help  Description of the interactive help system -- More -- ,[object Object]
路由器命令行帮助机制 上下文关联帮助 错误信息提示 指出所输入交换机命令的错误所在,以便于修改或纠正 . 可以重新调出一个较长或较复杂的命令或其它内容,用来再次运行、查看或修改 .  之前命令保存区 提供命令清单和与特定命令相关联的参数 .
路由器的上下文相关联帮助 Router#  clok Translating &quot;CLOK&quot; % Unknown command or computer name, or unable to find computer address Router#  cl? clear  clock Router#  clock % Incomplete command. Router#  clock ? set  Set the time and date Router#  clock set % Incomplete command. Router#  <Ctrl-P>clock set ? hh:mm:ss  Current Time  ,[object Object],[object Object],[object Object]
路由器的上下文相关联帮助 ( 续 ) Router#  clok Translating &quot;CLOK&quot; % Unknown command or computer name, or unable to find computer address Router#  clear  clock Router#  % Incomplete command. Router#  set  Set the time and date Router#  % Incomplete command. Router#  hh:mm:ss  Current Time Router#  clock set 19:56:00 % Incomplete command. Router#  clock set 19:56:00 ? <1-31>  Day of the month MONTH  Month of the year Router#  clock set 19:56:00 04 8 ^ % Invalid input detected at the '^' marker Router#  clock set 19:56:00 04 August % Incomplete command. Router#  clock set 19:56:00 04 August ? <1993-2035>  Year ,[object Object],[object Object],[object Object]
使用增强的编辑命令 Router>Shape the future of internetworking by creating unpreced ,[object Object],[object Object]
使用增强的编辑命令 Router> $  future of internetworking by creating unprecedented op ( 一行中长字串会自动滚卷 ).
使用增强的编辑命令 Router>Shape the value of internetworking by creating unpreced ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 .
使用增强的编辑命令 Router> $  value for customers, employees, and partners. ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 .
使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 Router> $  value for customers, employees, and partners.
使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 . <Ctrl-F> 下移一个字符 . Router> $  value for customers, employees, and partners.
使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 <Ctrl-F> 下移一个字符 . <Ctrl-B> 回移一个字符 . Router> $  value for customers, employees, and partners.
使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 <Ctrl-F> 下移一个字符 . <Ctrl-B> 回移一个字符 . <Esc-F> 下移一个单词 Router> $  value for customers, employees, and partners.
使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 <Ctrl-F> 下移一个字符 . <Ctrl-B> 回移一个字符 . <Esc-F> 下移一个单词 <Ctrl-D> 删除当前字符 Router> $  value for customers, employees, and partners.
回览之前用过的命令 Ctrl-P or Up arrow 调出最近 ( 前一 ) 使用过的命令 Ctrl-N or Down arrow 调出更近使用过的命令 Router> show history 显示命令保存区内容 Router> terminal history size  lines   设置命令保存区大小
show version  命令 wg_ro_a# show version Cisco Internetwork Operating System Software  IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1) Copyright (c) 1986-1999 by cisco Systems, Inc. Compiled Mon 08-Feb-99 18:18 by phanguye Image text-base: 0x03050C84, data-base: 0x00001000 ROM: System Bootstrap, Version 11.0(10c), SOFTWARE BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE(fc1) wg_ro_a uptime is 20 minutes System restarted by reload System image file is &quot;flash:c2500-js-l_120-3.bin&quot; (output omitted) --More-- Configuration register is 0x2102
查看配置情况 控制台 IOS Setup utility show startup-config show running-config ,[object Object],Config Config RAM NVRAM
show running   和  show startup   命令 wg_ro_c# show startup-config Using 1359 out of 32762 bytes ! version 12.0 ! -- More -- wg_ro_c # show running-config Building configuration... Current configuration: ! version 12.0 ! -- More -- 保存在 NVRAM 中 保存在 RAM 中 ,[object Object]
路由器模式一览 ,[object Object],[object Object],[object Object],Router(config)# Router>enable Router#config term Exit Ctrl-Z (end) 配置模式 模式提示 Interface Router(config-if)# Subinterface Router(config-subif)# Controller   Router(config-controller)# Line Router(config-line)# Router Router(config-router)#
保存配置 wg_ro_c# wg_ro_c# copy running-config startup-config Destination filename [startup-config]? Building configuration… wg_ro_c# ,[object Object]
配置路由器的各种标识 ,[object Object],路由器名 Router(config)# hostname wg_ro_c wg_ro_c(config)# 开机时的固定显示信息 wg_ro_c(config)# banner motd  #   Accounting Department You have entered a secured  system. Authorized access only!   # 端口描述 wg_ro_c(config)# interface ethernet 0 wg_ro_c(config-if)# description Engineering LAN, Bldg. 18
路由器密码配置 Router(config)# line console 0 Router(config-line)# login Router(config-line)# password cisco 控制台密码 虚拟终端密码 Router(config)# line vty 0 4 Router(config-line)# login  Router(config-line)# password sanjose
路由器密码配置 Router(config)# line console 0 Router(config-line)# login Router(config-line)# password cisco 控制台密码 虚拟终端密码 Router(config)# line vty 0 4 Router(config-line)# login  Router(config-line)# password sanjose 特权模式明文密码 Router(config)# enable password cisco 特权模式加密密码 Router(config)# enable secret sanfran
其它控制台命令 Router(config)# line console 0 Router(config-line)# exec-timeout 0 0  Router(config)# line console 0 Router(config-line)# logging synchronous ,[object Object],[object Object]
端口配置 Router(config)# interface  type number Router(config-if)# ,[object Object],[object Object],[object Object],Router(config)# interface  type slot/port Router(config-if)# ,[object Object],Router(config-if)# exit
配置串口 ,[object Object],Router(config)# interface serial 0   Router(config-if)# Router# configure term Router(config)# 指定某个端口
配置串口 ,[object Object],Router(config-if)# clock rate 64000 Router(config-if)# Router(config)# interface serial 0   Router(config-if)# Router# configure term Router(config)# 指定某个端口 设置时钟频率  ( 只在 DCE 端 ) 设置带宽 Router(config-if)# bandwidth 64 Router(config-if)#exit
确认参数修改情况 Router# show interface serial 0 Serial0 is up, line protocol is up  Hardware is HD64570 Internet address is 10.140.4.2/24 MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:09, output 00:00:04, output hang never Last clearing of &quot;show interface&quot; counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops)  Conversations  0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec ( output omitted)
开启或关闭端口 Router# configure term Router(config)# interface serial 0   Router(config-if)# no shutdown %LINK-3-UPDOWN:  Interface Seria0, changed state to up %LINEPROTO-5-UPDOWN:  Line Protocol on Interface Serial0, changed state to up  开启已经关闭的端口 Router# configure term Router(config)# interface serial 0   Router(config-if)# shutdown %LINK-5-CHANGED: Interface Serial0, changed state to administratively down  %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down  人工关闭端口
路由器的  show interfaces   命令 Router# show interfaces Ethernet0 is up, line protocol is up  Hardware is Lance, address is 00e0.1e5d.ae2f (bia 00e0.1e5d.ae2f) Internet address is 10.1.1.11/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:07, output 00:00:08, output hang never Last clearing of &quot;show interface&quot; counters never Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 81833 packets input, 27556491 bytes, 0 no buffer Received 42308 broadcasts, 0 runts, 0 giants, 0 throttles 1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort 0 input packets with dribble condition detected 55794 packets output, 3929696 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 4 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
解读端口状态 Router# show interfaces serial 1 Serial1 is up, line protocol is up Hardware is HD64570  Description: 64Kb Line to San Jose  ::  ::  ::  ::  ::  ::  ::  ::  :: Operational.................. Connection problem... Interface problem........ Disabled ...................... Serial1 is up, line protocol is up Serial1 is up, line protocol is down Serial1 is down, line protocol is down Serial1 is administratively down, line protocol is down 存活信息 载波监测
串口上用  show controller   命令 Router#show controller serial 0 HD unit 0, idb = 0x121C04, driver structure at 0x127078 buffer size 1524  HD unit 0,  V.35 DTE cable . . . 显示串口线的线缆类型
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],本章总结
问题回顾 ,[object Object],[object Object],[object Object]

More Related Content

What's hot

SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/StableSR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stablejuet-y
 
Поиск и устранение неисправностей в вычислительной системе Cisco UCS
Поиск и устранение неисправностей в вычислительной системе Cisco UCSПоиск и устранение неисправностей в вычислительной системе Cisco UCS
Поиск и устранение неисправностей в вычислительной системе Cisco UCSCisco Russia
 
Troubleshooting Firewalls (2012 San Diego)
Troubleshooting Firewalls (2012 San Diego)Troubleshooting Firewalls (2012 San Diego)
Troubleshooting Firewalls (2012 San Diego)Cisco Security
 
Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3Mohamed Al-Natour
 
7 hands on
7 hands on7 hands on
7 hands onvideos
 
LF_OVS_17_Riley: Pushing networking to the edge
LF_OVS_17_Riley: Pushing networking to the edgeLF_OVS_17_Riley: Pushing networking to the edge
LF_OVS_17_Riley: Pushing networking to the edgeLF_OpenvSwitch
 
Spoto updated new
Spoto updated newSpoto updated new
Spoto updated newAmolDhoke3
 
Krzysztof Mazepa - IOS XR - IP Fast Convergence
Krzysztof Mazepa - IOS XR - IP Fast ConvergenceKrzysztof Mazepa - IOS XR - IP Fast Convergence
Krzysztof Mazepa - IOS XR - IP Fast ConvergencePROIDEA
 
Hacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHARRY CHAN PUTRA
 
Automação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOpsAutomação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOpsRaul Leite
 
Helpful Juniper Tips and Tricks for New Network Engineers
Helpful Juniper Tips and Tricks for New Network EngineersHelpful Juniper Tips and Tricks for New Network Engineers
Helpful Juniper Tips and Tricks for New Network EngineersLizbeth E. Melendez
 
Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3David Pasek
 
250601414-IOS-Security-Reference-Manual-Ver-0-9
250601414-IOS-Security-Reference-Manual-Ver-0-9250601414-IOS-Security-Reference-Manual-Ver-0-9
250601414-IOS-Security-Reference-Manual-Ver-0-9Paul Nadstoga
 
LF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OpenvSwitch
 
01c. Starting A Router
01c.  Starting A  Router01c.  Starting A  Router
01c. Starting A RouterNghiep Lam
 
Juniper Chassis Cluster Configuration with SRX-1500s
Juniper Chassis Cluster Configuration with SRX-1500sJuniper Chassis Cluster Configuration with SRX-1500s
Juniper Chassis Cluster Configuration with SRX-1500sAshutosh Patel
 

What's hot (19)

SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/StableSR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
 
Поиск и устранение неисправностей в вычислительной системе Cisco UCS
Поиск и устранение неисправностей в вычислительной системе Cisco UCSПоиск и устранение неисправностей в вычислительной системе Cisco UCS
Поиск и устранение неисправностей в вычислительной системе Cisco UCS
 
Troubleshooting Firewalls (2012 San Diego)
Troubleshooting Firewalls (2012 San Diego)Troubleshooting Firewalls (2012 San Diego)
Troubleshooting Firewalls (2012 San Diego)
 
Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3
 
7 hands on
7 hands on7 hands on
7 hands on
 
LF_OVS_17_Riley: Pushing networking to the edge
LF_OVS_17_Riley: Pushing networking to the edgeLF_OVS_17_Riley: Pushing networking to the edge
LF_OVS_17_Riley: Pushing networking to the edge
 
Spoto updated new
Spoto updated newSpoto updated new
Spoto updated new
 
Krzysztof Mazepa - IOS XR - IP Fast Convergence
Krzysztof Mazepa - IOS XR - IP Fast ConvergenceKrzysztof Mazepa - IOS XR - IP Fast Convergence
Krzysztof Mazepa - IOS XR - IP Fast Convergence
 
R1
R1R1
R1
 
Zxdsl 9210 guide
Zxdsl 9210 guideZxdsl 9210 guide
Zxdsl 9210 guide
 
Hacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guide
 
Asterisk: dongled !
Asterisk: dongled !Asterisk: dongled !
Asterisk: dongled !
 
Automação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOpsAutomação do físico ao NetSecDevOps
Automação do físico ao NetSecDevOps
 
Helpful Juniper Tips and Tricks for New Network Engineers
Helpful Juniper Tips and Tricks for New Network EngineersHelpful Juniper Tips and Tricks for New Network Engineers
Helpful Juniper Tips and Tricks for New Network Engineers
 
Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3
 
250601414-IOS-Security-Reference-Manual-Ver-0-9
250601414-IOS-Security-Reference-Manual-Ver-0-9250601414-IOS-Security-Reference-Manual-Ver-0-9
250601414-IOS-Security-Reference-Manual-Ver-0-9
 
LF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDKLF_OVS_17_IPSEC and OVS DPDK
LF_OVS_17_IPSEC and OVS DPDK
 
01c. Starting A Router
01c.  Starting A  Router01c.  Starting A  Router
01c. Starting A Router
 
Juniper Chassis Cluster Configuration with SRX-1500s
Juniper Chassis Cluster Configuration with SRX-1500sJuniper Chassis Cluster Configuration with SRX-1500s
Juniper Chassis Cluster Configuration with SRX-1500s
 

Similar to 第6讲 操作与配置Cisco Ios

operating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS deviceoperating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS devicescooby_doo
 
SESI 7 RouterTroubleshooting.pptx
SESI 7 RouterTroubleshooting.pptxSESI 7 RouterTroubleshooting.pptx
SESI 7 RouterTroubleshooting.pptxFirmanAFauzi1
 
Initial Configuration of Router
Initial Configuration of RouterInitial Configuration of Router
Initial Configuration of RouterKishore Kumar
 
Initial Configuration of Router
Initial Configuration of RouterInitial Configuration of Router
Initial Configuration of RouterKishore Kumar
 
managing your network environment
managing your network environmentmanaging your network environment
managing your network environmentscooby_doo
 
CCNA ppt Day 4
CCNA ppt Day 4CCNA ppt Day 4
CCNA ppt Day 4VISHNU N
 
Cis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemCis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemBetselove
 
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxAll contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxgalerussel59292
 
dokumen.tips_edu51ctocom-edu51ctocom (1).pptx
dokumen.tips_edu51ctocom-edu51ctocom (1).pptxdokumen.tips_edu51ctocom-edu51ctocom (1).pptx
dokumen.tips_edu51ctocom-edu51ctocom (1).pptxRueiYuZeng
 
Configuring Ip Sec Between A Router And A Pix
Configuring Ip Sec Between A Router And A PixConfiguring Ip Sec Between A Router And A Pix
Configuring Ip Sec Between A Router And A Pixangelitoh11
 
Configuring Secure Shell on Routers and Switches Running Cisco IO
Configuring Secure Shell on Routers and Switches Running Cisco IOConfiguring Secure Shell on Routers and Switches Running Cisco IO
Configuring Secure Shell on Routers and Switches Running Cisco IOHoàng Hải Nguyễn
 
Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Netwax Lab
 
IWAN Lab Guide
IWAN Lab GuideIWAN Lab Guide
IWAN Lab Guidejww330015
 
Detailed explanation of Basic router configuration
Detailed explanation of Basic router configurationDetailed explanation of Basic router configuration
Detailed explanation of Basic router configurationsamreenghauri786
 
Network topology by essay corp uk
Network topology by essay corp ukNetwork topology by essay corp uk
Network topology by essay corp ukJohnsmith5188
 
Cisco Router and Switch Security Hardening Guide
Cisco Router and Switch Security Hardening GuideCisco Router and Switch Security Hardening Guide
Cisco Router and Switch Security Hardening GuideHarris Andrea
 

Similar to 第6讲 操作与配置Cisco Ios (20)

operating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS deviceoperating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS device
 
CCNA Icnd110 s04l04
CCNA Icnd110 s04l04CCNA Icnd110 s04l04
CCNA Icnd110 s04l04
 
SESI 7 RouterTroubleshooting.pptx
SESI 7 RouterTroubleshooting.pptxSESI 7 RouterTroubleshooting.pptx
SESI 7 RouterTroubleshooting.pptx
 
Initial Configuration of Router
Initial Configuration of RouterInitial Configuration of Router
Initial Configuration of Router
 
Initial Configuration of Router
Initial Configuration of RouterInitial Configuration of Router
Initial Configuration of Router
 
managing your network environment
managing your network environmentmanaging your network environment
managing your network environment
 
Basics to Configure NW Device
Basics to Configure NW DeviceBasics to Configure NW Device
Basics to Configure NW Device
 
CCNA ppt Day 4
CCNA ppt Day 4CCNA ppt Day 4
CCNA ppt Day 4
 
C C N A Day2
C C N A  Day2C C N A  Day2
C C N A Day2
 
Cis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystemCis81 ccna1v5-2-configuring networkoperatingsystem
Cis81 ccna1v5-2-configuring networkoperatingsystem
 
Day 13.1 startingaswitch
Day 13.1 startingaswitchDay 13.1 startingaswitch
Day 13.1 startingaswitch
 
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxAll contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
 
dokumen.tips_edu51ctocom-edu51ctocom (1).pptx
dokumen.tips_edu51ctocom-edu51ctocom (1).pptxdokumen.tips_edu51ctocom-edu51ctocom (1).pptx
dokumen.tips_edu51ctocom-edu51ctocom (1).pptx
 
Configuring Ip Sec Between A Router And A Pix
Configuring Ip Sec Between A Router And A PixConfiguring Ip Sec Between A Router And A Pix
Configuring Ip Sec Between A Router And A Pix
 
Configuring Secure Shell on Routers and Switches Running Cisco IO
Configuring Secure Shell on Routers and Switches Running Cisco IOConfiguring Secure Shell on Routers and Switches Running Cisco IO
Configuring Secure Shell on Routers and Switches Running Cisco IO
 
Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)
 
IWAN Lab Guide
IWAN Lab GuideIWAN Lab Guide
IWAN Lab Guide
 
Detailed explanation of Basic router configuration
Detailed explanation of Basic router configurationDetailed explanation of Basic router configuration
Detailed explanation of Basic router configuration
 
Network topology by essay corp uk
Network topology by essay corp ukNetwork topology by essay corp uk
Network topology by essay corp uk
 
Cisco Router and Switch Security Hardening Guide
Cisco Router and Switch Security Hardening GuideCisco Router and Switch Security Hardening Guide
Cisco Router and Switch Security Hardening Guide
 

More from F.l. Yu

第8章 账户的分类
第8章 账户的分类第8章 账户的分类
第8章 账户的分类F.l. Yu
 
第一章 总论 完
第一章 总论  完第一章 总论  完
第一章 总论 完F.l. Yu
 
第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算F.l. Yu
 
第三章 复式记账 完
第三章 复式记账  完第三章 复式记账  完
第三章 复式记账 完F.l. Yu
 
第二章 会计科目与账户 完
第二章  会计科目与账户  完第二章  会计科目与账户  完
第二章 会计科目与账户 完F.l. Yu
 
Sect14 2
Sect14 2Sect14 2
Sect14 2F.l. Yu
 
Sect14 1
Sect14 1Sect14 1
Sect14 1F.l. Yu
 
Sect01 1
Sect01 1Sect01 1
Sect01 1F.l. Yu
 
第3讲 Tcpip协议栈
第3讲 Tcpip协议栈第3讲 Tcpip协议栈
第3讲 Tcpip协议栈F.l. Yu
 
第19讲 Isdn
第19讲 Isdn第19讲 Isdn
第19讲 IsdnF.l. Yu
 
第20讲 帧中继
第20讲 帧中继第20讲 帧中继
第20讲 帧中继F.l. Yu
 
第9讲 Eigrp
第9讲 Eigrp第9讲 Eigrp
第9讲 EigrpF.l. Yu
 
第18讲 Hdlc和Ppp
第18讲 Hdlc和Ppp第18讲 Hdlc和Ppp
第18讲 Hdlc和PppF.l. Yu
 
第8讲 Rip和Igrp
第8讲 Rip和Igrp第8讲 Rip和Igrp
第8讲 Rip和IgrpF.l. Yu
 
第17讲 广域网基础
第17讲 广域网基础第17讲 广域网基础
第17讲 广域网基础F.l. Yu
 
第16讲 Vlan和Vtp
第16讲 Vlan和Vtp第16讲 Vlan和Vtp
第16讲 Vlan和VtpF.l. Yu
 
第14讲 交换机基本操作
第14讲 交换机基本操作第14讲 交换机基本操作
第14讲 交换机基本操作F.l. Yu
 
第15讲 Stp
第15讲 Stp第15讲 Stp
第15讲 StpF.l. Yu
 
第12讲 Acl
第12讲 Acl第12讲 Acl
第12讲 AclF.l. Yu
 
第11讲 管理Cisco互联网络
第11讲 管理Cisco互联网络第11讲 管理Cisco互联网络
第11讲 管理Cisco互联网络F.l. Yu
 

More from F.l. Yu (20)

第8章 账户的分类
第8章 账户的分类第8章 账户的分类
第8章 账户的分类
 
第一章 总论 完
第一章 总论  完第一章 总论  完
第一章 总论 完
 
第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算
 
第三章 复式记账 完
第三章 复式记账  完第三章 复式记账  完
第三章 复式记账 完
 
第二章 会计科目与账户 完
第二章  会计科目与账户  完第二章  会计科目与账户  完
第二章 会计科目与账户 完
 
Sect14 2
Sect14 2Sect14 2
Sect14 2
 
Sect14 1
Sect14 1Sect14 1
Sect14 1
 
Sect01 1
Sect01 1Sect01 1
Sect01 1
 
第3讲 Tcpip协议栈
第3讲 Tcpip协议栈第3讲 Tcpip协议栈
第3讲 Tcpip协议栈
 
第19讲 Isdn
第19讲 Isdn第19讲 Isdn
第19讲 Isdn
 
第20讲 帧中继
第20讲 帧中继第20讲 帧中继
第20讲 帧中继
 
第9讲 Eigrp
第9讲 Eigrp第9讲 Eigrp
第9讲 Eigrp
 
第18讲 Hdlc和Ppp
第18讲 Hdlc和Ppp第18讲 Hdlc和Ppp
第18讲 Hdlc和Ppp
 
第8讲 Rip和Igrp
第8讲 Rip和Igrp第8讲 Rip和Igrp
第8讲 Rip和Igrp
 
第17讲 广域网基础
第17讲 广域网基础第17讲 广域网基础
第17讲 广域网基础
 
第16讲 Vlan和Vtp
第16讲 Vlan和Vtp第16讲 Vlan和Vtp
第16讲 Vlan和Vtp
 
第14讲 交换机基本操作
第14讲 交换机基本操作第14讲 交换机基本操作
第14讲 交换机基本操作
 
第15讲 Stp
第15讲 Stp第15讲 Stp
第15讲 Stp
 
第12讲 Acl
第12讲 Acl第12讲 Acl
第12讲 Acl
 
第11讲 管理Cisco互联网络
第11讲 管理Cisco互联网络第11讲 管理Cisco互联网络
第11讲 管理Cisco互联网络
 

第6讲 操作与配置Cisco Ios

  • 2.
  • 3. Cisco 互连网操作系统 (IOS) 软件 Cisco IOS 软件提供多种网络服务进而支持各种网络应用 .
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 11.
  • 12.
  • 13. 登入交换机并键入特权模式密码 控制台 > > enable Enter password: # # disable > quit 用户模式提示 特权模式提示
  • 14.
  • 15. 交换机之 show version 命令 wg_sw_c# show version Cisco Catalyst 1900/2820 Enterprise Edition Software Version V8.01.01 written from 171.068.229.225 Copyright (c) Cisco Systems, Inc. 1993-1998 wg_sw_c uptime is 15day(s) 21hour(s) 53minute(s) 11second(s) cisco Catalyst 1900 (486sxl) processor with 2048K/1024K bytes of memory Hardware board revision is 5 Upgrade Status: No upgrade currently in progress. Config File Status: No configuration upload/download is in progress 27 Fixed Ethernet/IEEE 802.3 interface(s) Base Ethernet Address: 00-50-BD-73-E2-C0
  • 16. 交换机之 show running-configuration 命令 wg_sw_c#show run Building configuration... Current configuration: ! hostname &quot;wg_sw_c&quot; ! ip address 10.1.1.33 255.255.255.0 ip default-gateway 10.3.3.3 ! interface Ethernet 0/1 <text omitted> interface Ethernet 0/24 ! Interface Ethernet 0/25 ! interface FastEthernet 0/26 ! interface FastEthernet 0/27 wg_sw_c#show run Building configuration... Current configuration: ! hostname &quot;wg_sw_c&quot; ! ip address 10.1.1.33 255.255.255.0 ip default-gateway 10.3.3.3 ! interface Ethernet 0/1 <text omitted> interface Ethernet 0/12 ! Interface Ethernet 0/25 ! interface FastEthernet 0/26 ! interface FastEthernet 0/27 Catalyst 1924 Catalyst 1912
  • 17. 交换机之 show interfaces 命令 wg_sw_c# show interfaces ethernet 0/1 Ethernet 0/1 is Enabled Hardware is Built-in 10Base-T Address is 0050.BD73.E2C1 MTU 1500 bytes, BW 10000 Kbits 802.1d STP State: Forwarding Forward Transitions: 1 Port monitoring: Disabled Unknown unicast flooding: Enabled Unregistered multicast flooding: Enabled Description: Duplex setting: Half duplex Back pressure: Disabled --More--
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. Setup: 初始配置对话框 Router# setup --- System Configuration Dialog --- Continue with configuration dialog? [yes/no]: y At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Basic management setup configures only enough connectivity for management of the system, extended setup will ask you to configure each interface on the system Would you like to enter basic management setup? [yes/no]: n
  • 23.
  • 24.
  • 25.
  • 26. 设置端口参数 BRI interface needs isdn switch-type to be configured Valid switch types are : [0] none..........Only if you don't want to configure BRI. [1] basic-1tr6....1TR6 switch type for Germany [2] basic-5ess....AT&T 5ESS switch 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 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 network is 10.0.0.0, 24 subnet bits; mask is /24 Do you want to configure Serial0 interface? [no]:
  • 27. 设置脚本的确认与应用 The following configuration command script was created: hostname Router enable secret 5 $1$/CCk$4r7zDwDNeqkxFO.kJxC3G0 enable password sanfran line vty 0 4 password sanjose no snmp-server ! no appletalk routing no decnet routing ip routing no clns routing no ipx routing no vines routing no xns routing no apollo routing isdn switch-type basic-5ess interface BRI0 shutdown no ip address ! interface Ethernet0 no shutdown ip address 10.1.1.31 255.255.255.0 no mop enabled ! interface Serial0 shutdown no ip address <text omitted> end [0] Go to the IOS command 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]:
  • 28. 登入路由器 Console wg_ro_c> wg_ro_c> enable wg_ro_c# wg_ro_c# disable wg_ro_c> wg_ro_c > logout wg_ro_c con0 is now available Press RETURN to get started. 用户模式提示 特权模式提示
  • 29.
  • 30.
  • 31. 路由器命令行帮助机制 上下文关联帮助 错误信息提示 指出所输入交换机命令的错误所在,以便于修改或纠正 . 可以重新调出一个较长或较复杂的命令或其它内容,用来再次运行、查看或修改 . 之前命令保存区 提供命令清单和与特定命令相关联的参数 .
  • 32.
  • 33.
  • 34.
  • 35. 使用增强的编辑命令 Router> $ future of internetworking by creating unprecedented op ( 一行中长字串会自动滚卷 ).
  • 36. 使用增强的编辑命令 Router>Shape the value of internetworking by creating unpreced ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 .
  • 37. 使用增强的编辑命令 Router> $ value for customers, employees, and partners. ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 .
  • 38. 使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 Router> $ value for customers, employees, and partners.
  • 39. 使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 . <Ctrl-F> 下移一个字符 . Router> $ value for customers, employees, and partners.
  • 40. 使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 <Ctrl-F> 下移一个字符 . <Ctrl-B> 回移一个字符 . Router> $ value for customers, employees, and partners.
  • 41. 使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 <Ctrl-F> 下移一个字符 . <Ctrl-B> 回移一个字符 . <Esc-F> 下移一个单词 Router> $ value for customers, employees, and partners.
  • 42. 使用增强的编辑命令 ( 一行中长字串会自动滚卷 ). <Ctrl-A> 光标移动到命令行的开始位置 . <Ctrl-E> 光标移动到命令行的结束位置 . <Esc-B> 回移一个单词 <Ctrl-F> 下移一个字符 . <Ctrl-B> 回移一个字符 . <Esc-F> 下移一个单词 <Ctrl-D> 删除当前字符 Router> $ value for customers, employees, and partners.
  • 43. 回览之前用过的命令 Ctrl-P or Up arrow 调出最近 ( 前一 ) 使用过的命令 Ctrl-N or Down arrow 调出更近使用过的命令 Router> show history 显示命令保存区内容 Router> terminal history size lines 设置命令保存区大小
  • 44. show version 命令 wg_ro_a# show version Cisco Internetwork Operating System Software IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1) Copyright (c) 1986-1999 by cisco Systems, Inc. Compiled Mon 08-Feb-99 18:18 by phanguye Image text-base: 0x03050C84, data-base: 0x00001000 ROM: System Bootstrap, Version 11.0(10c), SOFTWARE BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE(fc1) wg_ro_a uptime is 20 minutes System restarted by reload System image file is &quot;flash:c2500-js-l_120-3.bin&quot; (output omitted) --More-- Configuration register is 0x2102
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50. 路由器密码配置 Router(config)# line console 0 Router(config-line)# login Router(config-line)# password cisco 控制台密码 虚拟终端密码 Router(config)# line vty 0 4 Router(config-line)# login Router(config-line)# password sanjose
  • 51. 路由器密码配置 Router(config)# line console 0 Router(config-line)# login Router(config-line)# password cisco 控制台密码 虚拟终端密码 Router(config)# line vty 0 4 Router(config-line)# login Router(config-line)# password sanjose 特权模式明文密码 Router(config)# enable password cisco 特权模式加密密码 Router(config)# enable secret sanfran
  • 52.
  • 53.
  • 54.
  • 55.
  • 56. 确认参数修改情况 Router# show interface serial 0 Serial0 is up, line protocol is up Hardware is HD64570 Internet address is 10.140.4.2/24 MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:09, output 00:00:04, output hang never Last clearing of &quot;show interface&quot; counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec ( output omitted)
  • 57. 开启或关闭端口 Router# configure term Router(config)# interface serial 0 Router(config-if)# no shutdown %LINK-3-UPDOWN: Interface Seria0, changed state to up %LINEPROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up 开启已经关闭的端口 Router# configure term Router(config)# interface serial 0 Router(config-if)# shutdown %LINK-5-CHANGED: Interface Serial0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down 人工关闭端口
  • 58. 路由器的 show interfaces 命令 Router# show interfaces Ethernet0 is up, line protocol is up Hardware is Lance, address is 00e0.1e5d.ae2f (bia 00e0.1e5d.ae2f) Internet address is 10.1.1.11/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:07, output 00:00:08, output hang never Last clearing of &quot;show interface&quot; counters never Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 81833 packets input, 27556491 bytes, 0 no buffer Received 42308 broadcasts, 0 runts, 0 giants, 0 throttles 1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort 0 input packets with dribble condition detected 55794 packets output, 3929696 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 4 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
  • 59. 解读端口状态 Router# show interfaces serial 1 Serial1 is up, line protocol is up Hardware is HD64570 Description: 64Kb Line to San Jose :: :: :: :: :: :: :: :: :: Operational.................. Connection problem... Interface problem........ Disabled ...................... Serial1 is up, line protocol is up Serial1 is up, line protocol is down Serial1 is down, line protocol is down Serial1 is administratively down, line protocol is down 存活信息 载波监测
  • 60. 串口上用 show controller 命令 Router#show controller serial 0 HD unit 0, idb = 0x121C04, driver structure at 0x127078 buffer size 1524 HD unit 0, V.35 DTE cable . . . 显示串口线的线缆类型
  • 61.
  • 62.