I suspect the carrier down may be caused by the remote end where the 2 slave 
links are connected. That may explain why, once you bring up BondEthernet0, the 
carriers on the slaves go down.  Please make sure your remote end are also 
setup properly with the correct link bonding modes, etc.   -John

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of xulang
Sent: Saturday, March 03, 2018 1:19 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] bond carrier down

Hi all,
I have encounterd carrier state problem on bond interface, any idea?

Here are my version info:
vppctl show version
vpp v17.04-release built by root on ubuntu at Fri May  5 03:06:25 PDT 2017

Here is my dpdk config:
vdev eth_bond0,mode=2,slave=0000:02:09.0,slave=0000:02:01.0,xmit_policy=l34

Here is int state:
vppctl show int
              Name               Idx       State          Counter          Count
BondEthernet0                     4        down
GigabitEthernet2/1/0              1     bond-slave
GigabitEthernet2/9/0              2     bond-slave
GigabitEthernet2/a/0              3        down
local0                            0        down

vppctl show hardware-interfaces
              Name                Idx   Link  Hardware
BondEthernet0                      4    down  Slave-Idx: 1 2
  Ethernet address 00:0c:29:82:90:c1
  Ethernet Bonding
    carrier down
    rx queues 1, rx desc 1024, tx queues 1, tx desc 1024
    cpu socket 0

GigabitEthernet2/1/0               1    slave GigabitEthernet2/1/0
  Ethernet address 00:0c:29:82:90:c1
  Intel 82540EM (e1000)
    carrier up full duplex speed 1000 mtu 9216
    rx queues 1, rx desc 1024, tx queues 1, tx desc 1024

GigabitEthernet2/9/0               2    slave GigabitEthernet2/9/0
  Ethernet address 00:0c:29:82:90:c1
  Intel 82540EM (e1000)
    carrier up full duplex speed 1000 mtu 9216
    rx queues 1, rx desc 1024, tx queues 1, tx desc 1024

GigabitEthernet2/a/0               3    down  GigabitEthernet2/a/0
  Ethernet address 00:0c:29:82:90:cb
  Intel 82540EM (e1000)
    carrier up full duplex speed 1000 mtu 9216
    rx queues 1, rx desc 1024, tx queues 1, tx desc 1024

Then after I koncked into cmd "vppctl set int state BondEthernet0 up"
vppctl show hardware-interfaces
              Name                Idx   Link  Hardware
BondEthernet0                      4    down  Slave-Idx: 1 2
  Ethernet address 00:0c:29:82:90:c1
  Ethernet Bonding
    carrier down
    rx queues 1, rx desc 1024, tx queues 1, tx desc 1024
    cpu socket 0

    rx frames ok                                         232
    rx bytes ok                                        15607
    extended stats:
      rx good packets                                    232
      rx good bytes                                    15607
GigabitEthernet2/1/0               1    slave GigabitEthernet2/1/0
  Ethernet address 00:0c:29:82:90:c1
  Intel 82540EM (e1000)
    carrier down
    rx queues 1, rx desc 1024, tx queues 1, tx desc 1024

GigabitEthernet2/9/0               2    slave GigabitEthernet2/9/0
  Ethernet address 00:0c:29:82:90:c1
  Intel 82540EM (e1000)
    carrier down
    rx queues 1, rx desc 1024, tx queues 1, tx desc 1024

    rx frames ok                                         232
    rx bytes ok                                        15607
    extended stats:
      rx good packets                                    232
      rx good bytes                                    15607
GigabitEthernet2/a/0               3    down  GigabitEthernet2/a/0
  Ethernet address 00:0c:29:82:90:cb
  Intel 82540EM (e1000)
    carrier up full duplex speed 1000 mtu 9216
    rx queues 1, rx desc 1024, tx queues 1, tx desc 1024

Regards,
xulang




Reply via email to