image.png

    1. [root@zjx86r08n02 ~]# ethtool -i p5p2
    2. driver: ixgbe
    3. version: 5.1.0-k-rh7.7
    4. firmware-version: 0x8000095d, 19.0.12
    5. expansion-rom-version:
    6. bus-info: 0000:5b:00.1
    7. supports-statistics: yes
    8. supports-test: yes
    9. supports-eeprom-access: yes
    10. supports-register-dump: yes
    11. supports-priv-flags: yes
    12. [root@zjx86r08n02 ~]# ethtool -i p6p2
    13. driver: ixgbe
    14. version: 5.1.0-k-rh7.7
    15. firmware-version: 0x8000095d, 19.0.12
    16. expansion-rom-version:
    17. bus-info: 0000:5c:00.1
    18. supports-statistics: yes
    19. supports-test: yes
    20. supports-eeprom-access: yes
    21. supports-register-dump: yes
    22. supports-priv-flags: yes
    23. [root@zjx86r08n02 ~]#
    1. [root@zjx86r08n02 ~]# netstat --all --interfaces
    2. Kernel Interface table
    3. Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
    4. em1 1500 2939629 0 2 0 5041731 0 0 0 BMRU
    5. em2 1500 1783539 0 1 0 0 0 0 0 BMRU
    6. em3 1500 0 0 0 0 0 0 0 0 BMU
    7. em4 1500 0 0 0 0 0 0 0 0 BMU
    8. lo 65536 27464734 0 0 0 27464734 0 0 0 LRU
    9. p5p1 1500 5426951 0 0 0 44506 0 0 0 BMRU
    10. p5p2 1500 734848733 50942518 0 0 225656605 0 0 0 BMRU
    11. p6p1 1500 1659399 0 0 0 0 0 0 0 BMRU
    12. p6p2 1500 6010388 0 0 0 3198960 0 0 0 BMRU
    13. team0 1500 5424542 0 0 0 44124 0 0 0 BMRU
    14. team0:1 1500 - no statistics available - BMRU
    15. team1 1500 738129582 0 1080346 0 186672744 0 0 0 BMRU
    16. team1:1 1500 - no statistics available - BMRU
    17. team2 1500 2877040 0 1156932 0 4980116 0 0 0 BMRU
    18. [root@zjx86r08n02 ~]# ip --statistics link list
    19. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1000
    20. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    21. RX: bytes packets errors dropped overrun mcast
    22. 7567451055 27464993 0 0 0 0
    23. TX: bytes packets errors dropped carrier collsns
    24. 7567451055 27464993 0 0 0 0
    25. 2: em3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
    26. link/ether e4:43:4b:b5:1c:d4 brd ff:ff:ff:ff:ff:ff
    27. RX: bytes packets errors dropped overrun mcast
    28. 0 0 0 0 0 0
    29. TX: bytes packets errors dropped carrier collsns
    30. 0 0 0 0 0 0
    31. 3: em4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
    32. link/ether e4:43:4b:b5:1c:d5 brd ff:ff:ff:ff:ff:ff
    33. RX: bytes packets errors dropped overrun mcast
    34. 0 0 0 0 0 0
    35. TX: bytes packets errors dropped carrier collsns
    36. 0 0 0 0 0 0
    37. 4: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team2 state UP mode DEFAULT qlen 1000
    38. link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ff
    39. RX: bytes packets errors dropped overrun mcast
    40. 374855136 2939650 0 2 0 1612354
    41. TX: bytes packets errors dropped carrier collsns
    42. 529417682 5041733 0 0 0 0
    43. 5: em2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team2 state UP mode DEFAULT qlen 1000
    44. link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ff
    45. RX: bytes packets errors dropped overrun mcast
    46. 148291514 1783557 0 1 0 1613928
    47. TX: bytes packets errors dropped carrier collsns
    48. 0 0 0 0 0 0
    49. 6: p5p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT qlen 1000
    50. link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ff
    51. RX: bytes packets errors dropped overrun mcast
    52. 423079157 5426963 0 0 0 535753
    53. TX: bytes packets errors dropped carrier collsns
    54. 4500874 44512 0 0 0 0
    55. 7: p5p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team1 state UP mode DEFAULT qlen 1000
    56. link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ff
    57. RX: bytes packets errors dropped overrun mcast
    58. 993208121126 734848753 50942518 0 0 1576143
    59. TX: bytes packets errors dropped carrier collsns
    60. 234986407816 225656605 0 0 0 0
    61. 8: p6p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT qlen 1000
    62. link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ff
    63. RX: bytes packets errors dropped overrun mcast
    64. 164264638 1659406 0 0 0 537001
    65. TX: bytes packets errors dropped carrier collsns
    66. 0 0 0 0 0 0
    67. 9: p6p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team1 state UP mode DEFAULT qlen 1000
    68. link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ff
    69. RX: bytes packets errors dropped overrun mcast
    70. 3297088577 6021602 0 0 0 1621595
    71. TX: bytes packets errors dropped carrier collsns
    72. 2928673197 3210037 0 0 0 0
    73. 10: team2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
    74. link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ff
    75. RX: bytes packets errors dropped overrun mcast
    76. 331196128 2877061 0 1156946 0 1612348
    77. TX: bytes packets errors dropped carrier collsns
    78. 526090472 4980118 0 0 0 0
    79. 11: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
    80. link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ff
    81. RX: bytes packets errors dropped overrun mcast
    82. 347005303 5424554 0 0 0 535753
    83. TX: bytes packets errors dropped carrier collsns
    84. 4480246 44130 0 0 0 0
    85. 12: team1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
    86. link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ff
    87. RX: bytes packets errors dropped overrun mcast
    88. 985934116058 738140796 0 1080359 0 1591974
    89. TX: bytes packets errors dropped carrier collsns
    90. 235637208679 186683821 0 0 0 0
    1. [root@zjx86r08n02 ~]# ethtool p5p2 | egrep 'Speed|Duplex'
    2. Speed: 10000Mb/s
    3. Duplex: Full
    4. [root@zjx86r08n02 ~]# ethtool -S p5p2 | grep crc
    5. rx_crc_errors: 50924794
    6. fcoe_bad_fccrc: 0
    7. [root@zjx86r08n02 ~]#
    8. [root@zjx86r08n02 ~]#
    9. [root@zjx86r08n02 ~]# ethtool -S p5p2 | grep drop
    10. rx_dropped: 0
    11. tx_dropped: 0
    12. rx_fcoe_dropped: 0
    13. [root@zjx86r08n02 ~]# ifconfig p5p2
    14. p5p2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    15. ether ba:7b:64:d1:45:83 txqueuelen 1000 (Ethernet)
    16. RX packets 733926468 bytes 992426181481 (924.2 GiB)
    17. RX errors 50942358 dropped 0 overruns 0 frame 50942358
    18. TX packets 224750354 bytes 234228546486 (218.1 GiB)
    19. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    20. [root@zjx86r08n02 ~]# for i in `seq 1 10`; do ifconfig p5p2 | grep RX | grep overruns; sleep 1; done
    21. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    22. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    23. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    24. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    25. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    26. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    27. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    28. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    29. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    30. RX errors 50942359 dropped 0 overruns 0 frame 50942359
    31. [root@zjx86r08n02 ~]# for i in `seq 1 10`; do ifconfig p5p2 | grep RX | grep overruns; sleep 1; done
    32. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    33. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    34. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    35. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    36. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    37. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    38. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    39. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    40. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    41. RX errors 50942360 dropped 0 overruns 0 frame 50942360
    42. [root@zjx86r08n02 ~]# cat /proc/net/dev | column -t
    43. Inter-| Receive | Transmit
    44. face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
    45. p6p1: 163471933 1653235 0 0 0 0 0 533356 0 0 0 0 0 0 0 0
    46. p6p2: 2384110451 4939671 0 0 0 0 0 1612710 2070489805 2168146 0 0 0 0 0 0
    47. team1: 984285937010 736156813 0 1075112 0 0 0 1583289 234038625702 184749958 0 0 0 0 0 0
    48. team0: 344668839 5410624 0 0 0 0 0 532114 2541540 36675 0 0 0 0 0 0
    49. lo: 7534595926 27372852 0 0 0 0 0 0 7534595926 27372852 0 0 0 0 0 0
    50. team2: 330505642 2867454 0 1151350 0 0 0 1604609 525957234 4978696 0 0 0 0 0 0
    51. p5p1: 420516839 5412462 0 0 0 0 0 532114 2544888 36737 0 0 0 0 0 0
    52. p5p2: 992444658072 733941354 50942363 0 0 50942363 0 1572291 234246008231 224764633 0 0 0 0 0 0
    53. em2: 147598793 1775256 0 1 0 0 0 1606184 0 0 0 0 0 0 0 0
    54. em1: 374029720 2930035 0 2 0 0 0 1604615 529284336 5040309 0 0 0 0 0 0
    55. em3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    56. em4: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    57. [root@zjx86r08n02 ~]#
    1. [root@zjx86r08n02 ~]# cat /proc/net/dev | column -t
    2. Inter-| Receive | Transmit
    3. face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
    4. p6p1: 162553005 1645589 0 0 0 0 0 529468 0 0 0 0 0 0 0 0
    5. p6p2: 236557759 2723089 0 0 0 0 0 1600962 0 0 0 0 0 0 0 0
    6. team1: 981479299513 733239462 0 1067053 0 0 0 1571354 231739964064 182196112 0 0 0 0 0 0
    7. team0: 343701879 5400546 0 0 0 0 0 528234 2261413 34487 0 0 0 0 0 0
    8. lo: 7474769116 27047223 0 0 0 0 0 0 7474769116 27047223 0 0 0 0 0 0
    9. team2: 329456559 2852646 0 1142755 0 0 0 1592717 525777044 4976633 0 0 0 0 0 0
    10. p5p1: 419408625 5402381 0 0 0 0 0 528234 2263357 34523 0 0 0 0 0 0
    11. p5p2: 991744656589 733239547 50915412 0 0 50915412 0 1571354 234017836344 224378932 0 0 0 0 0 0
    12. em2: 146534573 1762498 0 1 0 0 0 1594283 0 0 0 0 0 0 0 0
    13. em1: 372773001 2915221 0 2 0 0 0 1592723 529104146 5038246 0 0 0 0 0 0
    14. em3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    15. em4: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    16. [root@zjx86r08n02 ~]# netstat -i | column -t
    17. Kernel Interface table
    18. Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
    19. em1 1500 2915251 0 2 0 5038250 0 0 0 BMRU
    20. em2 1500 1762523 0 1 0 0 0 0 0 BMRU
    21. em3 1500 0 0 0 0 0 0 0 0 BMU
    22. em4 1500 0 0 0 0 0 0 0 0 BMU
    23. lo 65536 27047602 0 0 0 27047602 0 0 0 LRU
    24. p5p1 1500 5402395 0 0 0 34532 0 0 0 BMRU
    25. p5p2 1500 733267233 50917176 0 0 224385592 0 0 0 BMRU
    26. p6p1 1500 1645596 0 0 0 0 0 0 0 BMRU
    27. p6p2 1500 2723113 0 0 0 0 0 0 0 BMRU
    28. team0 1500 5400560 0 0 0 34495 0 0 0 BMRU
    29. team0:1 1500 - no statistics available - BMRU
    30. team1 1500 733267148 0 1067071 0 182202772 0 0 0 BMRU
    31. team1:1 1500 - no statistics available - BMRU
    32. team2 1500 2852676 0 1142774 0 4976637 0 0 0 BMRU
    33. [root@zjx86r08n02 ~]# ethtool p5p2
    34. Settings for p5p2:
    35. Supported ports: [ FIBRE ]
    36. Supported link modes: 1000baseT/Full
    37. 10000baseT/Full
    38. Supported pause frame use: Symmetric
    39. Supports auto-negotiation: Yes
    40. Advertised link modes: 1000baseT/Full
    41. 10000baseT/Full
    42. Advertised pause frame use: Symmetric
    43. Advertised auto-negotiation: Yes
    44. Speed: 10000Mb/s
    45. Duplex: Full
    46. Port: FIBRE
    47. PHYAD: 0
    48. Transceiver: internal
    49. Auto-negotiation: on
    50. Supports Wake-on: d
    51. Wake-on: d
    52. Current message level: 0x00000007 (7)
    53. drv probe link
    54. Link detected: yes

    切换网卡端口

    1. [root@zjx86r08n02 ~]# nmcli connection show
    2. NAME UUID TYPE DEVICE
    3. team0 a59f72b8-5bf0-4ae3-9d06-e009ee9eeb84 team team0
    4. team0-port1 d3212c4d-60db-4b5f-96c9-7e93be0fd8c7 802-3-ethernet p5p1
    5. team0-port2 c535527e-2918-4eea-b703-a748078f585e 802-3-ethernet p6p1
    6. team1 571b02c7-78fa-4048-a15d-2091a5d7afda team team1
    7. team1-port1 a8af07b4-c033-4eb1-b570-694624b5a6be 802-3-ethernet p5p2
    8. team1-port2 ce0cfd98-8619-4c8b-98d0-e7706a7ccabb 802-3-ethernet p6p2
    9. team2 a9d922c7-af1b-4d92-a2ea-9a0b6873d9f4 team team2
    10. team2-port1 1e39b555-61cf-4261-a5a2-0d12ebd0fb0c 802-3-ethernet em1
    11. team2-port2 05535056-ddb8-479e-9343-730f81c25499 802-3-ethernet em2
    12. em1 664d1156-4aac-4425-b8e3-fcadeb92d28d 802-3-ethernet --
    13. em2 381de783-2dc9-423f-a55b-1aefb0ec1b6b 802-3-ethernet --
    14. em3 7fe87bca-9e54-4947-8560-1296d9c34656 802-3-ethernet --
    15. em4 59ede96d-e03e-4600-85ec-7968974059dd 802-3-ethernet --
    16. p5p1 e395e1aa-a3b9-48dc-a434-e3b9dc13d8fa 802-3-ethernet --
    17. p5p2 46f38fcd-4d4d-41fb-94ad-e47d6141647e 802-3-ethernet --
    18. p6p1 e4a9b364-2cf4-4ff6-b2d3-0b60c439f7dd 802-3-ethernet --
    19. p6p2 dac2284c-5427-45ef-9ce6-f0dad3e40228 802-3-ethernet --
    20. [root@zjx86r08n02 ~]# ifconfig p5p2 down
    1. [root@zjx86r08n02 ~]# teamdctl team1 state
    2. setup:
    3. runner: activebackup
    4. ports:
    5. p5p2
    6. link watches:
    7. link summary: down
    8. instance[link_watch_0]:
    9. name: ethtool
    10. link: down
    11. down count: 1
    12. p6p2
    13. link watches:
    14. link summary: up
    15. instance[link_watch_0]:
    16. name: ethtool
    17. link: up
    18. down count: 0
    19. runner:
    20. active port: p6p2
    21. [root@zjx86r08n02 ~]# netstat -i | column -t
    22. Kernel Interface table
    23. Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
    24. em1 1500 2915731 0 2 0 5038317 0 0 0 BMRU
    25. em2 1500 1762936 0 1 0 0 0 0 0 BMRU
    26. em3 1500 0 0 0 0 0 0 0 0 BMU
    27. em4 1500 0 0 0 0 0 0 0 0 BMU
    28. lo 65536 27130810 0 0 0 27130810 0 0 0 LRU
    29. p5p1 1500 5402881 0 0 0 34788 0 0 0 BMRU
    30. p6p1 1500 1645734 0 0 0 0 0 0 0 BMRU
    31. p6p2 1500 2729845 0 0 0 6714 0 0 0 BMRU
    32. team0 1500 5401046 0 0 0 34748 0 0 0 BMRU
    33. team0:1 1500 - no statistics available - BMRU
    34. team1 1500 733613245 0 1067335 0 182256709 0 0 0 BMRU
    35. team1:1 1500 - no statistics available - BMRU
    36. team2 1500 2853156 0 1143056 0 4976704 0 0 0 BMRU

    处理:

    1. ethtool -G p5p2 rx 4096
    2. ethtool -G p5p2 tx 4096
    1. [root@zjx86r08n02 ~]# ethtool -g p5p2
    2. Ring parameters for p5p2:
    3. Pre-set maximums:
    4. RX: 4096
    5. RX Mini: 0
    6. RX Jumbo: 0
    7. TX: 4096
    8. Current hardware settings:
    9. RX: 4096
    10. RX Mini: 0
    11. RX Jumbo: 0
    12. TX: 4096
    13. [root@zjx86r08n02 ~]#