11) Network card general setup test

 

After the NIC is installed on the server, you can test the NIC function and performance to verify and evaluate its stability and compatibility.

1. Enable and disable network cards

1.1 Disabling a Specified Network Port.
ifconfig EthX down

1.2 Enabling a Specified Network Port;
ifconfig EthX up

1.3 Checking whether the network can be pinged.
ping xxx.xxx.xxx.xxx

1.4 Check whether the installed NIC has been identified and the corresponding driver has been installed.
ifconfig-a (or ip a)

1.5 Setting the MTU Value of the NIC (Default Value: 1500)
ifconfig EthX mtu 9000

1.6 Setting the send and receive buffer values
ethtool -G EthX rx 4096 tx 4096

2. verify the driver correlation

2.1 Querying the driver version and NIC firmware Information.
ethtool -i EthX

2.2 Viewing the NIC Support Information;
ethtool EthX

3. Typical basic tests

3.1 Perform tests with different packet lengths;
Server execution: netserver

Run the netperf -t TCP_RR -H server IP address -l 10 — -r 32,x (The value of x ranges from 100 to 1200).

3.2 Perform a bandwidth test.
Server execution: iperf -s

Run the following command on the client: iperf – Server IP address – i-5-600