最近买了几个便宜的光口模块,想要测试下速度是不是真正的千兆。因为交换机上只有一个千兆口,两台交换机用千兆口连接后没有剩下的千兆口来测试速度。找了条命令
ping 192.168.1.40 repeat 60000 time 0 size 6000
结果如下:
shiyan#sh int g0/1//千兆光口 GigabitEthernet0/1 is up, line protocol is up (connected) Hardware is Gigabit Ethernet, address is 18ef.6364.e809 (bia 18ef.6364.e809) MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 2/255, rxload 2/255 Encapsulation ARPA, loopback not set Keepalive not set Full-duplex, 1000Mb/s, link type is auto, media type is 1000BaseBX10-U SFP input flow-control is off, output flow-control is unsupported ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:05, output 00:00:00, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/0 (size/max) 5 minute input rate 11754000 bits/sec, 1210 packets/sec 5 minute output rate 11753000 bits/sec, 1211 packets/sec 954308 packets input, 1183604020 bytes, 0 no buffer Received 192 broadcasts (186 multicasts) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog, 186 multicast, 0 pause input 0 input packets with dribble condition detected 955268 packets output, 1183524949 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier, 0 PAUSE output 0 output buffer failures, 0 output buffers swapped out shiyan#sh interfaces fa0/1百兆电口 FastEthernet0/1 is up, line protocol is up (connected) Hardware is Fast Ethernet, address is 18ef.6364.e801 (bia 18ef.6364.e801) MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 26/255, rxload 26/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s, media type is 10/100BaseTX input flow-control is off, output flow-control is unsupported ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:00, output 00:00:00, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/0 (size/max) 5 minute input rate 10414000 bits/sec, 1075 packets/sec 5 minute output rate 10413000 bits/sec, 1075 packets/sec 627786 packets input, 774598658 bytes, 0 no buffer Received 17 broadcasts (15 multicasts) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog, 15 multicast, 0 pause input 0 input packets with dribble condition detected 627482 packets output, 773860212 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier, 0 PAUSE output 0 output buffer failures, 0 output buffers swapped out //千兆电口 GigabitEthernet0/1 is up, line protocol is up (connected) Hardware is Gigabit Ethernet, address is 18ef.6364.e809 (bia 18ef.6364.e809) MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 2/255, rxload 2/255 Encapsulation ARPA, loopback not set Keepalive not set Full-duplex, 1000Mb/s, link type is auto, media type is 10/100/1000BaseTX input flow-control is off, output flow-control is unsupported ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:20, output 00:00:00, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/0 (size/max) 5 minute input rate 11708000 bits/sec, 1204 packets/sec 5 minute output rate 11683000 bits/sec, 1201 packets/sec 2198198 packets input, 2718433681 bytes, 0 no buffer Received 298 broadcasts (290 multicasts) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog, 290 multicast, 0 pause input 0 input packets with dribble condition detected 2197621 packets output, 2715736455 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier, 0 PAUSE output 0 output buffer failures, 0 output buffers swapped out
发现minute input rate的值都差不多。看来这个方法不行了。
光口模块调试最重要的就是看功率
show interfaces gigabitEthernet 0/1 transceiver detail
可以显示出电压、温度、功率等信息。