基本实验
路由器基本操作 1.
Router> //用户模式
Router>enable //在用户模式敲入enable 进入特权模式(也叫enable 模式) Router#disable //在特权模式敲入disable 退出到用户模式 Router>enable //在用户模式敲入enable 进入特权模式
Router#configure terminal //在特权模式敲入configure terminal 进入到配置模式
Router(config)#interface ethernet 0/0 //在配置模式敲入“interface+接口类型+接口编号”进入接口模式
Router(config-if)#exit //敲入exit 退出接口模式
Router(config)#router rip //敲入“router + 路由协议”进入router 模式 Router(config-router)#exit //退出router 模式 Router(config)#line console 0 //进入line 模式
Router(config-line)#end //从line 模式退出(任何时候敲入end 会退出到特权模式) Router#conf t
Router(config)#interface ethernet 0/0.1 //进入子接口模式
Router(config-subif)#end //任何时候敲入end 会退出到特权模式
常用show命令的介绍:
Router#show version 查看路由器版本 Router#show flash: 查看路由器flash Router#show history 查看历史命令记录 Router#show interfaces s0/0 查看接口物理相关信息 Router#show ip int s0/0 查看接口协议相关信息 Router#show ip int brief 查看接口简要信息
Router#show running-config 查看路由器启动配置文件 Router#show running-config 查看路由器运行配置文件 Router#show users 查看当前登录的所有用户 Router#show arp 查看路由器ARP表 试验如下图:
查看路由器日志信息: Router#show buffers Buffer elements:
1119 in free list (1119 max allowed) 16 hits, 0 misses, 619 created
Public buffer pools: Small buffers, 104 bytes (total 89, permanent 50, peak 89 @ 00:01:08): 58 in free list (20 min, 150 max allowed)
97 hits, 13 misses, 0 trims, 39 created 0 failures (0 no memory) Middle buffers, 600 bytes (total 43, permanent 25, peak 43 @ 00:01:09): 40 in free list (10 min, 150 max allowed) 92 hits, 6 misses, 0 trims, 18 created 0 failures (0 no memory)
Big buffers, 1536 bytes (total 50, permanent 50): 50 in free list (5 min, 150 max allowed) 66 hits, 0 misses, 0 trims, 0 created 0 failures (0 no memory)
VeryBig buffers, 4520 bytes (total 10, permanent 10): 10 in free list (0 min, 100 max allowed) 0 hits, 0 misses, 0 trims, 0 created 0 failures (0 no memory)
Large buffers, 5024 bytes (total 0, permanent 0): 0 in free list (0 min, 10 max allowed) 0 hits, 0 misses, 0 trims, 0 created 0 failures (0 no memory)
Huge buffers, 18024 bytes (total 0, permanent 0): 0 in free list (0 min, 4 max allowed) 0 hits, 0 misses, 0 trims, 0 created 0 failures (0 no memory)
Interface buffer pools:
IPC buffers, 4096 bytes (total 2, permanent 2): 2 in free list (1 min, 8 max allowed) 0 hits, 0 fallbacks, 0 trims, 0 created 0 failures (0 no memory)
Header pools: Header buffers, 0 bytes (total 511, permanent 256, peak 511 @ 00:01:19): 255 in free list (256 min, 1024 max allowed) 171 hits, 85 misses, 0 trims, 255 created 0 failures (0 no memory)
256 max cache size, 256 in cache 0 hits in cache, 0 misses in cache
Particle Clones:
1024 clones, 0 hits, 0 misses
Public particle pools:
F/S buffers, 128 bytes (total 512, permanent 512): 0 in free list (0 min, 512 max allowed) 512 hits, 0 misses
512 max cache size, 512 in cache 0 hits in cache, 0 misses in cache
Normal buffers, 512 bytes (total 2048, permanent 2048): 2048 in free list (1024 min, 4096 max allowed) 0 hits, 0 misses, 0 trims, 0 created 0 failures (0 no memory)
Private particle pools:
FastEthernet0/0 buffers, 512 bytes (total 400, permanent 400): 0 in free list (0 min, 400 max allowed) 400 hits, 0 fallbacks
400 max cache size, 271 in cache
129 hits in cache, 0 misses in cache
14 buffer threshold, 0 threshold transitions
Serial1/0 buffers, 512 bytes (total 64, permanent 64): 0 in free list (0 min, 64 max allowed) 64 hits, 0 fallbacks
64 max cache size, 27 in cache
37 hits in cache, 0 misses in cache
10 buffer threshold, 0 threshold transitions
Serial1/1 buffers, 512 bytes (total 64, permanent 64): 0 in free list (0 min, 64 max allowed) 64 hits, 0 fallbacks
64 max cache size, 27 in cache
37 hits in cache, 0 misses in cache
10 buffer threshold, 0 threshold transitions
Serial1/2 buffers, 512 bytes (total 64, permanent 64): 0 in free list (0 min, 64 max allowed) 64 hits, 0 fallbacks
64 max cache size, 27 in cache
37 hits in cache, 0 misses in cache
10 buffer threshold, 0 threshold transitions
Serial1/3 buffers, 512 bytes (total 64, permanent 64): 0 in free list (0 min, 64 max allowed) 64 hits, 0 fallbacks
64 max cache size, 27 in cache
37 hits in cache, 0 misses in cache
10 buffer threshold, 0 threshold transitions
Serial1/4 buffers, 512 bytes (total 64, permanent 64): 0 in free list (0 min, 64 max allowed) 64 hits, 0 fallbacks
64 max cache size, 27 in cache
37 hits in cache, 0 misses in cache
10 buffer threshold, 0 threshold transitions
Serial1/5 buffers, 512 bytes (total 64, permanent 64): 0 in free list (0 min, 64 max allowed) 64 hits, 0 fallbacks
64 max cache size, 27 in cache
37 hits in cache, 0 misses in cache
10 buffer threshold, 0 threshold transitions
Serial1/6 buffers, 512 bytes (total 64, permanent 64): 0 in free list (0 min, 64 max allowed) 64 hits, 0 fallbacks
64 max cache size, 27 in cache
37 hits in cache, 0 misses in cache
10 buffer threshold, 0 threshold transitions
Serial1/7 buffers, 512 bytes (total 64, permanent 64): 0 in free list (0 min, 64 max allowed) 64 hits, 0 fallbacks
64 max cache size, 27 in cache
37 hits in cache, 0 misses in cache
10 buffer threshold, 0 threshold transitions
FastEthernet2/0 buffers, 512 bytes (total 400, permanent 400): 0 in free list (0 min, 400 max allowed) 400 hits, 0 fallbacks
400 max cache size, 271 in cache
129 hits in cache, 0 misses in cache
14 buffer threshold, 0 threshold transitions
查看路由器CPU使用信息:
Router#show process cpu CPU utilization for five seconds: 3%/0%; one minute: 1%; five minutes: 0% PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process 1 0 4 0 0.00% 0.00% 0.00% 0 Chunk Manager
2 0 14 0 0.00% 0.00% 0.00% 0 Load Meter 3 0 1 0 0.00% 0.00% 0.00% 0 chkpt message ha
4 0 1 0 0.00% 0.00% 0.00% 0 EDDRI_MAIN 5 84 10 8400 0.00% 0.05% 0.01% 0 Check heaps
6 0 1 0 0.00% 0.00% 0.00% 0 Pool Manager
7 0 2 0 0.00% 0.00% 0.00% 0 Timers
8 0 2 0 0.00% 0.00% 0.00% 0 ATM AutoVC Perio
9 0 2 0 0.00% 0.00% 0.00% 0 ATM VC Auto
Crea
10 0 2 0 0.00% 0.00% 0.00% 0 IPC Dynamic Cach
11 0 1 0 0.00% 0.00% 0.00% 0 IPC Zone Manager
12 0 67 0 0.00% 0.00% 0.00% 0 IPC Periodic Tim
13 0 67 0 0.00% 0.00% 0.00% 0 IPC Deferred Por
14 0 1 0 0.00% 0.00% 0.00% 0 IPC Seat Manager
15 0 1 0 0.00% 0.00% 0.00% 0 IPC BackPressure
16 164 66 2484 3.44% 0.27% 0.05% 0 EnvMon 17 0 1 0 0.00% 0.00% 0.00% 0 OIR Handler
18 0 1 0 0.00% 0.00% 0.00% 0 Crash writer
19 0 5 0 0.00% 0.00% 0.00% 0 ARP Input 20 0 2 0 0.00% 0.00% 0.00% 0 ATM Idle Timer
21 0 2 0 0.00% 0.00% 0.00% 0 AAA high-capacit --More--
查看物理内存使用信息: Router#show memary
I/O memory
ddress Bytes Prev Next Ref PrevF NextF Alloc PC what
000000 0000000032 00000000 0F000050 000 6506981C 0 00000000 (fragment
a*0050 0000000272 0F000000 0F000190 001 -------- -------- 60325474 *Packet D
a*0190 0000000272 0F000050 0F0002D0 001 -------- -------- 60325474 *Packet D
0002D0 0000000272 0F000190 0F000410 001 -------- -------- 60325474 *Packet D a*
000410 0000000272 0F0002D0 0F000550 001 -------- -------- 60325474 *Packet D a*
思科入门级基本试验



