openvswitch配置端口绑定

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已经起来了

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

扫码关注云+社区

领取腾讯云代金券