中兴PTN常用命令解析

常用命令说明;1.清空原有配置:;使用showrunning-config命令检查;清空配置的步骤如下:2.查看各个vlan与端口之;命令:showvlan;用途:查看我们建立的网管vlan通道是否已和端口;说明:;假如,我们建立的网管vlan通道为4093,且将;3.查看各接口VLAN与IP的对应信息;命令:showipinterfacebrief;;用途

 

常用命令说明

1. 清空原有配置:

使用show running-config命令检查当前系统是否已经有配置存在,如果有,需清空路由器的配置,再按要求进行配置。

清空配置的步骤如下:

2. 查看各个vlan与端口之间的配置情况:

命令:show vlan

用途:查看我们建立的网管vlan通道是否已和端口绑定联系,从端口的tagport能够查看相关信息。

说明:

假如,我们建立的网管vlan通道为4093,且将端口xgei_4/1以及xgei_4/2都设置为通过vlan4093的trunk工作模式,那么此时的vlan4093的tagport将包含xgei_4/1和xgei_4/2。此时倘若在某个端口设置了native vlan为4093,那么4093的pvidport会包含该端口。

3.查看各接口VLAN与IP的对应信息

命令:show ip interface brief;

用途:检查IP地址/掩码是否正确,接口是否激活

截图:

说明:AdminStatus为up表示接口的管理状态是可用,down为不可用。可以在接口模式下用no shutdown设为可用,shutdown设为不可用,缺省为可用状态。

PhyStatus为up表示物理状态激活,down表示物理未连接或异常,这时需要检查网线或光纤。

Protocol为up表示链路层协议可用,down表示不可用,这时需要检查配置。

4. 查看各物理接口的工作状态:

命令:show interface brief

用途:检测各个工作端口的状态信息是否正常

截图如下:

说明:

AdminStatus为up表示接口的管理状态是可用,down为不可用。可以在接口模式下用no shutdown设为可用,shutdown设为不可用,缺省为可用状态。

PhyStatus为up表示物理状态激活,down表示物理未连接或异常,这时需要检查网线或光纤。

Protocol为up表示链路层协议可用,down表示不可用,这时需要检查配置。

5. 检查某个物理端口的流量以及具体信息

命令:show interface gei_x/x

用途:查看某个端口是否运行正常,收发包的具体流量,是否收到错包等。

说明:

如果出现大量CRC错误,请检查网线或光功率是否符合要求。

必要时,可以通过clear counter gei_1/1清除统计数据,以便于重新计算接口收发包的数量。

6. 查看ARP表情况

命令:show arp

用途:检查以太网接口的ARP表项.。

说明:

Age为“-”表示这个IP地址是路由器自身接口上的,应检查是否有对段的ARP表项,如果没有,需检查对端地址是否配置正确。

7. 查看路由表:

命令:show ip route

该命令可以显示路由器的全局路由表,查看路由表中是否有配置的静态路由。

这条命令非常有用,在路由协议的诊断维护中也经常需要用到。

8.查询设备版本信息;ZXR10#showversion;ZXR10RouterOperatingSyst;ZXR10ROSVersionV4.08.33Z;SOFTWARE;Copyright(c)2001-2010byZ;CompiledOct262010,14:47:;Systemimagefilesareflash;Systemuptimeis206

8. 查询设备版本信息

ZXR10#show version

ZXR10 Router Operating System Software, ZTE Corporation

ZXR10 ROS Version V4.08.33 ZXCTN 6300 Software, Version ZXCTN 6200&6300 V1.10.00B26, RELEASE

SOFTWARE

Copyright (c) 2001-2010 by ZTE Corporation

Compiled Oct 26 2010, 14:47:18

System image files are flash:</flash/img/zxr10.zar>

System uptime is 206 day(s), 23 hour(s), 11 minute(s)

[SCCU, panel 1, master]

Main Processor : PowerPC MPC8541 Processor System Memory : 1024M bytes , System FLASH : 128M bytes System NVRAM : 8K bytes , System Temperature: 45℃

