
[root@zjx86r08n02 ~]# ethtool -i p5p2driver: ixgbeversion: 5.1.0-k-rh7.7firmware-version: 0x8000095d, 19.0.12expansion-rom-version:bus-info: 0000:5b:00.1supports-statistics: yessupports-test: yessupports-eeprom-access: yessupports-register-dump: yessupports-priv-flags: yes[root@zjx86r08n02 ~]# ethtool -i p6p2driver: ixgbeversion: 5.1.0-k-rh7.7firmware-version: 0x8000095d, 19.0.12expansion-rom-version:bus-info: 0000:5c:00.1supports-statistics: yessupports-test: yessupports-eeprom-access: yessupports-register-dump: yessupports-priv-flags: yes[root@zjx86r08n02 ~]#
[root@zjx86r08n02 ~]# netstat --all --interfacesKernel Interface tableIface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flgem1 1500 2939629 0 2 0 5041731 0 0 0 BMRUem2 1500 1783539 0 1 0 0 0 0 0 BMRUem3 1500 0 0 0 0 0 0 0 0 BMUem4 1500 0 0 0 0 0 0 0 0 BMUlo 65536 27464734 0 0 0 27464734 0 0 0 LRUp5p1 1500 5426951 0 0 0 44506 0 0 0 BMRUp5p2 1500 734848733 50942518 0 0 225656605 0 0 0 BMRUp6p1 1500 1659399 0 0 0 0 0 0 0 BMRUp6p2 1500 6010388 0 0 0 3198960 0 0 0 BMRUteam0 1500 5424542 0 0 0 44124 0 0 0 BMRUteam0:1 1500 - no statistics available - BMRUteam1 1500 738129582 0 1080346 0 186672744 0 0 0 BMRUteam1:1 1500 - no statistics available - BMRUteam2 1500 2877040 0 1156932 0 4980116 0 0 0 BMRU[root@zjx86r08n02 ~]# ip --statistics link list1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00RX: bytes packets errors dropped overrun mcast7567451055 27464993 0 0 0 0TX: bytes packets errors dropped carrier collsns7567451055 27464993 0 0 0 02: em3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000link/ether e4:43:4b:b5:1c:d4 brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast0 0 0 0 0 0TX: bytes packets errors dropped carrier collsns0 0 0 0 0 03: em4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000link/ether e4:43:4b:b5:1c:d5 brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast0 0 0 0 0 0TX: bytes packets errors dropped carrier collsns0 0 0 0 0 04: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team2 state UP mode DEFAULT qlen 1000link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast374855136 2939650 0 2 0 1612354TX: bytes packets errors dropped carrier collsns529417682 5041733 0 0 0 05: em2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team2 state UP mode DEFAULT qlen 1000link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast148291514 1783557 0 1 0 1613928TX: bytes packets errors dropped carrier collsns0 0 0 0 0 06: p5p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT qlen 1000link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast423079157 5426963 0 0 0 535753TX: bytes packets errors dropped carrier collsns4500874 44512 0 0 0 07: p5p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team1 state UP mode DEFAULT qlen 1000link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast993208121126 734848753 50942518 0 0 1576143TX: bytes packets errors dropped carrier collsns234986407816 225656605 0 0 0 08: p6p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT qlen 1000link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast164264638 1659406 0 0 0 537001TX: bytes packets errors dropped carrier collsns0 0 0 0 0 09: p6p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team1 state UP mode DEFAULT qlen 1000link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast3297088577 6021602 0 0 0 1621595TX: bytes packets errors dropped carrier collsns2928673197 3210037 0 0 0 010: team2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast331196128 2877061 0 1156946 0 1612348TX: bytes packets errors dropped carrier collsns526090472 4980118 0 0 0 011: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast347005303 5424554 0 0 0 535753TX: bytes packets errors dropped carrier collsns4480246 44130 0 0 0 012: team1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ffRX: bytes packets errors dropped overrun mcast985934116058 738140796 0 1080359 0 1591974TX: bytes packets errors dropped carrier collsns235637208679 186683821 0 0 0 0
[root@zjx86r08n02 ~]# ethtool p5p2 | egrep 'Speed|Duplex'Speed: 10000Mb/sDuplex: Full[root@zjx86r08n02 ~]# ethtool -S p5p2 | grep crcrx_crc_errors: 50924794fcoe_bad_fccrc: 0[root@zjx86r08n02 ~]#[root@zjx86r08n02 ~]#[root@zjx86r08n02 ~]# ethtool -S p5p2 | grep droprx_dropped: 0tx_dropped: 0rx_fcoe_dropped: 0[root@zjx86r08n02 ~]# ifconfig p5p2p5p2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500ether ba:7b:64:d1:45:83 txqueuelen 1000 (Ethernet)RX packets 733926468 bytes 992426181481 (924.2 GiB)RX errors 50942358 dropped 0 overruns 0 frame 50942358TX packets 224750354 bytes 234228546486 (218.1 GiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0[root@zjx86r08n02 ~]# for i in `seq 1 10`; do ifconfig p5p2 | grep RX | grep overruns; sleep 1; doneRX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359RX errors 50942359 dropped 0 overruns 0 frame 50942359[root@zjx86r08n02 ~]# for i in `seq 1 10`; do ifconfig p5p2 | grep RX | grep overruns; sleep 1; doneRX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360RX errors 50942360 dropped 0 overruns 0 frame 50942360[root@zjx86r08n02 ~]# cat /proc/net/dev | column -tInter-| Receive | Transmitface |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressedp6p1: 163471933 1653235 0 0 0 0 0 533356 0 0 0 0 0 0 0 0p6p2: 2384110451 4939671 0 0 0 0 0 1612710 2070489805 2168146 0 0 0 0 0 0team1: 984285937010 736156813 0 1075112 0 0 0 1583289 234038625702 184749958 0 0 0 0 0 0team0: 344668839 5410624 0 0 0 0 0 532114 2541540 36675 0 0 0 0 0 0lo: 7534595926 27372852 0 0 0 0 0 0 7534595926 27372852 0 0 0 0 0 0team2: 330505642 2867454 0 1151350 0 0 0 1604609 525957234 4978696 0 0 0 0 0 0p5p1: 420516839 5412462 0 0 0 0 0 532114 2544888 36737 0 0 0 0 0 0p5p2: 992444658072 733941354 50942363 0 0 50942363 0 1572291 234246008231 224764633 0 0 0 0 0 0em2: 147598793 1775256 0 1 0 0 0 1606184 0 0 0 0 0 0 0 0em1: 374029720 2930035 0 2 0 0 0 1604615 529284336 5040309 0 0 0 0 0 0em3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0em4: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0[root@zjx86r08n02 ~]#
[root@zjx86r08n02 ~]# cat /proc/net/dev | column -tInter-| Receive | Transmitface |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressedp6p1: 162553005 1645589 0 0 0 0 0 529468 0 0 0 0 0 0 0 0p6p2: 236557759 2723089 0 0 0 0 0 1600962 0 0 0 0 0 0 0 0team1: 981479299513 733239462 0 1067053 0 0 0 1571354 231739964064 182196112 0 0 0 0 0 0team0: 343701879 5400546 0 0 0 0 0 528234 2261413 34487 0 0 0 0 0 0lo: 7474769116 27047223 0 0 0 0 0 0 7474769116 27047223 0 0 0 0 0 0team2: 329456559 2852646 0 1142755 0 0 0 1592717 525777044 4976633 0 0 0 0 0 0p5p1: 419408625 5402381 0 0 0 0 0 528234 2263357 34523 0 0 0 0 0 0p5p2: 991744656589 733239547 50915412 0 0 50915412 0 1571354 234017836344 224378932 0 0 0 0 0 0em2: 146534573 1762498 0 1 0 0 0 1594283 0 0 0 0 0 0 0 0em1: 372773001 2915221 0 2 0 0 0 1592723 529104146 5038246 0 0 0 0 0 0em3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0em4: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0[root@zjx86r08n02 ~]# netstat -i | column -tKernel Interface tableIface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flgem1 1500 2915251 0 2 0 5038250 0 0 0 BMRUem2 1500 1762523 0 1 0 0 0 0 0 BMRUem3 1500 0 0 0 0 0 0 0 0 BMUem4 1500 0 0 0 0 0 0 0 0 BMUlo 65536 27047602 0 0 0 27047602 0 0 0 LRUp5p1 1500 5402395 0 0 0 34532 0 0 0 BMRUp5p2 1500 733267233 50917176 0 0 224385592 0 0 0 BMRUp6p1 1500 1645596 0 0 0 0 0 0 0 BMRUp6p2 1500 2723113 0 0 0 0 0 0 0 BMRUteam0 1500 5400560 0 0 0 34495 0 0 0 BMRUteam0:1 1500 - no statistics available - BMRUteam1 1500 733267148 0 1067071 0 182202772 0 0 0 BMRUteam1:1 1500 - no statistics available - BMRUteam2 1500 2852676 0 1142774 0 4976637 0 0 0 BMRU[root@zjx86r08n02 ~]# ethtool p5p2Settings for p5p2:Supported ports: [ FIBRE ]Supported link modes: 1000baseT/Full10000baseT/FullSupported pause frame use: SymmetricSupports auto-negotiation: YesAdvertised link modes: 1000baseT/Full10000baseT/FullAdvertised pause frame use: SymmetricAdvertised auto-negotiation: YesSpeed: 10000Mb/sDuplex: FullPort: FIBREPHYAD: 0Transceiver: internalAuto-negotiation: onSupports Wake-on: dWake-on: dCurrent message level: 0x00000007 (7)drv probe linkLink detected: yes
切换网卡端口
[root@zjx86r08n02 ~]# nmcli connection showNAME UUID TYPE DEVICEteam0 a59f72b8-5bf0-4ae3-9d06-e009ee9eeb84 team team0team0-port1 d3212c4d-60db-4b5f-96c9-7e93be0fd8c7 802-3-ethernet p5p1team0-port2 c535527e-2918-4eea-b703-a748078f585e 802-3-ethernet p6p1team1 571b02c7-78fa-4048-a15d-2091a5d7afda team team1team1-port1 a8af07b4-c033-4eb1-b570-694624b5a6be 802-3-ethernet p5p2team1-port2 ce0cfd98-8619-4c8b-98d0-e7706a7ccabb 802-3-ethernet p6p2team2 a9d922c7-af1b-4d92-a2ea-9a0b6873d9f4 team team2team2-port1 1e39b555-61cf-4261-a5a2-0d12ebd0fb0c 802-3-ethernet em1team2-port2 05535056-ddb8-479e-9343-730f81c25499 802-3-ethernet em2em1 664d1156-4aac-4425-b8e3-fcadeb92d28d 802-3-ethernet --em2 381de783-2dc9-423f-a55b-1aefb0ec1b6b 802-3-ethernet --em3 7fe87bca-9e54-4947-8560-1296d9c34656 802-3-ethernet --em4 59ede96d-e03e-4600-85ec-7968974059dd 802-3-ethernet --p5p1 e395e1aa-a3b9-48dc-a434-e3b9dc13d8fa 802-3-ethernet --p5p2 46f38fcd-4d4d-41fb-94ad-e47d6141647e 802-3-ethernet --p6p1 e4a9b364-2cf4-4ff6-b2d3-0b60c439f7dd 802-3-ethernet --p6p2 dac2284c-5427-45ef-9ce6-f0dad3e40228 802-3-ethernet --[root@zjx86r08n02 ~]# ifconfig p5p2 down
[root@zjx86r08n02 ~]# teamdctl team1 statesetup:runner: activebackupports:p5p2link watches:link summary: downinstance[link_watch_0]:name: ethtoollink: downdown count: 1p6p2link watches:link summary: upinstance[link_watch_0]:name: ethtoollink: updown count: 0runner:active port: p6p2[root@zjx86r08n02 ~]# netstat -i | column -tKernel Interface tableIface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flgem1 1500 2915731 0 2 0 5038317 0 0 0 BMRUem2 1500 1762936 0 1 0 0 0 0 0 BMRUem3 1500 0 0 0 0 0 0 0 0 BMUem4 1500 0 0 0 0 0 0 0 0 BMUlo 65536 27130810 0 0 0 27130810 0 0 0 LRUp5p1 1500 5402881 0 0 0 34788 0 0 0 BMRUp6p1 1500 1645734 0 0 0 0 0 0 0 BMRUp6p2 1500 2729845 0 0 0 6714 0 0 0 BMRUteam0 1500 5401046 0 0 0 34748 0 0 0 BMRUteam0:1 1500 - no statistics available - BMRUteam1 1500 733613245 0 1067335 0 182256709 0 0 0 BMRUteam1:1 1500 - no statistics available - BMRUteam2 1500 2853156 0 1143056 0 4976704 0 0 0 BMRU
处理:
ethtool -G p5p2 rx 4096ethtool -G p5p2 tx 4096
[root@zjx86r08n02 ~]# ethtool -g p5p2Ring parameters for p5p2:Pre-set maximums:RX: 4096RX Mini: 0RX Jumbo: 0TX: 4096Current hardware settings:RX: 4096RX Mini: 0RX Jumbo: 0TX: 4096[root@zjx86r08n02 ~]#
