MX960运维命令汇总手册
更新时间:2024-01-04 02:36:01 阅读量: 教育文库 文档下载
Juniper MX960 运维管理命令汇总手册
(Version 1)
November,2012
1. 查看设备的启动时间
root@MX960_weihai> show system uptime Current time: 2013-03-23 10:41:03 CST
System booted: 2013-03-22 21:13:15 CST (13:27:48 ago) Protocols started: 2013-03-22 21:14:14 CST (13:26:49 ago)
Last configured: 2013-03-23 10:09:02 CST (00:32:01 ago) by root 10:41AM up 13:28, 1 user, load averages: 0.00, 0.01, 0.00
root@MX960_weihai>
【说明】
本命令可以检测设备当前运行时钟是否准确,以及设备持续运行时长等。
2. 查看系统和硬件告警信息
root@MX960_weihai> show system alarms 4 alarms currently active
Alarm time Class Description
2012-08-02 21:43:39 CST Minor Require a Fan Tray upgrade 2012-08-02 21:42:44 CST Major PEM 2 Input Failure 2012-08-02 21:42:44 CST Major PEM 2 Not OK
2012-08-02 21:42:34 CST Major Host 0 fxp0 : Ethernet Link Down
root@MX960_weihai> show chassis alarms 4 alarms currently active
Alarm time Class Description
2012-08-02 21:43:39 CST Minor Require a Fan Tray upgrade 2012-08-02 21:42:44 CST Major PEM 2 Input Failure 2012-08-02 21:42:44 CST Major PEM 2 Not OK
2012-08-02 21:42:34 CST Major Host 0 fxp0 : Ethernet Link Down
【说明】
上述命令可以检测设备硬件和系统告警信息。
3. 查看硬件信息
root@MX960_weihai> show chassis hardware Hardware inventory:
Item Version Part number Serial number Description Chassis JN1145ED3AFA MX960 Midplane REV 03 710-013698 ABAA2575 MX960
Backplane
FPM Board REV 03 710-014974 XE4393 Front Panel Display
PDM Rev 03 740-013110 QCS1330501Y Power Distribution Module
PEM 0 Rev 04 740-013682 QCS1239405H PS 1.7kW; 200-240VAC in
PEM 1 Rev 04 740-013682 QCS1247404F PS 1.7kW; 200-240VAC in
PEM 2 Rev 04 740-013682 QCS1247404K PS 1.7kW; 200-240VAC in
Routing Engine 0 REV 05 740-031118 9009065561 RE-S-1800x4 CB 0 REV 12 710-021523 CAAA7848 MX SCB CB 1 REV 05 710-021523 XT5801 MX SCB FPC 2 REV 25 750-031089 CAAC3032 MPC Type 2 3D CPU REV 08 711-030884 CAAB7298 MPC PMB 2G MIC 0 REV 26 750-028392 CAAC8065 3D 20x 1GE(LAN) SFP
PIC 0 BUILTIN BUILTIN 10x 1GE(LAN) SFP Xcvr 0 25774A NON-JNPR WHTDCN13043270 SFP-LX10 Xcvr 1 NON-JNPR MTD11012682 SFP-T PIC 1 BUILTIN BUILTIN 10x 1GE(LAN) SFP Xcvr 0 NON-JNPR 37A8020 UNSUPPORTED MIC 1 REV 27 750-028387 CAAB8096 3D 4x 10GE XFP
PIC 2 BUILTIN BUILTIN 2x 10GE XFP Xcvr 0 NON-JNPR KBS00LF XFP-10G-LR Xcvr 1 NON-JNPR KBQ02AQ XFP-10G-LR PIC 3 BUILTIN BUILTIN 2x 10GE XFP Xcvr 0 NON-JNPR KCJ0022 XFP-10G-LR
Xcvr 1 NON-JNPR KBR02D4 XFP-10G-LR Fan Tray 0 REV 05 740-014971 VS6983 Fan Tray Fan Tray 1 REV 05 740-014971 VS6488 Fan Tray 【说明】
本命令可以检测设备硬件的详细信息: PEM:电源模块
Routing Engine:路由引擎板 CB:SCB板,交换控制板 FPC:Flexible PIC Concentrator PIC:Physical Interface Card 物理接口卡
MPC:Modular Port Concentrator 模块化端口集中器 MIC:Modular Interface Card 模块化接口卡 SFP-SX:多模SFP光模块 SFP-T:SFP电口模块
SFP-LH:单模70Km SFP光模块 SFP-LX10:单模10Km SFP光模块 XFP-10G-ER:单模40Km 10GE光模块 XFP-10G-LR:单模10Km 10GE光模块 Fan Tray:风扇
4. 查看设备环境信息
root@MX960_weihai> show chassis environment
Class Item Status Temp PEM 0 OK degrees F
PEM 1 OK degrees F
PEM 2 Check PEM 3 Absent Routing Engine 0 OK Routing Engine 0 CPU OK Routing Engine 1 Absent CB 0 Intake OK 40 degrees C / 104 40 degrees C / 104
28 degrees C / 82 degrees F 25 degrees C / 77 degrees F 25 degrees C / 77 degrees F
Measurement
CB 0 Exhaust A OK 26 degrees C / 78 degrees F CB 0 Exhaust B OK 28 degrees C / 82 degrees F CB 0 ACBC OK 26 degrees C / 78 degrees F
CB 0 SF A OK 38 degrees C / 100 degrees F
CB 0 SF B CB 1 Intake CB 1 Exhaust A CB 1 Exhaust B CB 1 ACBC F
CB 1 SF A F
CB 1 SF B CB 2 Intake CB 2 Exhaust A CB 2 Exhaust B CB 2 ACBC CB 2 XF A CB 2 XF B FPC 2 Intake FPC 2 Exhaust A FPC 2 Exhaust B FPC 2 LU 0 TCAM TSen F
FPC 2 LU 0 TCAM Chip F
FPC 2 LU 0 TSen F
OK OK OK OK OK OK OK Absent Absent Absent Absent Absent Absent OK OK OK OK OK OK 31 degrees C / 87 degrees F 24 degrees C / 75 degrees F 24 degrees C / 75 degrees F 27 degrees C / 80 degrees F 24 degrees C / 75 degrees 36 degrees C / 96 degrees 32 degrees C / 89 degrees F 28 degrees C / 82 degrees F 33 degrees C / 91 degrees F 29 degrees C / 84 degrees F 41 degrees C / 105 degrees 44 degrees C / 111 degrees 41 degrees C / 105 degrees
PFE 0 :Links ok PFE 1 :Links ok FPC 1
PFE 0 :Links ok PFE 1 :Links ok Plane 3
Plane state: ACTIVE FPC 0
PFE 0 :Links ok PFE 1 :Links ok FPC 1
PFE 0 :Links ok PFE 1 :Links ok Plane 4
Plane state: ACTIVE FPC 0
PFE 0 :Links ok PFE 1 :Links ok FPC 1
PFE 0 :Links ok PFE 1 :Links ok Plane 5
Plane state: ACTIVE FPC 0
PFE 0 :Links ok PFE 1 :Links ok FPC 1
PFE 0 :Links ok PFE 1 :Links ok 【说明】
本命令可以检查交换矩阵是否工作正常(ACTIVE),交换矩阵与PFE之间互联高速链路HSL工作是否正常。
MPC卡与交换矩阵互联示意图:
9. 查看机箱风扇工作状态
user@MX960> show chassis fan
Item Status RPM Measurement
Top Tray Fan 1 OK 3790 Spinning at normal speed Top Tray Fan 2 OK 3769 Spinning at normal speed Top Tray Fan 3 OK 3790 Spinning at normal speed Top Tray Fan 4 OK 3790 Spinning at normal speed Top Tray Fan 5 OK 3790 Spinning at normal speed Top Tray Fan 6 OK 3769 Spinning at normal speed Top Tray Fan 7 OK 3769 Spinning at normal speed Top Tray Fan 8 OK 3790 Spinning at normal speed Top Tray Fan 9 OK 3790 Spinning at normal speed Top Tray Fan 10 OK 3790 Spinning at normal speed Top Tray Fan 11 OK 3769 Spinning at normal speed Top Tray Fan 12 OK 3790 Spinning at normal speed Bottom Tray Fan 1 OK 3790 Spinning at normal speed Bottom Tray Fan 2 OK 3790 Spinning at normal speed Bottom Tray Fan 3 OK 3790 Spinning at normal speed Bottom Tray Fan 4 OK 3769 Spinning at normal speed Bottom Tray Fan 5 OK 3790 Spinning at normal speed Bottom Tray Fan 6 OK 3790 Spinning at normal speed Bottom Tray Fan 7 OK 3769 Spinning at normal speed
Bottom Tray Fan 8 OK 3790 Spinning at normal speed Bottom Tray Fan 9 OK 3769 Spinning at normal speed Bottom Tray Fan 10 OK 3769 Spinning at normal speed Bottom Tray Fan 11 OK 3769 Spinning at normal speed Bottom Tray Fan 12 OK 3790 Spinning at normal speed
【说明】
本命令可以检查机箱上、下两组风扇托盘(每组12个风扇)的工作状态是否正常,风扇可以根据温度情况,自动调整转速,以促进通风降温。
10. 查看PIC卡状态
user@MX960> show chassis fpc pic-status
Slot 0 Online MPC Type 2 3D PIC 0 Online 10x 1GE(LAN) SFP PIC 1 Online 10x 1GE(LAN) SFP PIC 2 Online 2x 10GE XFP PIC 3 Online 2x 10GE XFP Slot 1 Online MPC Type 2 3D PIC 0 Online 10x 1GE(LAN) SFP PIC 1 Online 10x 1GE(LAN) SFP PIC 2 Online 2x 10GE XFP PIC 3 Online 2x 10GE XFP 【说明】
本命令可以检查物理接口卡PIC的在线状态。PIC 0和PIC 1同属一张20端口GE MIC卡,PIC 2和PIC 3同属一张4端口10GE MIC卡。
11. 查看机箱指示灯状态
user@MX960> show chassis craft-interface
Front Panel System LEDs: Routing Engine 0 1 --------------------------
OK * * Fail . . Master * .
Front Panel Alarm Indicators: ----------------------------- Red LED . Yellow LED . Major relay . Minor relay .
Front Panel FPC LEDs:
FPC 0 1 2 3 4 5 6 7 8 9 10 11 ------------------------------------------------------
Red . . . . . . . . . . . . Green * * . . . . . . . . . .
CB LEDs:
CB 0 1 2
---------------- Amber . . . Green * * *
PS LEDs:
PS 0 1 2 3 --------------------
Red . . . . Green * * * *
Fan Tray LEDs: FT 0 1 ------------ Red . . Green * * 【说明】
本命令可以远程查看机箱状态指示灯的工作情况,“*”标识该指示灯亮。
12. 查看PFE状态
user@MX960> show pfe statistics error
Slot 0
HSL2 Errors: ------------
***** No errors on this PFE *****
Slot 1
HSL2 Errors: ------------
***** No errors on this PFE ***** 【说明】
本命令可以检查包转发引擎PFE与交换矩阵之间通信错误计数器状态。HSL是PFE与Fabric之间内部高速互联链路。
13. 查看PFE报文转发状态
user@MX960> show pfe statistics traffic fpc 0
Packet Forwarding Engine traffic statistics:
Input packets: 229817436878 48781 pps Output packets: 215271351596 54244 pps Packet Forwarding Engine local traffic statistics: Local packets input : 342628638 Local packets output : 348251187 Software input control plane drops : 0 Software input high drops : 0 Software input medium drops : 0 Software input low drops : 0 Software output drops : 0 Hardware input drops : 0 Packet Forwarding Engine local protocol statistics:
HDLC keepalives : 0 ATM OAM : 0 Frame Relay LMI : 0 PPP LCP/NCP : 0 OSPF hello : 7467689 OSPF3 hello : 850082 RSVP hello : 0 LDP hello : 0 BFD : 0 IS-IS IIH : 0 LACP : 0 ARP : 291726 ETHER OAM : 0 Unknown : 12162 Packet Forwarding Engine hardware discard statistics:
Timeout : 0 Truncated key : 0 Bits to test : 0 Data error : 0 Stack underflow : 0 Stack overflow : 0 Normal discard : 90969866 Extended discard : 0 Invalid interface : 0 Info cell drops : 0 Fabric drops : 0
Packet Forwarding Engine Input IPv4 Header Checksum Error and Output MTU Error statistics: Input Checksum : 0
Output MTU : 14
【说明】
本命令可以检查包转发引擎PFE对报文的转发状态。输出信息的详细解释详见:
http://www.juniper.net/techpubs/en_US/junos10.4/topics/reference/command-summary/show-pfe-statistics-traffic.html?searchid=1353662655735
14. 查看接口的详细信息
user@MX960> show interfaces extensive
Physical interface: ge-0/0/0, Enabled, Physical link is Up Interface index: 153, SNMP ifIndex: 596, Generation: 243 Description: SNNU-CA-Jiao11Lou
Link-level type: Ethernet-Bridge, MTU: 1514, Speed: 1000mbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,
Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x20004000 Link flags : None
CoS queues : 8 supported, 8 maximum usable queues Hold-times : Up 0 ms, Down 0 ms
Current address: a8:d0:e5:f5:a8:00, Hardware address: a8:d0:e5:f5:a8:00 Last flapped : 2012-11-03 10:37:34 CST (2w6d 05:50 ago) Statistics last cleared: Never Traffic statistics:
Input bytes : 3475908979241 6745888 bps Output bytes : 3401541976098 1378400 bps Input packets: 4412354900 783 pps Output packets: 4166125749 515 pps IPv6 transit statistics:
Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Dropped traffic statistics due to STP State: Input bytes : 2784 Output bytes : 40319 Input packets: 40 Output packets: 43 Input errors:
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors:
Carrier transitions: 5, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use
Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 4157224115 4157224115 0 1 expedited-fo 0 0 0 2 assured-forw 0 0 0 3 network-cont 10124427 10124427 0 Queue number: Mapped forwarding classes 0 best-effort
1 expedited-forwarding 2 assured-forwarding 3 network-control Active alarms : None Active defects : None
MAC statistics: Receive Transmit Total octets 3493558984138 3477772788721 Total packets 4412355387 4167348690 Unicast packets 4410292132 4160756726 Broadcast packets 8009 190 Multicast packets 2055246 6591774 CRC/Align errors 0 0 FIFO errors 0 0 MAC control frames 0 0 MAC pause frames 0 0 Oversized frames 0 Jabber frames 0 Fragment frames 0 VLAN tagged frames 0 Code violations 0 Filter statistics:
Input packet count 4412354589 Input packet rejects 0 Input DA rejects 0 Input SA rejects 0
Output packet count 4167348267 Output packet pad count 0 Output packet error count 0 CAM destination filters: 0, CAM source filters: 0 Autonegotiation information: Negotiation status: Complete Link partner:
Link mode: Full-duplex, Flow control: Symmetric, Remote fault: OK Local resolution:
Flow control: Symmetric, Remote fault: Link OK Packet Forwarding Engine configuration: Destination slot: 0 CoS information:
Direction : Output
CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec
0 best-effort 95 950000000 95 0 low none
3 network-control 5 50000000 5 0 low none
Interface transmit statistics: Disabled
【说明】
本命令输出的信息很多,平时故障排查时,主要观察接口下是否有error报文,接口状态是否up,有没有载波丢失,双工、速率、MTU等信息是否正常。
15. 查看接口的概要信息
user@MX960> show interfaces terse
Interface Admin Link Proto Local Remote ge-0/0/0 up up
ge-0/0/0.0 up up bridge ge-0/0/1 up up
ge-0/0/1.0 up up bridge ge-0/0/2 up down
ge-0/0/2.0 up down multiservice ---(more 19%)---[abort]
【说明】
本命令可以检查接口的状态,以及该接口工作在二层(bridge)还是三层(inet/inet6)。
16. 实时监控接口报文转发状态
user@MX960> monitor interface ge-0/0/0
re0-SNNU-CA-CORE-2 Seconds: 18 Time: 18:22:29 Delay: 5/0/5 Interface: ge-0/0/0, Enabled, Link is Up Encapsulation: Ethernet, Speed: 1000mbps
Traffic statistics: Current delta Input bytes: 145213786382 (2605032 bps) [8202565] Output bytes: 57042305177 (167296 bps) [2271679] Input packets: 150728829 (288 pps) [7993] Output packets: 112576312 (209 pps) [6570]
Error statistics:
Input errors: 0 [0] Input drops: 0 [0] Input framing errors: 0 [0] Policed discards: 0 [0] L3 incompletes: 0 [0] L2 channel errors: 0 [0] L2 mismatch timeouts: 0 [0] Carrier transitions: 5 [0] Output errors: 0 Output drops: 0 Aged packets: 0 Active alarms : None Active defects: None
Input MAC/Filter statistics:
Unicast packets 186056424 Broadcast packets 820253 Multicast packets 774591 Oversized frames 0 Packet reject count 409324 DA rejects 0 SA rejects 0 Output MAC/Filter Statistics:
Unicast packets 150677786 Broadcast packets 2457091 Multicast packets 1557774 Packet pad count 0 Packet error count 0 【说明】
本命令可以实时查看接口的报文转发流量。
17. 查看设备的存储系统状态
user@MX960> show system storage
Filesystem Size Used /dev/ad0s1a 3.3G 264M devfs 1.0K 1.0K /dev/md0 40M /packages/mnt/jbase
/dev/md1 20M /packages/mnt/jkernel64-11.4X27.28
/dev/md2 61M /packages/mnt/jpfe-X960-11.4X27.28
/dev/md3 5.0M [0] [0] [0] [7750] [27] [41] [0] [51] [0] [0] [6170] [82] [50] [0] [0] Avail Capacity Mounted on 2.8G 8% / 0B 100% /dev 40M 0B 20M 0B 61M 0B 5.0M 0B
100% 100% 100% 100%
/packages/mnt/jdocs-11.4X27.28
/dev/md4 78M 78M 0B 100% /packages/mnt/jroute-11.4X27.28
/dev/md5 45M 45M 0B 100% /packages/mnt/jpfe-common-11.4X27.28
/dev/md6 387M 387M 0B 100% /packages/mnt/jruntime-11.4X27.28
/dev/md7 7.9G 14K 7.2G 0% /tmp /dev/md8 7.9G 20M 7.2G 0% /mfs /dev/ad0s1e 377M 70K 347M 0% /config procfs 4.0K 4.0K 0B 100% /proc /dev/ad1s1f 18G 1.2G 15G 7% /var
【说明】
本命令可以检查设备的内置flash和硬盘的使用情况,其中ad0是flash卡,ad1是硬盘。
18. 查看电源模块状态
user@MX960> show chassis power
PEM 0:
State: Online
AC input: OK (2 feed expected, 2 feed connected) Capacity: 4100 W (maximum 4100 W)
DC output: 114 W (zone 0, 2 A at 57 V, 2% of capacity)
PEM 1:
State: Online
AC input: OK (2 feed expected, 2 feed connected) Capacity: 4100 W (maximum 4100 W)
DC output: 342 W (zone 1, 6 A at 57 V, 8% of capacity)
PEM 2:
State: Online
AC input: OK (2 feed expected, 2 feed connected) Capacity: 4100 W (maximum 4100 W)
DC output: 171 W (zone 0, 3 A at 57 V, 4% of capacity)
PEM 3:
State: Online
AC input: OK (2 feed expected, 2 feed connected) Capacity: 4100 W (maximum 4100 W)
DC output: 285 W (zone 1, 5 A at 57 V, 6% of capacity)
System: Zone 0:
default:default ---(more)--- 【说明】
本命令可以分类查看ipoe用户的接入信息。
28. 查看pppoe用户信息
user@MX960> show subscribers client-type pppoe
Interface IP Address/VLAN ID User Name LS:RI
pp0.1073749744 10.155.2.99 bigang default:default
pp0.1073749746 10.155.2.101 ttyqqq default:default
pp0.1073749748 10.155.2.100 wangxiao default:default
pp0.1073749749 10.155.2.104 hanxiaomang default:default
pp0.1073749750 10.155.2.103 nitianzheng default:default ---(more)---
【说明】
本命令可以分类查看pppoe用户的接入信息。
29. 查找用户的demux0/pp0接口
user@MX960> show subscribers |match 10.143.2.6
demux0.1073784717 10.143.2.6 Juniper default:default
user@MX960>show subscribers |match 10.155.21.40
pp0.1073768969 10.155.21.40 dongn default:default 【说明】
上述命令可以在已知用户ip地址的情况下,查找用户接入的demux0/pp0接口。
30. 查看某一个IPoE用户信息
{master}
user@MX960> show subscribers interface demux0.1073750013 extensive
Type: DHCP User Name: Juniper IP Address: 10.143.0.64 Logical System: default
//类型为DHCP,表明是ipoe用户
Routing Instance: default
Interface: demux0.1073750013 Interface type: Dynamic
Dynamic Profile Name: ipoe-jiashuqu //用于动态生成demux0接口的Dynamic Profile MAC Address: e0:05:c5:a2:ad:b7 //用户终端的MAC地址 State: Active
DHCP Relay IP Address: 10.143.0.1 Radius Accounting ID: 30258 //用户的主计费session id Session ID: 30258 //用户接入的主session id Stacked VLAN Id: 1113 //用户的S-VLAN id VLAN Id: 216 //用户的C-VLAN id Agent Circuit ID: xe-0/2/1:1113-216 //用户接入的链路ID Login Time: 2012-10-20 00:01:07 CST //用户接入时间 Service Sessions: 4 //用于计费的总的业务数 DHCP Options: len 75
35 01 01 39 02 04 00 37 09 01 03 2b 2c 2e 2f 06 21 79 0c 0e 54 4c 2d 57 52 35 34 31 47 2f 35 34 32 47 3c 09 4d 53 46 54 20 39 38 00 5f 3d 07 01 e0 05 c5 a2 ad b7 52 13 01 11 78 65 2d 30 2f 32 2f 31 3a 31 31 31 33 2d 32 31 36
IPv4 Input Filter Name: O-2M-demux0.1073750013-in //用户上行2M限速 IPv4 Output Filter Name: I-4M-demux0.1073750013-out //用户下行4M限速
Service Session ID: 30259
Service Session Name: Unicom //访问联通出口的计费业务名,计费会话id为30259 State: Active
IPv4 Input Filter Name: unicom-in-demux0.1073750013-in IPv4 Output Filter Name: unicom-out-demux0.1073750013-out
Service Session ID: 30260
Service Session Name: telecom //访问电信出口的计费业务名,计费会话id为30260 State: Active
IPv4 Input Filter Name: telecom-in-demux0.1073750013-in IPv4 Output Filter Name: telecom-in-demux0.1073750013-out
Service Session ID: 30261
Service Session Name: campus //访问校园网的计费业务名,计费会话id为30261 State: Active
IPv4 Input Filter Name: campus-in-demux0.1073750013-in
IPv4 Output Filter Name: campus-out-demux0.1073750013-out
Service Session ID: 30262
Service Session Name: cernet //访问教育网出口的计费业务名,计费会话id为30262 State: Active
IPv4 Input Filter Name: cernet -in-demux0.1073750013-in
IPv4 Output Filter Name: cernet -out-demux0.1073750013-out 【说明】
本命令可以查看ipoe用户的详细信息。
31. 查看某一个pppoe用户的信息
user@MX960> show subscribers interface pp0.1073749744 extensive
Type: PPPoE
User Name: bigang IP Address: 10.155.2.99 IP Netmask: 255.255.0.0
Primary DNS Address: 202.117.144.2 Logical System: default Routing Instance: default Interface: pp0.1073749744 Interface type: Dynamic
Dynamic Profile Name: pppoe-autoconfig //用于动态生成pp0接口的Dynamic Profile MAC Address: 00:23:cd:56:02:5f //用户终端的MAC地址 State: Active
Radius Accounting ID: 29395 //用户的主计费session id Session ID: 29395 //用户的session id Stacked VLAN Id: 1110 //用户的S-VLAN id VLAN Id: 313 //用户的C-VLAN id Login Time: 2012-10-19 23:57:44 CST //用户拨入时间 Service Sessions: 4 //用于计费的总的业务数 IP Address Pool: pool-1 //用户地址池(直接由MX960分配) IPv4 Input Filter Name: up2m-pp0.1073749744-in //用户上行2M限速 IPv4 Output Filter Name: down4m-pp0.1073749744-out //用户下行4M限速
Service Session ID: 29501
Service Session Name: unicom-pppoe //访问联通出口的计费业务名,计费会话id为29501 State: Active
IPv4 Input Filter Name: unicom-in-pp0.1073749744-in IPv4 Output Filter Name: unicom-out-pp0.1073749744-out
Service Session ID: 29502
Service Session Name: telecom-pppoe //访问电信出口的计费业务名,计费会话id为29502 State: Active
IPv4 Input Filter Name: telecom-in-pp0.1073749744-in IPv4 Output Filter Name: telecom-in-pp0.1073749744-out
Service Session ID: 29503
Service Session Name: campus-pppoe //校园网访问计费业务名,计费会话id为29503 State: Active
IPv4 Input Filter Name: campus-in-pp0.1073749744-in
IPv4 Output Filter Name: campus-out-pp0.1073749744-out
Service Session ID: 29504
Service Session Name: cernet-pppoe //访问教育网出口的计费业务名,计费会话id为29504 State: Active
IPv4 Input Filter Name: cernet-in-pp0.1073749744-in
IPv4 Output Filter Name: cernet-out-pp0.1073749744-out ---(more)---
【说明】
本命令可以查看pppoe用户的详细信息。
32. 清除动态生成的vlan接口
user@MX960> clear auto-configuration interfaces xe-0/2/1
【说明】
本命令可以手动清除动态生成的VLAN接口,慎用!
33. 强制pppoe用户下线
user@MX960> clear pppoe session
【说明】
本命令可以手动清除所有pppoe用户的会话,强制用户下线重拨,慎用!
34. 强制ipoe用户下线
user@MX960> clear dhcp relay binding all
【说明】
本命令可以手动清除所有ipoe用户的dhcp relay绑定关系表,同时强制清除了用户的demux0接口。后果是用户在dhcp地址租期超期前或续租前将不能网络访问,需要用户手动ipconfig /release和renew,重新获取地址才能恢复网络接入。慎用!
35. 查看所有路由
user@MX960> show route
inet.0: 911 destinations, 911 routes (911 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[OSPF/150] 3d 00:01:01, metric 52, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.0.0/17 *[OSPF/150] 3d 02:18:07, metric 52, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.89.0/24 *[OSPF/150] 3d 02:18:07, metric 13, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.90.0/24 *[OSPF/150] 3d 02:18:07, metric 13, tag 0 > to 10.196.0.25 via xe-0/2/0.0 to 10.196.0.29 via xe-1/2/0.0
10.0.91.0/24 *[OSPF/150] 3d 02:18:07, metric 13, tag 0 > to 10.196.0.25 via xe-0/2/0.0 to 10.196.0.29 via xe-1/2/0.0 10.0.92.0/24 *[OSPF/10] 3d 02:18:07, metric 13 > to 10.196.0.25 via xe-0/2/0.0 to 10.196.0.29 via xe-1/2/0.0 ---(more)---
【说明】
本命令可以查看MX960的所有路由表信息。
36. 查看ospf路由
user@MX960> show route protocol ospf
inet.0: 934 destinations, 935 routes (934 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[OSPF/150] 2d 12:34:45, metric 52, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.0.0/17 *[OSPF/150] 2d 12:34:45, metric 52, tag 0 > to 10.196.0.25 via xe-0/2/0.0 to 10.196.0.29 via xe-1/2/0.0
10.0.89.0/24 *[OSPF/150] 2d 12:34:45, metric 13, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.90.0/24 *[OSPF/150] 2d 12:34:45, metric 13, tag 0 > to 10.196.0.25 via xe-0/2/0.0 to 10.196.0.29 via xe-1/2/0.0 ---(more)--- 【说明】
本命令可以查看OSPF路由表的信息。
10.0.89.0/24 *[OSPF/150] 3d 02:18:07, metric 13, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0 10.0.89.0/24:目标网段
[OSPF/150]:表明该路由是从ospf学习到的,而且是外部路由([OSPF/10]表示ospf内部路由)
metric 13:是去往该目标网段总的路径开销cost值
> to 10.196.0.29 via xe-1/2/0.0:表示去往该目标网段,有两条等值路径,但优选本路径。
37. 指定路由表做路由查询
user@MX960> show route table inet.0 202.117.144.2
inet.0: 935 destinations, 936 routes (935 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
202.117.144.0/24 *[OSPF/10] 1w0d 17:37:20, metric 11 > to 10.196.0.25 via xe-0/2/0.0
38. 查看ospf 邻居
user@MX960> show ospf neighbor
Address Interface State ID Pri Dead 10.196.0.25 xe-0/2/0.0 Full 10.196.1.3 128 33 10.196.0.29 xe-1/2/0.0 Full 10.196.1.2 128 38 【说明】
本命令可以查看ospf邻居状态。
39. 查看ospfv3邻居
user@MX960> show ospf3 neighbor
ID Interface State Pri Dead 10.196.1.3 xe-0/2/0.0 Full 128 30 Neighbor-address fe80::aad0:e5ff:fef5:a852
10.196.1.2 xe-1/2/0.0 Full 128 39 Neighbor-address fe80::aad0:e5ff:fef7:b0f7 【说明】
本命令可以查看ospf邻居状态。
40. Windows系统主机Pathping命令
提供有关在源和目标之间的中间跃点处网络滞后和网络丢失的信息。Pathping 在一段时间内将多个回响请求消息发送到源和目标之间的各个路由器,然后根据各个路由器返回的数据包计算结果。因为 pathping 显示在任何特定路由器或链接处的数据包的丢失程度,所以用户可据此确定存在网络问题的路由器或子网。
Pathping 通过识别路径上的路由器来执行与 tracert 命令相同的功能。然后,该命令在一段
指定的时间内定期将 ping 命令发送到所有的路由器,并根据每个路由器的返回数值生成统计结果。
简单来说,
ping 查看你到你想去的地方通不通;
tracert 查看你到你想去的地方该怎么走; pathping 查看你要走的这条路的路况怎么样。
pathping [-n] [-h MaximumHops] [-g HostList] [-p Period] [-q NumQueries [-w Timeout] [-i IPAddress] [-4 IPv4] [-6 IPv6][TargetName]
参数 -n
阻止 pathping 试图将中间路由器的 IP 地址解析为各自的名称。这有可能加快 pathping 的结果显示。
-h Maximum_Hops
指定搜索目标(目的)的路径中存在的跃点的最大数。默认值为 30 个跃点。 -g HostList
指定回响请求消息利用 HostList 中指定的中间目标集在 IP 数据头中使用“稀疏来源路由”选项。使用稀疏来源路由时,相邻的中间目标可以由一个或多个路由器分隔开。HostList 中的地址或名称的最大数为 9。HostList 是一系列由空格分隔的 IP 地址(用带点的十进制符号表示)。 -p Period
指定两个连续的 ping 之间的时间间隔(以毫秒为单位)。默认值为 250 毫秒(1/4 秒)。 -q Num_Queries
指定发送到路径中每个路由器的回响请求消息数。默认值为 100 个查询。 -w Timeout
指定等待每个应答的时间(以毫秒为单位)。默认值为 3000 毫秒(3 秒)。 -i IPAddress
指定源地址。 -4 IPv4
强制使用IPv4。 -6 IPv6
强制使用IPv6。 TargetName
指定目的端,它既可以是 IP 地址,也可以是主机名。 /?
在命令提示符下显示帮助。
正在阅读:
MX960运维命令汇总手册01-04
中国科学院文献情报中心 - 中国科学引文数据库(CSCD)核心库来源期刊表 - 图文01-13
延长石油集团企业文化知识试题(带答案)10-20
甘政办发(2006)87号08-17
《破冰行动》观后感3篇04-02
计算机二级c语言上机题库 绝对好用05-09
北京大学GIS历年考题讲解10-16
管道吊架计算书 - 图文04-03
请假条模板02-17
精品青岛版一年级上册数学期末试卷11-07
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 汇总
- 命令
- 手册
- MX960
- 一轮明月千古情-最新文档
- 房屋登记官试题
- 从不同视角分析我国出口贸易现状
- US-100超声波测距模块解析 - 图文
- 甘肃省2018届高三第一次高考诊断考试英语试题 含答案
- 刍议农村小学如何实现教学精细化管理
- 高考物理总复习 精准提分练:实验题专练(六)-优质资料
- 图书馆学概论复习
- 高校教育-教育综合课堂笔记
- C6140普通车床
- 2018-2024年中国多效唑行业发展趋势及投资前景分析报告(目录) - 图文
- 曹闸小学教师进万家活动方案
- 计算机操作系统试题ji答案
- 2013年PEP新版三年级英语下册第三单元单元备课
- 部编版《道德与法治》七年级下册期末考试试题(含答案)
- 中国调频耳机市场发展研究及投资前景报告(目录) - 图文
- 四校联考试卷及参考答案
- 调研报告:依法治国背景下检察机关化解涉法涉诉信访案件调查
- 2018-2019-2018-2019学年小学美术教学计划-优秀word范文(2页)
- 大学班级出游运动策划书