System Serial : 131 , System BaudRate : 9600

System Clock : PTP stratum 3 , Serial Number : 0

FPGA Version : V0.1 , Main CPLD Version : V3.5

Main PCB Number : 080702 , CPU CPLD Version : V1.8 Fan CPLD Version : V2.1 , PCI CPLD Version : V1.3

Fan PCB Number : 080901 , Board Type : RSCCU3 Part Number : 0

[SCCU, panel 2, slave]

Main Processor : PowerPC MPC8541 Processor System Memory : 1024M bytes , System FLASH : 128M bytes System NVRAM : 8K bytes , System Temperature: 44℃

System Serial : 131 , System BaudRate : 9600

System Clock : PTP stratum 3 , Serial Number : 0

FPGA Version : V0.1 , Main CPLD Version : V3.5

Main PCB Number : 080702 , CPU CPLD Version : V1.8 Fan CPLD Version : V2.1 , PCI CPLD Version : V1.3

Fan PCB Number : 080901 , Board Type : RSCCU3 Part Number : 0

[NPCI, panel 6]

Main Processor : W90N740 Processor

System Memory : 16M bytes , Port Number : 8

Board Type : R8EGF , Serial Number : 251020401478

Main CPLD Version: V1.4 , FPGA Version : V0.8

Main PCB Number : 081001 , Part Number : 0

ZXR10-6300#show boot

[SCCU, panel 1, master]

Bootrom Version : V11.10

Creation Date : 2010/10/22

Update Support : YES

[SCCU, panel 2, slave]

Bootrom Version : V11.10

Creation Date : 2010/10/22

[NPCI, panel 6]

Bootrom Version :V1.15

Creation Date : 2010/8/17

9. 查看设备本端端口和对端端口连接状态

9008#show lldp neigh /显示本端端口和对端端口连接状态

gei_2/1/1 08181a94a200 115 B R ZXR10 ROS Versio

gei_2/2/1

gei_2/2/1 08181a94a200 96 B R ZXR10 ROS Versio

gei_2/1/1

10. 查询CPU占用率

ZXR10#show processor

M: Master processor

S: Slave processor

PhyMem: Physical memory (megabyte) Panel CPU(5s) CPU(1m) CPU(5m) PhyMem Buffer Memory MP(M) 1 23% 23% 23% 1024 0% 44.743% MP(S) 2 19% 18% 18% 1024 0% 42.754% NP(M) 6 27% 29% 28% 16 2% 71.921% ZXR10#show processor details

M: Master processor

S: Slave processor

PeakCPU: CPU peak utility measured in 1 minute

AveCPU: CPU average utility measured in 1 hour

Ticks: Ticks when CPU gets PeakCPU and AveCPU PeakTime: Date and time when CPU reaches PeakCPU

Panel Hours AveCPU PeakCPU Ticks PeakTime MP(M) 1 1 35% 37% 0x531bdfc 10:16:59:800 2010-05-14

1 2 35% 40% 0x53179a0 09:40:51:800 2010-05-14

1 3 34% 37% 0x52bfb60 09:11:49:800 2010-05-14

1 4 34% 37% 0x5267d20 07:37:49:800 2010-05-14

1 5 34% 35% 0x520fee0 07:25:49:800 2010-05-14

1 6 34% 37% 0x51b80a0 05:37:49:800 2010-05-14

重点:1,CPU(5s) CPU(1m) CPU(5m)占用率大于70%,需要用show processor detail详细看是什么进程导致CPU占用过高,确认是否有广播包冲击导致。

11. 查询设备端口UP状况

ZXR10#show interface brief

