5. 使用 CDP交换机B路由器A路由器B交换机A10.3.3.210.3.3.110.1.1.110.1.1.210.2.2.110.2.2.2S0S1RouterA#sh cdp ?
entry Information for specific neighbor entry
interface CDP interface status and configuration
neighbors CDP neighbor entries
traffic CDP statistics
RouterA(config)#no cdp run
RouterA(config)#interface serial0
RouterA(config-if)#no cdp enable
6. 交换机A同时也显示其Mac地址使用show cdp neighbor 命令RouterA#sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
RouterB Ser 0 148 R 2522 Ser 1
SwitchA0050BD855780 Eth 0 167 T S 1900 2
10.3.3.210.3.3.110.1.1.110.1.1.210.2.2.110.2.2.2S0S1交换机B路由器A路由器B交换机A
7. 使用show cdp entry 命令RouterA#sh cdp entry *
-------------------------
Device ID: RouterB
Entry address(es):
IP address: 10.1.1.2
Platform: cisco 2522, Capabilities: Router
Interface: Serial0, Port ID (outgoing port): Serial1
Holdtime : 168 sec
Version :
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fci)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Mon 08-Feb-99 18:18 by phanguye10.3.3.210.3.3.110.1.1.110.1.1.210.2.2.110.2.2.2S0S1交换机B路由器A路由器B交换机A
8. 其它CDP命令RouterA#sh cdp traffic
CDP counters :
Packets output: 56, Input: 38
Hdr syntax: 0, Chksum error: 0, Encaps failed: 3
No memory: 0, Invalid packet: 0, Fragmented: 0
RouterA#sh cdp interface
BRI0 is administratively down, line protocol is down
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
10.3.3.210.3.3.110.1.1.110.1.1.210.2.2.110.2.2.2S0S1交换机B路由器A路由器B交换机A
9. 用Telnet 连接到远端设备远端设备10.3.3.210.3.3.110.1.1.110.1.1.210.2.2.110.2.2.2S0S1RouterA#telnet 10.2.2.2
Trying 10.2.2.2 ... Open
-------------------------------------------------
Catalyst 1900 Management Console
Copyright (c) Cisco Systems, Inc. 1993-1998
All rights reserved.
Enterprise Edition Software
Ethernet Address: 00-90-86-73-33-40
PCA Number: 73-2239-06
PCA Serial Number: FAA02359H8K
Model Number: WS-C1924-EN
System Serial Number: FAA0237X0FQ
.
.
SwitchB>交换机B路由器A路由器B交换机A
10. 查看Telnet连接10.3.3.210.3.3.110.1.1.110.1.1.210.2.2.110.2.2.2S0S1RouterA#sh session
Conn Host Address Byte Idle Conn Name
1 10.1.1.2 10.1.1.2 0 1 10.1.1.2
* 2 10.3.3.2 10.3.3.2 0 0 10.3.3.2
RouterA#sh user
Line User Host(s) Idle Location
* 0 con 0 10.1.1.2 3
10.3.3.2 2
11 vty 0 idle 1 10.1.1.2
交换机B路由器A路由器B交换机A
18. 路由器启动流程图Use IOS fromFlashAttempt to get
IOS from networkUse IOS in ROM
(RXBoot mode)Check start-up
configBoot field =0
0x0Boot field =1
0x1Boot system
commands?Config regbit 13=1? 5 failures?Valid IOS inFlash?Do what
they sayRun
ROM MonitorSTARTYesYesNoNoYesNoNoYesYesNoNoYesSuccess?NoYesUse file fromNetworkLoad IOSValid config?Config regbit 6=1?YesNoYes SETUP
DIALOG NORMAL
START UP
COMPLETENo
19. 确认当前的配置寄存器值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 "flash:c2500-js-l_120-3.bin"
--More--
Configuration register is 0x2102用命令show version所显示的配置寄存器值
27. 使用 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中显示当前运行的和保存的配置情况
39. wg_ro_a#show flash
System flash directory:
File Length Name/status
1 10084696 c2500-js-l_120-3.bin
[10084760 bytes used, 6692456 available, 16777216 total]
16384K bytes of processor board System flash (Read ONLY)确认存贮空间并解析文件名确认Flash中有足够空间来存放IOS映象文件
40. wg_ro_a#copy flash tftp
Source filename []? c2500-js-l_120-3.bin
Address or name of remote host []? 10.1.1.1
Destination filename [c2500-js-l_120-3.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
41. wg_ro_a#copy tftp flash
Address or name of remote host [10.1.1.1]?
Source filename []? c2500-js-l_120-3.bin
Destination filename [c2500-js-l_120-3.bin]?
Accessing tftp://10.1.1.1/c2500-js-l_120-3.bin...
Erase flash: before copying? [confirm]
Erasing the flash filesystem will remove all files! Continue? [confirm]
Erasing device... eeeee (output omitted) ...erased
Erase of flash: complete
Loading c2500-js-l_120-3.bin from 10.1.1.1 (via Ethernet0): !!!!!!!!!!!!!!!!!!!!
(output omitted)
[OK - 10084696/20168704 bytes]
Verifying checksum... OK (0x9AA0)
10084696 bytes copied in 309.108 secs (32636 bytes/sec)
wg_ro_a#从网络升级IOS加载新的映象文件前对Flash作适当的文件删除
注意关于映象文件已经存在的提示信息网络
服务器FLASH
42. 可视化目标core_ server
10.1.1.1
255.255.255.0wg_sw_a
10.1.1.10
255.255.255.0wg_sw_l
10.1.1.120
255.255.255.0wg_pc_awg_pc_l...console10.1.1.121
255.255.255.0e0/2fa0/26
(port A)e0/2e0e0fa0/26
(port A)fa0/1fa0/12fa0/24core_sw_a
10.1.1.2
255.255.255.010.1.1.11
255.255.255.0wg_ro_lA/BA/Bwg_ro_aconsoleconsoleconsolepod sw ro’s e0
A 10.1.1.10 10.1.1.11
B 10.1.1.20 10.1.1.21
C 10.1.1.30 10.1.1.31
D 10.1.1.40 10.1.1.41
E 10.1.1.50 10.1.1.51
F 10.1.1.60 10.1.1.61
G 10.1.1.70 10.1.1.71
H 10.1.1.80 10.1.1.81
I 10.1.1.90 10.1.1.91
J 10.1.1.100 10.1.1.101
K 10.1.1.110 10.1.1.111
L 10.1.1.120 10.1.1.121