[ovs-discuss] 回复: help: about ovs bond configure
杜海涛
autolocaer at vip.qq.com
Fri Apr 10 02:25:39 UTC 2015
anybody know about it? please tell me how to modify it .
------------------ åå§é®ä»¶ ------------------
å件人: "ææµ·æ¶";<jeff.tu at qq.com>;
åéæ¶é´: 2015å¹´4æ9æ¥(ææå) ä¸å12:41
æ¶ä»¶äºº: "discuss"<discuss at openvswitch.org>;
主é¢: [ovs-discuss] help: about ovs bond configure
hi everybody,
I want to ask a question about ovs bond.please help me if you know it.
i am a newbie for learning openvswitch,recently i got a problem when i config ovs bond.
some detail as follow:
my system version is centos7 ,kernel is 3.10.0-123.20.1.el7.x86_64. i already config physical switch LACP .
----
[root at host26 network-scripts]# uname -r
3.10.0-123.20.1.el7.x86_64
[root at host26 network-scripts]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)â
------
â I want to bind multiple network interfaces(such as p2p1 and p3p1) together into a single,simultaneouslyâ
increasing the bandwidth and providing redundancy.â
my config files is:
[root at host26 network-scripts]# less ifcfg-ovsbr0
DEVICE=ovsbr0
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
IPV6INIT=no
IPADDR=172.18.10.42 #another server is 172.18.10.43
TYPE=OVSBridge
DEVICETYPE=ovs
HOTPLUG=noâ
[root at host26 network-scripts]# less ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
IPV6INIT=no
OVS_BRIDGE=ovsbr0
TYPE=OVSBond
BOND_IFACES="p2p1 p3p1"
OVS_OPTIONS="bond_mode=balance-tcp lacp=active other_config:lacp-time=fast"
HOTPLUG=noâ
[root at host26 network-scripts]# less ifcfg-p2p1
DEVICE=p2p1
TYPE=Ethernet
ONBOOT=yes
HOTPLUG=noâ
[root at host26 network-scripts]# less ifcfg-p3p1
DEVICE=p3p1
TYPE=Ethernet
ONBOOT=yes
HOTPLUG=noâ
when i restart network
[root at host26 network-scripts]# ovs-vsctl show
60792242-29d8-4686-9cf5-1ea6cf99bc21
Bridge "ovsbr0"
Port "ovsbr0"
Interface "ovsbr0"
type: internal
Port "bond0"
Interface "p3p1"
Interface "p2p1"
ovs_version: "2.0.0"â
[root at host26 network-scripts]# ovs-appctl bond/show
---- bond0 ----
bond_mode: balance-tcp
bond-hash-basis: 0
updelay: 0 ms
downdelay: 10 ms
next rebalance: 806 ms
lacp_status: negotiated
slave p2p1: enabled
active slave
may_enable: true
hash 143: 0 kB load
slave p3p1: enabled
may_enable: true
hash 133: 0 kB loadâ
root at host26 network-scripts]# ovs-appctl lacp/show
---- bond0 ----
status: active negotiated
sys_id: 00:0a:f7:75:ca:60
sys_priority: 65534
aggregation key: 1
lacp_time: fast
slave: p2p1: current attached
port_id: 2
port_priority: 65535
may_enable: true
actor sys_id: 00:0a:f7:75:ca:60
actor sys_priority: 65534
actor port_id: 2
actor port_priority: 65535
actor key: 1
actor state: activity timeout aggregation synchronized collecting distributing
partner sys_id: 64:3e:8c:41:2d:50
partner sys_priority: 0
partner port_id: 3
partner port_priority: 32768
partner key: 9025
partner state: activity aggregation synchronized collecting distributing
slave: p3p1: current attached
port_id: 1
port_priority: 65535
may_enable: true
actor sys_id: 00:0a:f7:75:ca:60
actor sys_priority: 65534
actor port_id: 1
actor port_priority: 65535
actor key: 1
actor state: activity timeout aggregation synchronized collecting distributing
partner sys_id: 64:3e:8c:41:2d:50
partner sys_priority: 0
partner port_id: 6
partner port_priority: 32768
partner key: 9025
partner state: activity aggregation synchronized collecting distributingâ
my second server is 172.18.10.43, full same config as above just ip address!!
when i use iperf3 and ping to test the bandwidth,as follow:
i found the bandwidth is increasing,exceed one nic's throughput , but problem is coming. when i down one of the physical nic,the network is interrupt about one minutes,in other words,it's can't providing redundancy normally,how can i change this config to âsatisfy my âpurpose. â
I look forward to your early reply,thank you very much.â
sincerely
â
2015.4.9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20150410/2896c155/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: B3C6A6F3 at 1CDE0B75.A3342755
Type: application/octet-stream
Size: 22726 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/discuss/attachments/20150410/2896c155/attachment-0001.obj>
More information about the discuss
mailing list