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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值