Interface PortAttribute Mode BW(Mbits) Admin Phy Prot Description gei_6/1 optical Duplex/full 100 up up up none gei_6/2 optical Duplex/full 100 up down down none gei_6/3 optical Duplex/full 1000 up down down none gei_6/4 optical Duplex/full 1000 up down down none gei_6/5 optical Duplex/full 1000 up down down none gei_6/6 optical Duplex/full 1000 up down down none gei_6/7 optical Duplex/full 1000 up down down none gei_6/8 optical Duplex/full 1000 up down down none extimer_13/1 electric up down down none

gps_13/2 electric up down down none extimer_14/1 electric up down down none gps_14/2 electric up down down none 重点:1,关注是否有没有使用的端口UP。如果该端口没有使用而UP,可以试着关闭该端口,确认是否可以解决闪断问题。

12. 查询设备端口光功率

ZXR10# #show opt interface xgei_6/1

InterfaceName:xgei_6/1

OnlineStatus:ON_LINE

SFPType:SINGLE MODE

CodesType:OC 192, SONET/SDH Short Haul Link Compliance Codes

10GBASE-ER/W

Version:00y

VendorName:Opnext Inc.

VendorPN:TRF7052FN-GA310

VendorSN:T10C89878

DisSMFkm(m):40000

Dis9_125um(m):0 Dis50_125um(m):0

Dis62_125um(m):0 DisCopperLine(m):0

WaveLength(nm):1550 Temperature(℃):22.847656

Rx-Power(dBm):-2.313619 Tx-Power(dBm):0.837534

Tx-Current(mA):62.152000 Voltage(V):3.337500

重点:1,Rx-Power(dBm),Tx-Power(dBm)是否在合适的范围。该范围请参考光模块参数表。如果光太强或者光过弱,可能会导致业务的闪断,甚至中断。

13. 查询设备端口

ZXR10#show interface gei_6/1 gei_6/1 is up, line protocol is up

BynameisnoneDescriptioni;Broadcasts:556424CRC-ERR;FlowContr:0DeExceFrame:0;重点:1,端口Interfaceutilizat;2,关注65-127B,256-511B,512;

Byname is none Description is none The port is optical Duplex full Smb ipg 13 Smb mcc bandwidth 2 Mcc vlan id is 0 No loopback BW 100000 Kbits Last clearing of "show interface" counters never 120 seconds input rate: 2688 Bps, 6 pps 120 seconds output rate: 938 Bps, 12 pps Interface peak rate : input 56925Bps, output 400957Bps Interface utilization: input 0%, output 0% Input: Packets : 286171521 Bytes : 60981655993 Unicasts : 285615097 Multicasts : 0

Broadcasts : 556424 CRC-ERROR : 0 Dropped : 134174 Fragments : 0 MacRxErr : 0 Errframe : 0 Jabber : 0 Disframe : 134174 UnicErrors : 0 MultiErrors : 0 BroErrors : 0 GoodJumb : 35 LittUndersize: 0 64B : 65918315 65-127B : 140830468 128-255B : 29690232 256-511B : 13948601 512-1023B : 21239265 1024-Max : 14544640 Oversize : 0 AlignErrors : 0 Output: Packets : 342915244 Bytes : 27421143327 Unicasts : 231192058 Multicasts : 1169867

Broadcasts : 110553319 Collisions : 0 LateCollision: 0 ColliTimes : 0

FlowContr : 0 DeExceFrame : 0 DecolliFra : 0 NonUniFrame : 111723186 ErrBytes : 0 ErrFrame : 0 MacControl : 0 JabberFrame : 0 GoodJumb : 0 LittUndersize: 0 64B : 136570557 65-127B : 201157005 128-255B : 2571875 256-511B : 1055420 512-1023B : 1007243 1024-Max : 553144 Oversize : 0

重点:1,端口Interface utilization (Input or output)是否大于实际流量较多,比如端口仅有10M的业务,而查询出GE口的流量已经10%,那就要分析多余流量是来自哪里,是否是环回导致的。

2,关注65-127B,256-511B,512-1023B,1024-Max包统计,是否异常包,如有需要分析为何导致异常。

  • 2
    点赞
  • 28
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

通信瓦工

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值