分析網橋bond及調整網絡卡速度

2021-09-07 23:29:02 字數 4205 閱讀 5320

分析網橋相關bond資訊

1. 檢視所有網橋

[root@node-1 ~]# ip r | grep br-

default via 172.18.0.1 dev br-pub

10.30.1.0/24 dev br-roller proto kernel scope link src 10.30.1.3

10.233.0.0/18 dev br-mgmt scope link

10.233.64.0/24 via 192.168.20.6 dev br-mgmt

10.233.65.0/24 via 192.168.20.7 dev br-mgmt

10.233.66.0/24 via 192.168.20.5 dev br-mgmt

10.233.67.0/24 via 192.168.20.8 dev br-mgmt

10.233.68.0/24 via 192.168.20.9 dev br-mgmt

10.233.70.0/24 via 192.168.20.4 dev br-mgmt

172.16.0.0/16 via 172.19.0.1 dev br-pub

172.18.0.0/16 dev br-pub proto kernel scope link src 172.18.0.3

172.19.0.0/24 dev br-pub proto kernel scope link src 172.19.0.3

192.168.11.0/24 dev br-storage proto kernel scope link src 192.168.11.2

192.168.12.0/24 dev br-ipmi proto kernel scope link src 192.168.12.2

192.168.14.0/24 dev br-vxlan proto kernel scope link src 192.168.14.2

192.168.15.0/24 dev br-storagepub proto kernel scope link src 192.168.15.2

192.168.20.0/24 dev br-mgmt proto kernel scope link src 192.168.20.3

2.檢視管理網橋下的bond資訊

[root@node-1 ~]# ovs-vsctl list-ports br-mgmt 

br-mgmt--br-bond1

3.檢視網橋下的網絡卡

[root@node-1 ~]# ovs-vsctl list-ifaces br-bond0

br-bond0--br-storage

enp5s0f0

enp5s0f1

4. down 乙個網絡卡

ip link set enp5s0f0 down
5.啟動該網絡卡

ip link set enp5s0f0 up
調整網絡卡速度

1. 確保該網絡卡可以調速

[root@node-3 ~]# ethtool eno1

settings for eno1:

supported ports: [ tp ]

supported link modes: 10baset/half 10baset/full

100baset/half 100baset/full

1000baset/full

supported pause frame use: symmetric

supports auto-negotiation: yes

advertised link modes: 1000baset/full

advertised pause frame use: symmetric

advertised auto-negotiation: yes

speed: 1000mb/s

duplex: full

port: twisted pair

phyad: 1

transceiver: internal

auto-negotiation: on

mdi-x: off (auto)

supports wake-on: pumbg

wake-on: d

current message level: 0x00000007 (7)

drv probe link

link detected: yes

如上,一塊千兆網絡卡,支援調速成百兆和十兆.

2.調整該網絡卡,限速100m

[root@node-3 ~]# ethtool -s eno1 speed  100 duplex full

[root@node-3 ~]# ethtool eno1

settings for eno1:

supported ports: [ tp ]

supported link modes: 10baset/half 10baset/full

100baset/half 100baset/full

1000baset/full

supported pause frame use: symmetric

supports auto-negotiation: yes

advertised link modes: 100baset/full

advertised pause frame use: symmetric

advertised auto-negotiation: yes

speed: 100mb/s

duplex: full

port: twisted pair

phyad: 1

transceiver: internal

auto-negotiation: on

mdi-x: off (auto)

supports wake-on: pumbg

wake-on: d

current message level: 0x00000007 (7)

drv probe link

link detected: yes

3.調整網絡卡,限速10m

[root@node-3 ~]# ethtool -s eno1 speed  10 duplex full

[root@node-3 ~]# ethtool eno1

settings for eno1:

supported ports: [ tp ]

supported link modes: 10baset/half 10baset/full

100baset/half 100baset/full

1000baset/full

supported pause frame use: symmetric

supports auto-negotiation: yes

advertised link modes: 1000baset/full

advertised pause frame use: symmetric

advertised auto-negotiation: yes

speed: 10mb/s

duplex: full

port: twisted pair

phyad: 1

transceiver: internal

auto-negotiation: on

mdi-x: off (auto)

supports wake-on: pumbg

wake-on: d

current message level: 0x00000007 (7)

drv probe link

link detected: yes

4.可以通過目錄 /sys/class/net/網絡卡名/speed, 檢視該網絡卡對應的當前速度

[root@node-3 ~]# cat /sys/class/net/eno1/speed 

1000

CentOS下bond網絡卡聚合與網橋結合

需求 伺服器配置bond多網絡卡聚合,然後kvm需要使用到網橋,那麼需要做到網橋繫結到bond網絡卡上。實現核心 1 bond配置參考 2 網橋配置參考 3 核心配置 其實只要把bond網絡卡的配置指定為br即可,其餘的不用改變 cat etc sysconfig network scripts i...

linux檢視網絡卡速度和模式調整

root c02b03 ethtool eth0 settings for eth0 supported ports fibre supported link modes 1000baset full supports auto negotiation yes advertised link mod...

SSD 速度效能分析及anchor的選擇

ssd最大特點是速度快 1.因為是end to end 的 網路,沒有其他冗餘機構 2.anchor 是在大格上 8x8 每個格仔有5中尺寸,整體anchor比faster rcnn中少很多 3.4 3,7,8 2,9 2,10 2,11層 5個層都做多尺度回歸,為了改善小目標檢測效果不佳 4.整個...