Ubuntu displays the NIC packet processing speed and ubuntu Packet

Source: Internet
Author: User

Ubuntu displays the NIC packet processing speed and ubuntu Packet
View Nic packet processing speed in ubuntu

sar -l 1 10

First, install sar. The "-l" parameter in the apt-get install atsarsar command is net-interf (general). The parameter "1" is counted every second, the "10" parameter indicates the total number of times.

Q: How can I view the network speed of two NICs in a PC under ubuntu?

Install an indicator-multiload

Sudo add-apt-repository ppa: indicator-multiload/stable-daily
Sudo apt-get update
Sudo apt-get install indicator-multiload
 
Ubuntu Nic configuration problems (urgent)

Root permission is required to set the NIC

Sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
It is shown here.

# Results displayed when my network adapter is not inserted into the network cable:

Ifconfig
Eth0 Link encap: Ethernet hardware address 00: 11AA: fE: 22: Fb
Up broadcast multicast mtu: 1500 hops: 1
Received data packet: 0 error: 0 discard: 0 overload: 0 frames: 0
Packet sending: 0 error: 0 discard: 0 overload: 0 carrier: 0
Collision: 0 sending queue length: 1000
Received byte: 0 (0.0 B) sent byte: 0 (0.0 B)

# After the ip address is added, the network cable is not inserted.
Eth0 Link encap: Ethernet hardware address 00: 11AA: fE: 22: Fb

Inet address: 192.168.0.1 broadcast: 192.168.0.255 mask: 255.255.255.0
Up broadcast multicast mtu: 1500 hops: 1
Received data packet: 0 error: 0 discard: 0 overload: 0 frames: 0
Packet sending: 0 error: 0 discard: 0 overload: 0 carrier: 0
Collision: 0 sending queue length: 1000
Received byte: 0 (0.0 B) sent byte: 0 (0.0 B)

Supplement:
The ip address is not displayed because your local Nic does not obtain the ip address.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.