bond1 修改成bond4

本文档详细介绍了如何配置华三交换机的端口聚合,包括设置描述、端口类型、允许的VLAN以及动态聚合模式。同时,展示了服务器端的OVS bonding配置,从active-backup模式切换到balance-tcp模式,并通过重启服务确认修改。最后,演示了在CentOS7.6中如何修改Linux bond1的模式,从mode 1切换到mode 4,并验证修改后的bond模式。
摘要由CSDN通过智能技术生成

交换机端修改(华三的交换机)

##聚合组

interface Bridge-Aggregation22
 description guanli
 port link-type trunk
 undo port trunk permit vlan 1
 port trunk permit vlan 11  1100 to 1120
 link-aggregation mode dynamic

#端口配置

interface Ten-GigabitEthernet1/0/22
 port link-mode bridge
 description Sxxx
 port link-type trunk
 undo port trunk permit vlan 1
 port trunk permit vlan 11  1100 to 1120
 port link-aggregation group 22

服务器端修改 

#ovs bond 默认是bond1 模式

查看bond1模式

# ovs-appctl bond/show 

---- bond2 ----
bond_mode: active-backup
bond may use recirculation: no, Recirc-ID : -1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
lacp_status: off
active slave mac: 6c:b3:11:08:d7:28(enp134s0f0)
slave enp134s0f0: enabled
active slave
may_enable: true
slave enp175s0f0: enabled
may_enable: true

##把模式修改lacp bond4 模式 

# ovs-vsctl set port bond2  bond_mode=balance-tcp  lacp=active

##重启服务

# systemctl restart openvswitch

##确认是否修改完成

# ovs-appctl bond/show

---- bond2 ----
bond_mode: balance-tcp
bond may use recirculation: yes, Recirc-ID : 1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 3550 ms
lacp_status: negotiated
active slave mac: 6c:b3:11:09:06:a8(enp175s0f0)
slave enp134s0f0: enabled
may_enable: true
slave enp175s0f0: enabled
active slave
may_enable: true

###Linux bond1 修改 centos7.6 只需要修改配置文件即可

# cat ifcfg-bond1 

DEVICE=bond1
ONBOOT=yes
BOOTPROTO=static
NM_CONTROLLED=no
TYPE=Ethernet
USERCTL=no
MTU=1500
BONDING_OPTS="mode=1 miimon=100"
BOOTPROTO=static
IPADDR=172.19.19.19
NETMASK=255.255.255.0

[root@node04 network-scripts]# 

##修改成mode4 结构 

###Linux bond1 修改 

 network-scripts]# cat ifcfg-bond1 

DEVICE=bond1
ONBOOT=yes
BOOTPROTO=static
NM_CONTROLLED=no
TYPE=Ethernet
USERCTL=no
MTU=1500
BONDING_OPTS="mode=4 miimon=100"
BOOTPROTO=static
IPADDR=172.19.19.19
NETMASK=255.255.255.0

重启服务

#systemctl restart network 

##查看bond1模式是否修改

# cat /proc/net/bonding/bond1 

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)



Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
System priority: 65535
System MAC address: 6c:b3:11:09:05:fa
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 2
Actor Key: 15
Partner Key: 1
Partner Mac Address: 14:51:7e:af:1d:01

Slave Interface: enp134s0f1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 6c:b3:11:09:05:fa
Slave queue ID: 0
Aggregator ID: 1
Actor Churn State: monitoring
Partner Churn State: monitoring
Actor Churned Count: 0
Partner Churned Count: 0
details actor lacp pdu:
    system priority: 65535
    system mac address: 6c:b3:11:09:05:fa
    port key: 15
    port priority: 255
    port number: 1
    port state: 61
details partner lacp pdu:
    system priority: 32768
    system mac address: 14:51:7e:af:1d:01
    oper key: 1
    port priority: 32768
    port number: 4
    port state: 61

Slave Interface: enp175s0f1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 6c:b3:11:09:06:aa
Slave queue ID: 0
Aggregator ID: 1
Actor Churn State: monitoring
Partner Churn State: monitoring
Actor Churned Count: 0
Partner Churned Count: 0
details actor lacp pdu:
    system priority: 65535
    system mac address: 6c:b3:11:09:05:fa
    port key: 15
    port priority: 255
    port number: 2
    port state: 61
details partner lacp pdu:
    system priority: 32768
    system mac address: 14:51:7e:af:1d:01
    oper key: 1
    port priority: 32768
    port number: 3
    port state: 61

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

石兴稳

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值