前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >openvswitch配置端口绑定

openvswitch配置端口绑定

作者头像
力哥聊运维与云计算
发布2019-06-28 11:47:35
1.5K0
发布2019-06-28 11:47:35
举报

openvswitch配置端口绑定

测试环境如下

网络设备 cisco 2960s

服务器 dell r610

操作系统 fedora 15+update

服务器上添加一块intel 82571双端口的网卡,分别接交换机的1口,2口

配置如下

1 交换机配置

interface Port-channel1

switchport trunk allowed vlan 200

switchport mode trunk

!

interface FastEthernet0

no ip address

shutdown

!

interface GigabitEthernet0/1

switchport trunk allowed vlan 200

switchport mode trunk

channel-protocol lacp

channel-group 1 mode active

!

interface GigabitEthernet0/2

switchport trunk allowed vlan 200

switchport mode trunk

channel-protocol lacp

channel-group 1 mode active

!

2 服务器配置

ovs-vsctl add-bond br0 pc p1p1 p1p2

ovs-vsctl -- set port pc lacp=paasive

在交换机上查看

snda-intel-lab-2960s-250# sh int port-channel 1

Port-channel1 is up, line protocol is up (connected)

Hardware is EtherChannel, address is 88f0.77c0.8f01 (bia 88f0.77c0.8f01)

MTU 1500 bytes, BW 2000000 Kbit, DLY 10 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Full-duplex, 1000Mb/s, link type is auto, media type is unknown

input flow-control is off, output flow-control is unsupported

Members in this channel: Gi0/1 Gi0/2

ARP type: ARPA, ARP Timeout 04:00:00

Last input never, output 00:00:00, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

Queueing strategy: fifo

Output queue: 0/40 (size/max)

5 minute input rate 1000 bits/sec, 1 packets/sec

5 minute output rate 2000 bits/sec, 2 packets/sec

1680 packets input, 168447 bytes, 0 no buffer

Received 90 broadcasts (52 multicasts)

0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

0 watchdog, 52 multicast, 0 pause input

0 input packets with dribble condition detected

2293 packets output, 211880 bytes, 0 underruns

0 output errors, 0 collisions, 8 interface resets

0 babbles, 0 late collision, 0 deferred

0 lost carrier, 0 no carrier, 0 PAUSE output

0 output buffer failures, 0 output buffers swapped out

可以看到portchannel已经起来了

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2011-09-15 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档