收藏 分销(赏)

迈普路由器常用show命令.docx

上传人:仙人****88 文档编号:12021283 上传时间:2025-08-28 格式:DOCX 页数:10 大小:20.96KB 下载积分:10 金币
下载 相关 举报
迈普路由器常用show命令.docx_第1页
第1页 / 共10页
迈普路由器常用show命令.docx_第2页
第2页 / 共10页


点击查看更多>>
资源描述
1. 查看配置命令:sh run 作用:查看路由器的配置 2. 查看路由表 sh ip route 作用查看路由器的路由表,如下 WANGHUA_DANDONGLU#sh ip route Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management D - Redirect, E - IRMP, EX - IRMP external, o - SNSP, B - BGP Gateway of last resort is 0.0.0.0 to network 0.0.0.0 S 0.0.0.0/0 [1/78125] is directly connected, 1138:18:02, serial0/0 C 21.38.249.4/30 is directly connected, 1138:18:02, serial0/0 C 21.38.250.32/28 is directly connected, 1138:18:36, fastethernet0 C 21.38.250.56/30 is directly connected, 1138:18:37, loopback0 C 22.38.250.32/28 is directly connected, 1138:18:36, fastethernet0 C 22.38.250.56/30 is directly connected, 1138:18:37, loopback1 C 127.0.0.0/8 is directly connected, 1138:18:46, lo0 C 21.38.249.5/32 is directly connected, 1138:18:02, serial0/0 3. 简明接口信息查询 sh ip interface brif 作用:查看各个接口的状态,这里可以看到接口的对应的ip,以及接口状态,up表示接口在使用并且链路正常。 LNFS2_WN_AR_01#sh ip interface brief Interface IP-Address Status Description gigaethernet0 21.0.225.10 UP LINK TO RG5750 lo0 127.0.0.1 UP gigaethernet2 unassigned DOWN gigaethernet3 unassigned DOWN switchethernet5/0 21.0.227.21 UP switchethernet5/2 21.0.227.25 UP serial4/0 21.0.224.34 DOWN TO ShenYang serial4/1 21.0.229.45 DOWN qingyuan serial4/2 21.0.229.49 DOWN to Xinbin serial4/3 unassigned DOWN null0 unassigned UP 4. 查看内存使用情况:sh memory,会出现很多信息,重点查看总使用率如下总使用率为20.32% STATISTICS ---------- Used bytes Free bytes Total bytes Used percent ---------- ---------- ----------- ------------ 54544868 213885452 268430320 20.32% 5. 查看cpu使用率分为三步,第一打开监控cpu命令:spy cpu。第二步查看cpu情况命令:sh cpu。第三步,查看完毕后关闭监控:no spy cpu。如下cpu空闲为100% tDcacheUpd 0026a1e8 5ee99a0 250 0% ( 0) 0% ( 0) tTunnel 00397a48 55695d0 250 0% ( 0) 0% ( 0) tCGTask 00737b90 373e6f0 251 0% ( 0) 0% ( 0) KERNEL 0% ( 0) 0% ( 0) INTERRUPT 0% ( 0) 0% ( 0) IDLE 100% ( 185) 100% ( 185) TOTAL 100% ( 185) 100% ( 185) 6. 查看路由器版本信息,同时该命令可以查询到路由器运行的时间如下,该路由器版本为6.1.25(REL)(integrity),已经运行的时间为1 week 4 days LNFS2_WN_AR_01# sh version MyPower (R) Operating System Software MP2824 system image file (flash0: /flash/rp9-i-6.1.25(REL).bin), version 6.1.25(REL)(integrity), Compiled on Nov 14 2008, 19:38:09 Copyright (C) 1999 Maipu (Sichuan) Communication Technology Co., Ltd. All Rights Reserved. MP2824 Version Information System ID : 00017ab776cd Hardware Model : RM3B-MPU204-4GE with 256 MBytes DDR SDRAM, 64 MBytes flash Hardware Version : 030(Hotswap Supported) MPU CPLD Version : 002 Monitor Version : 1.13 Software Version : 6.1.25(REL)(integrity) Software Image File : flash0: /flash/rp9-i-6.1.25(REL).bin Compiled : Nov 14 2008, 19:38:09 System Uptime is 1 week 4 days 7. 查看系统日志sh log buff,可以查看路由器记录的日志信息 8. 查看设备主控信息sh system mpu MSTP_LiaoNing#sh system mpu System Card Information(Mpu 0 - ONLINE) /主控卡0在线 ---------------------------------------------------------------- Type: MPU_RM7A_MPU408_4GE /主控卡型号 Status: Start Ok /板卡正常运行 Last-Alarm: 0000 Card-Port-Num: 0 Card-SubSlot-Num: 2 Power-INTF-Status: 001f Power-Card-Status: On Serial No.: 8882094280300063 Card-Name: <NULL> Description: <NULL> Hardware-Information: HW-State: 0000 PCB-Version: H03 CPLD-Version: 002 Software-Information: Monitor-Version: 1.33 Software-Version: 6.2.47(integrity) Power-RT-Infomation: Voltage-In: 10.71 V Temperature-Information: Temperature-State: Temperature = 33. Last-Alarm = 0. CPU-On-Card-Information: < 1 CPUs> CPU-Idx: 00 Status: 0000 Core-Num: 0004 Core-State: Core-Idx-00 Core-Status: 0000 Core-Utilization: 0% Core-Idx-01 Core-Status: 0000 Core-Utilization: 0% Core-Idx-02 Core-Status: 0000 Core-Utilization: 0% Core-Idx-03 Core-Status: 0000 Core-Utilization: 0% Temperature: Temperature-State: Temperature = 60. Last-Alarm = 0. MEM-On-Card-Information: <1 MEMs> MEM-Idx: 00 MEM-State: BytesFree = 419923360 bytes BytesAlloc = 114966064 bytes BlocksFree = 515 blocks BlocksAlloc = 3085 blocks MaxBlockSizeFree = 155189248 bytes DISK-On-Card-Information: <3 DISKs> DISK-Idx: 00 Type: Flash Status: Online Last-Alarm: 0000 DISK-State: SizeTotal = 67108864 bytes SizeFree = 37109760 bytes DISK-Idx: 01 Type: Unknown Status: Offline Last-Alarm: 0000 DISK-Idx: 02 Type: Unknown Status: Offline Last-Alarm: 0000 CMM-Information: Hardware-Type: 0000 Monitor-Version: 1.0.9 Software-Version: 1.1.56 ---------------------------------------------------------------- STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR System Card Information(Mpu 0/0 - ONLINE) ---------------------------------------------------------------- Type: LGU_RM7A_MPU408_4GE_DC Status: Start Ok Last-Alarm: 0000 Card-Port-Num: 1 Card-SubSlot-Num: 0 Power-INTF-Status: 0000 Power-Card-Status: On ---------------------------------------------------------------- STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR System Card Information(Mpu 0/1 - ONLINE) ---------------------------------------------------------------- Type: LGU_RM7A_MPU408_4GE_GE Status: Start Ok Last-Alarm: 0000 Card-Port-Num: 4 Card-SubSlot-Num: 0 Power-INTF-Status: 0000 Power-Card-Status: On ---------------------------------------------------------------- STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR System Card Information(Mpu 1 - ONLINE) ---------------------------------------------------------------- Type: MPU_RM7A_MPU408_4GE Status: Start Ok Last-Alarm: 0000 Card-Port-Num: 0 Card-SubSlot-Num: 2 Power-INTF-Status: 001f Power-Card-Status: On Serial No.: 8882094170700003 Card-Name: <NULL> Description: <NULL> Hardware-Information: HW-State: 0000 PCB-Version: H03 CPLD-Version: 002 Software-Information: Monitor-Version: 1.33 Software-Version: 6.2.47(integrity) Power-RT-Infomation: Voltage-In: 10.49 V Temperature-Information: Temperature-State: Temperature = 33. Last-Alarm = 0. CPU-On-Card-Information: < 1 CPUs> CPU-Idx: 00 Status: 0000 Core-Num: 0004 Core-State: Core-Idx-00 Core-Status: 0000 Core-Utilization: 0% Core-Idx-01 Core-Status: 0000 Core-Utilization: 0% Core-Idx-02 Core-Status: 0000 Core-Utilization: 0% Core-Idx-03 Core-Status: 0000 Core-Utilization: 0% Temperature: Temperature-State: Temperature = 42. Last-Alarm = 0. MEM-On-Card-Information: <1 MEMs> MEM-Idx: 00 MEM-State: BytesFree = 424347620 bytes BytesAlloc = 110541804 bytes BlocksFree = 13 blocks BlocksAlloc = 2443 blocks MaxBlockSizeFree = 236978176 bytes DISK-On-Card-Information: <3 DISKs> DISK-Idx: 00 Type: Flash Status: Online Last-Alarm: 0000 DISK-State: SizeTotal = 67108864 bytes SizeFree = 37160960 bytes DISK-Idx: 01 Type: Unknown Status: Offline Last-Alarm: 0000 DISK-Idx: 02 Type: Unknown Status: Offline Last-Alarm: 0000 CMM-Information: Hardware-Type: 0000 Monitor-Version: 1.0.9 Software-Version: 1.1.56 ---------------------------------------------------------------- STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR System Card Information(Mpu 1/0 - ONLINE) ---------------------------------------------------------------- Type: LGU_RM7A_MPU408_4GE_DC Status: Start Ok Last-Alarm: 0000 Card-Port-Num: 1 Card-SubSlot-Num: 0 Power-INTF-Status: 0000 Power-Card-Status: On ---------------------------------------------------------------- STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR System Card Information(Mpu 1/1 - ONLINE) ---------------------------------------------------------------- Type: LGU_RM7A_MPU408_4GE_GE Status: Start Ok Last-Alarm: 0000 Card-Port-Num: 4 Card-SubSlot-Num: 0 Power-INTF-Status: 0000 Power-Card-Status: On ---------------------------------------------------------------- STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR 9 查看设备业务板卡信息sh syste lpu,类似于上面查看主控信息的命令,这里可以看到包括主控的所有板卡信息 MSTP_LiaoNing#sh system lpu MSTP_LiaoNing#sh system lpu System Card Information(Lpu 0 - OFFLINE) ---------------------------------------------------------------- STATISTICS: 0 IN, 0 OUT, 0 IERR, 0 OERR System Card Information(Lpu 1 - OFFLINE) ---------------------------------------------------------------- STATISTICS: 0 IN, 0 OUT, 0 IERR, 0 OERR System Card Information(Lpu 2 - ONLINE) ---------------------------------------------------------------- Type: LPU_RM7B_8E1H Status: Start Ok Last-Alarm: 0000 Card-Port-Num: 8 Card-SubSlot-Num: 0 Power-INTF-Status: 0000 Power-Card-Status: On Serial No.: 9671094673000031 Card-Name: 8E1 Description: <NULL> Hardware-Information: HW-State: 0000 PCB-Version: H03 CPLD-Version: 003 Power-RT-Infomation: Voltage-In: 12.05 V FPGA-On-Card-Information: <2 FPGAs> FPGA-Idx: 00 Status: Online Info-Struct: id = 0000 type = 0000 state = 00000000 version = 001 FPGA-Idx: 01 Status: Online Info-Struct: id = 0001 type = 0000 state = 00000000 version = 001 CMM-Information: Hardware-Type: 0000 Monitor-Version: 1.0.9 Software-Version: 1.1.56 ---------------------------------------------------------------- STATISTICS: 1 IN, 0 OUT, 0 IERR, 0 OERR System Card Information(Lpu 3 - ONLINE) ---------------------------------------------------------------- Type: LPU_RM7B_4GET4GEFH Status: Start Ok Last-Alarm: 0000 Card-Port-Num: 8 Card-SubSlot-Num: 0 Power-INTF-Status: 0000 Power-Card-Status: On Serial No.: 8966094281500021 Card-Name: 4GT4GF Description: <NULL> Hardware-Information: HW-State:
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服