[root@zjx86r08n02 ~]# ethtool -i p5p2
driver: ixgbe
version: 5.1.0-k-rh7.7
firmware-version: 0x8000095d, 19.0.12
expansion-rom-version:
bus-info: 0000:5b:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
[root@zjx86r08n02 ~]# ethtool -i p6p2
driver: ixgbe
version: 5.1.0-k-rh7.7
firmware-version: 0x8000095d, 19.0.12
expansion-rom-version:
bus-info: 0000:5c:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
[root@zjx86r08n02 ~]#
[root@zjx86r08n02 ~]# netstat --all --interfaces
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
em1 1500 2939629 0 2 0 5041731 0 0 0 BMRU
em2 1500 1783539 0 1 0 0 0 0 0 BMRU
em3 1500 0 0 0 0 0 0 0 0 BMU
em4 1500 0 0 0 0 0 0 0 0 BMU
lo 65536 27464734 0 0 0 27464734 0 0 0 LRU
p5p1 1500 5426951 0 0 0 44506 0 0 0 BMRU
p5p2 1500 734848733 50942518 0 0 225656605 0 0 0 BMRU
p6p1 1500 1659399 0 0 0 0 0 0 0 BMRU
p6p2 1500 6010388 0 0 0 3198960 0 0 0 BMRU
team0 1500 5424542 0 0 0 44124 0 0 0 BMRU
team0:1 1500 - no statistics available - BMRU
team1 1500 738129582 0 1080346 0 186672744 0 0 0 BMRU
team1:1 1500 - no statistics available - BMRU
team2 1500 2877040 0 1156932 0 4980116 0 0 0 BMRU
[root@zjx86r08n02 ~]# ip --statistics link list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
RX: bytes packets errors dropped overrun mcast
7567451055 27464993 0 0 0 0
TX: bytes packets errors dropped carrier collsns
7567451055 27464993 0 0 0 0
2: em3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether e4:43:4b:b5:1c:d4 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
3: em4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether e4:43:4b:b5:1c:d5 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
4: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team2 state UP mode DEFAULT qlen 1000
link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
374855136 2939650 0 2 0 1612354
TX: bytes packets errors dropped carrier collsns
529417682 5041733 0 0 0 0
5: em2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team2 state UP mode DEFAULT qlen 1000
link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
148291514 1783557 0 1 0 1613928
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
6: p5p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT qlen 1000
link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
423079157 5426963 0 0 0 535753
TX: bytes packets errors dropped carrier collsns
4500874 44512 0 0 0 0
7: p5p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team1 state UP mode DEFAULT qlen 1000
link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
993208121126 734848753 50942518 0 0 1576143
TX: bytes packets errors dropped carrier collsns
234986407816 225656605 0 0 0 0
8: p6p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT qlen 1000
link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
164264638 1659406 0 0 0 537001
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
9: p6p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team1 state UP mode DEFAULT qlen 1000
link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
3297088577 6021602 0 0 0 1621595
TX: bytes packets errors dropped carrier collsns
2928673197 3210037 0 0 0 0
10: team2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
link/ether 56:09:62:26:92:3f brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
331196128 2877061 0 1156946 0 1612348
TX: bytes packets errors dropped carrier collsns
526090472 4980118 0 0 0 0
11: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
link/ether 42:55:0c:89:8b:63 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
347005303 5424554 0 0 0 535753
TX: bytes packets errors dropped carrier collsns
4480246 44130 0 0 0 0
12: team1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT qlen 1000
link/ether ba:7b:64:d1:45:83 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
985934116058 738140796 0 1080359 0 1591974
TX: bytes packets errors dropped carrier collsns
235637208679 186683821 0 0 0 0
[root@zjx86r08n02 ~]# ethtool p5p2 | egrep 'Speed|Duplex'
Speed: 10000Mb/s
Duplex: Full
[root@zjx86r08n02 ~]# ethtool -S p5p2 | grep crc
rx_crc_errors: 50924794
fcoe_bad_fccrc: 0
[root@zjx86r08n02 ~]#
[root@zjx86r08n02 ~]#
[root@zjx86r08n02 ~]# ethtool -S p5p2 | grep drop
rx_dropped: 0
tx_dropped: 0
rx_fcoe_dropped: 0
[root@zjx86r08n02 ~]# ifconfig p5p2
p5p2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 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 50942358
TX 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; done
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX errors 50942359 dropped 0 overruns 0 frame 50942359
RX 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; done
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
RX errors 50942360 dropped 0 overruns 0 frame 50942360
[root@zjx86r08n02 ~]# cat /proc/net/dev | column -t
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
p6p1: 163471933 1653235 0 0 0 0 0 533356 0 0 0 0 0 0 0 0
p6p2: 2384110451 4939671 0 0 0 0 0 1612710 2070489805 2168146 0 0 0 0 0 0
team1: 984285937010 736156813 0 1075112 0 0 0 1583289 234038625702 184749958 0 0 0 0 0 0
team0: 344668839 5410624 0 0 0 0 0 532114 2541540 36675 0 0 0 0 0 0
lo: 7534595926 27372852 0 0 0 0 0 0 7534595926 27372852 0 0 0 0 0 0
team2: 330505642 2867454 0 1151350 0 0 0 1604609 525957234 4978696 0 0 0 0 0 0
p5p1: 420516839 5412462 0 0 0 0 0 532114 2544888 36737 0 0 0 0 0 0
p5p2: 992444658072 733941354 50942363 0 0 50942363 0 1572291 234246008231 224764633 0 0 0 0 0 0
em2: 147598793 1775256 0 1 0 0 0 1606184 0 0 0 0 0 0 0 0
em1: 374029720 2930035 0 2 0 0 0 1604615 529284336 5040309 0 0 0 0 0 0
em3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
em4: 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 -t
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
p6p1: 162553005 1645589 0 0 0 0 0 529468 0 0 0 0 0 0 0 0
p6p2: 236557759 2723089 0 0 0 0 0 1600962 0 0 0 0 0 0 0 0
team1: 981479299513 733239462 0 1067053 0 0 0 1571354 231739964064 182196112 0 0 0 0 0 0
team0: 343701879 5400546 0 0 0 0 0 528234 2261413 34487 0 0 0 0 0 0
lo: 7474769116 27047223 0 0 0 0 0 0 7474769116 27047223 0 0 0 0 0 0
team2: 329456559 2852646 0 1142755 0 0 0 1592717 525777044 4976633 0 0 0 0 0 0
p5p1: 419408625 5402381 0 0 0 0 0 528234 2263357 34523 0 0 0 0 0 0
p5p2: 991744656589 733239547 50915412 0 0 50915412 0 1571354 234017836344 224378932 0 0 0 0 0 0
em2: 146534573 1762498 0 1 0 0 0 1594283 0 0 0 0 0 0 0 0
em1: 372773001 2915221 0 2 0 0 0 1592723 529104146 5038246 0 0 0 0 0 0
em3: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
em4: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[root@zjx86r08n02 ~]# netstat -i | column -t
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
em1 1500 2915251 0 2 0 5038250 0 0 0 BMRU
em2 1500 1762523 0 1 0 0 0 0 0 BMRU
em3 1500 0 0 0 0 0 0 0 0 BMU
em4 1500 0 0 0 0 0 0 0 0 BMU
lo 65536 27047602 0 0 0 27047602 0 0 0 LRU
p5p1 1500 5402395 0 0 0 34532 0 0 0 BMRU
p5p2 1500 733267233 50917176 0 0 224385592 0 0 0 BMRU
p6p1 1500 1645596 0 0 0 0 0 0 0 BMRU
p6p2 1500 2723113 0 0 0 0 0 0 0 BMRU
team0 1500 5400560 0 0 0 34495 0 0 0 BMRU
team0:1 1500 - no statistics available - BMRU
team1 1500 733267148 0 1067071 0 182202772 0 0 0 BMRU
team1:1 1500 - no statistics available - BMRU
team2 1500 2852676 0 1142774 0 4976637 0 0 0 BMRU
[root@zjx86r08n02 ~]# ethtool p5p2
Settings for p5p2:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
10000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
10000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
切换网卡端口
[root@zjx86r08n02 ~]# nmcli connection show
NAME UUID TYPE DEVICE
team0 a59f72b8-5bf0-4ae3-9d06-e009ee9eeb84 team team0
team0-port1 d3212c4d-60db-4b5f-96c9-7e93be0fd8c7 802-3-ethernet p5p1
team0-port2 c535527e-2918-4eea-b703-a748078f585e 802-3-ethernet p6p1
team1 571b02c7-78fa-4048-a15d-2091a5d7afda team team1
team1-port1 a8af07b4-c033-4eb1-b570-694624b5a6be 802-3-ethernet p5p2
team1-port2 ce0cfd98-8619-4c8b-98d0-e7706a7ccabb 802-3-ethernet p6p2
team2 a9d922c7-af1b-4d92-a2ea-9a0b6873d9f4 team team2
team2-port1 1e39b555-61cf-4261-a5a2-0d12ebd0fb0c 802-3-ethernet em1
team2-port2 05535056-ddb8-479e-9343-730f81c25499 802-3-ethernet em2
em1 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 state
setup:
runner: activebackup
ports:
p5p2
link watches:
link summary: down
instance[link_watch_0]:
name: ethtool
link: down
down count: 1
p6p2
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
runner:
active port: p6p2
[root@zjx86r08n02 ~]# netstat -i | column -t
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
em1 1500 2915731 0 2 0 5038317 0 0 0 BMRU
em2 1500 1762936 0 1 0 0 0 0 0 BMRU
em3 1500 0 0 0 0 0 0 0 0 BMU
em4 1500 0 0 0 0 0 0 0 0 BMU
lo 65536 27130810 0 0 0 27130810 0 0 0 LRU
p5p1 1500 5402881 0 0 0 34788 0 0 0 BMRU
p6p1 1500 1645734 0 0 0 0 0 0 0 BMRU
p6p2 1500 2729845 0 0 0 6714 0 0 0 BMRU
team0 1500 5401046 0 0 0 34748 0 0 0 BMRU
team0:1 1500 - no statistics available - BMRU
team1 1500 733613245 0 1067335 0 182256709 0 0 0 BMRU
team1:1 1500 - no statistics available - BMRU
team2 1500 2853156 0 1143056 0 4976704 0 0 0 BMRU
处理:
ethtool -G p5p2 rx 4096
ethtool -G p5p2 tx 4096
[root@zjx86r08n02 ~]# ethtool -g p5p2
Ring parameters for p5p2:
Pre-set maximums:
RX: 4096
RX Mini: 0
RX Jumbo: 0
TX: 4096
Current hardware settings:
RX: 4096
RX Mini: 0
RX Jumbo: 0
TX: 4096
[root@zjx86r08n02 ~]#