£¨1£© display version
display versionÃüÁîÊÇ×î»ù±¾µÄÃüÁîÖ®Ò»£¬ËüÓÃÓÚÏÔʾ·ÓÉÆ÷Ó²¼þºÍÈí¼þµÄ»ù±¾ÐÅÏ¢¡£ÒòΪ²»Í¬µÄ°æ±¾Óв»Í¬µÄÌØÕ÷£¬ÊµÏֵŦÄÜÒ²²»ÍêÈ«Ïàͬ£¬ËùÒÔ£¬²é¿´Ó²¼þºÍÈí¼þµÄÐÅÏ¢Êǽâ¾öÎÊÌâµÄÖØÒªÒ»²½¡£ÔÚ½øÐйÊÕÏ´¦Àíʱ£¬ÎÒÃÇͨ³£´ÓÕâ¸öÃüÁʼÊÕ¼¯Êý¾Ý¡£¸ÃÃüÁ°ïÖúÓû§ÊÕ¼¯ÏÂÁÐÐÅÏ¢£º
l VRPÈí¼þ°æ±¾
l ÊÇÄÄһϵÁеÄ·ÓÉÆ÷
l ´¦ÀíÆ÷µÄÐÅÏ¢
l RAMµÄÈÝÁ¿
l ÅäÖüĴæÆ÷µÄÉèÖÃ
l ¹Ì¼þµÄ°æ±¾
l Òýµ¼³ÌÐòµÄ°æ±¾
Êä³öʾÀýÈçÏ£¬ÇëÕÒµ½ÉÏÊöÌá¼°µÄÏàÓ¦Ïî¡£
[Router]display version
Copyright Notice:
All rights reserved (Aug 12 2003).
Without the owner's prior written consent, no decompiling
or reverse-engineering shall be allowed.
Huawei Versatile Routing Platform Software
VRP (R) software, Version 1.74 Release 0101
Copyright (c) 1997-2003 HUAWEI TECH CO., LTD.
Quidway R1760 uptime is 0 days 5 hours 33 minutes 19 seconds
System returned to ROM by power-on.
Quidway R1760 with 1 MPC 8241 Processor
Router serial number is 00E0FC0F62563402
64M bytes SDRAM
8192K bytes Flash Memory
0K bytes NVRAM
Config Register points to FLASH
Hardware Version is MTR 1.0
CPLD Version is CPLD 1.0
Bootrom Version is 4.69
[LAN ] 1FE Hardware Version is 2.0, Driver Version is 2.0
[AUX ] AUX Hardware Version is 1.0, Driver Version is 1.0,
Cpld Version is 1.0
[WAN ] WAN Hardware Version is 1.0, Driver Version is 1.0,
Cpld Version is 1.0
[SLOT 0] E1VI Hardware Version is 1.0, Driver Version is 1.8
£¨2£© display current-configuration
display current-configurationÃüÁîÓÃÓÚÏÔʾĿǰ·ÓÉÆ÷ÉÏÒѾ×öµÄÅäÖã¬Õâ¿ÉÒÔ˵ÊÇÅųý¹ÊÕϵÄÖØÒªÆðµã¡£
ÀýÈç
[Router]display current-configuration
Now create configuration...
Current configuration
!
version 1.74
local-user a service-type administrator password simple a
firewall enable
undo login-method authentication-mode async
undo login-method authentication-mode con
undo idle-timeout
!
controller e1 0
!
interface Aux0
undo modem
async mode flow
flow-control none
link-protocol ppp
!
interface Ethernet0
!
interface Serial0
link-protocol ppp
!
voice-setup
!
quit
!
quit
snmp-agent
snmp-agent local-engineid 800007DB0300E0FC0F6256
snmp-agent community read a
snmp-agent community write b
snmp-agent sys-info version all
!
return
£¨3£© display interfaceÃüÁî
display interfaceÃüÁî¿ÉÒÔÏÔʾËùÓнӿڵĵ±Ç°×´Ì¬£¬Èç¹ûÖ»ÊÇÏë²é¿´Ìض¨½Ó¿ÚµÄ״̬£¬ÇëÔÚ¸ÃÃüÁîºóÊäÈë½Ó¿ÚÀàÐͺͽӿںţ¬ÀýÈ磺display interface serial 0ÃüÁ²é¿´´®¿Ú0µÄÔËÐÐ״̬ºÍÏà¹ØÐÅÏ¢¡£
[Router]display interface serial 0
Serial0 current state:up, line protocol current state:up
The Maximum Transmit Unit is 1500
physical layer is synchronous, baudrate is 64000 bps
interface is DCE, clock is DCECLK, cable type is V35
Link-protocol is PPP
LCP opened, IPCP initial, IPXCP initial, CCP initial, BRIDGECP initial
Input queue : (size/max/drops) 0/50/0
FIFO queueing: FIFO
(Outbound queue:Size/Length/Discards)
FIFO: 0/75/0
Last 5 minutes input rate 0.00 bytes/sec, 0.00 packets/sec
Last 5 minutes output rate 0.00 bytes/sec, 0.00 packets/sec
Input: 7 packets, 102 bytes
0 broadcasts, 0 multicasts
0 errors, 0 runts, 0 giants
0 CRC,0 frame errors, 0 overrunners
0 aborted sequences 0 no buffers
0 packets with dribble condition detected
Output:6 packets, 84 bytes
0 broadcasts, 0 multicasts
0 errors, 0 underruns, 0 collisions
0 packets had been deferred
DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP
ÔÚÉÏÃæµÄÏÔʾÖÐ,Ö÷Òª°üÀ¨ÁËÈý·½ÃæÄÚÈÝ£¬ÎïÀí½Ó¿ÚµÄÐÅÏ¢£º°üÀ¨½Ó¿ÚËÙÂÊ¡¢ÏßÀ¡¢MTU¡¢¼àÌýµÄÐźÅ״̬£»Á´Â·²ãÐÒ飨LCP£©ºÍÈý²ãÐÒ飨IPCP£©µÄ״̬£»½Ó¿Ú½ÓÊÕ·¢ËÍÊý¾Ý°üµÄͳ¼ÆÖµ£¨Input,Output£©.ÕâЩÐÅÏ¢¶ÔÅŲéÁªÍ¨ÐÔµÄÎÊÌâ¶¼ÊDZØÐèµÄ¡£
1.2.2 pingÃüÁî
£¨1£©ÔÀí
¡°ping¡±Õâ¸ö´ÊÔ´ÓÚÉùÄɶ¨Î»*×÷£¬Ö¸À´×ÔÉùÄÉÉ豸µÄÂö³åÐźš£pingÃüÁîµÄ˼ÏëÓë·¢³öÒ»¸ö¶Ì´ÙµÄÀ״ﲨ£¬Í¨¹ýÊÕ¼¯»Ø²¨À´ÅжÏÄ¿±êºÜÏàËÆ£»¼´Ô´Õ¾µãÏòÄ¿µÄÕ¾µã·¢³öÒ»¸öICMP Echo Request±¨ÎÄ£¬Ä¿µÄÕ¾µãÊÕµ½¸Ã±¨Îĺó»ØÒ»¸öICMP Echo Reply±¨ÎÄ£¬ÕâÑù¾ÍÑéÖ¤ÁËÁ½¸ö½Úµã¼äIP²ãµÄ¿É´ïÐÔ££±íʾÁËÍøÂç²ãÊÇÁ¬Í¨µÄ¡£
£¨2£©¹¦ÄÜ
ÃüÁîpingÓÃÓÚ¼ì²éIPÍøÂçÁ¬½Ó¼°Ö÷»úÊÇ·ñ¿É´ï¡£
£¨3£©VRPƽ̨µÄpingÃüÁî
ÔÚQuidwayϵÁзÓÉÆ÷ÉÏ£¬ pingÃüÁîµÄ¸ñʽÈçÏ£º
[Router]ping -?
usage: ping [-R dnqrv] [-a IP-address] [-c count] [-o IP-TOS] [-p pattern]
[-s packetsize] [-t timeout] [-i TTL] host
options:
-a IP address Source IP address
-c count Number of echo requests to send
-d Set the SO_DEBUG option on the socket being used
-f Set the DF flag in IP header
-n Numeric output only.No attempt will be made to
lookup symbolic names for host addresses
-o IP-TOS Set the TOS in IP header
-p pattern You may specify up to 16 "pad" bytes to fill
out the packet you send. For example, -p ff will
cause the sent packet to be filled with all ones
-q Quiet output. Nothing is displayed except the
summary lines at startup time and when finished
-R Record route. Includes the RECORD_ROUTE option in
the ECHO_REQUEST packet and displays the route
buffer on returned packets
-r Bypass the normal routing tables and send directly
to a host on an attached network
-s packetsize Specifies the number of data bytes to be sent
-t timeout Timeout in milliseconds to wait for each reply
The default is 56
-v Verbose output. ICMP packets other than ECHO_RESPONSE
that are received are listed
-i TTL Time to live
ÀýÈ磬ÏòÖ÷»ú10.15.50.1·¢³ö2¸ö8100×Ö½ÚµÄping±¨ÎÄ
Quidway# ping -c 2 -s 8100 10.15.50.1
PING 10.15.50.1: 8100 data bytes, press CTRL_C to break
Reply from 10.15.50.1: bytes=8100 Sequence=0 ttl=123 time = 538 ms
Reply from 10.15.50.1: bytes=8100 Sequence=1 ttl=123 time = 730 ms
--- 10.15.50.1 ping statistics ---
2 packets transmitted
2 packets received
0.00% packet loss
round-trip min/avg/max = 538/634/730 ms
£¨4£©Windowsƽ̨µÄpingÃüÁî
ÔÚPC»úÉÏ»òWindwos NTΪƽ̨µÄ·þÎñÆ÷ÉÏ£¬pingÃüÁîµÄ¸ñʽÈçÏ£º
ping [ -n number ] [ -t ] [ -l number ] ip-address
-n ping±¨ÎĵĸöÊý£¬È±Ê¡ÖµÎª5£»
-t ³ÖÐøµØping Ö±µ½ÈËΪµØÖжϣ¬Ctr+BreackÔÝʱÖÐÖ¹pingÃüÁî²¢²é¿´µ±Ç°µÄͳ¼Æ½á¹û£¬¶øCtr+CÔòÖжÏÃüÁîµÄÖ´ÐС£
-l ÉèÖÃping±¨ÎÄËùЯ´øµÄÊý¾Ý²¿·ÖµÄ×Ö½ÚÊý£¬ÉèÖ÷¶Î§´Ó0ÖÁ65500¡£
Àý£ºÏòÖ÷»ú10.15.50.1 ·¢³ö2¸öÊý¾Ý²¿·Ö´óСΪ 3000 BytesµÄping±¨ÎÄ
C:\> ping -l 3000 -n 2 10.15.50.1
Pinging 10.15.50.1 with 3000 bytes of data
Reply from 10.15.50.1: bytes=3000 time=321ms TTL=123
Reply from 10.15.50.1: bytes=3000 time=297ms TTL=123
Ping statistics for 10.15.50.1:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 297ms, Maximum = 321ms, Average = 309ms