Skip to content

[BUG] Simplebridge not working with physical interfaces #290

@FletcherJ1

Description

@FletcherJ1

Describe the bug

Running 3 VMs in Hyper-V with MAC spoofing enabled and packets don't seem to be being sent across the bridge. However, the bridge example works using namespaces and virtual adapters. Polycubed log shows the packets being received from both physical interfaces and then flooded on the other interfaces but they don't appear on any network adapter (tcpdump with shadow=true and span=true) as if the packet isn't actually being sent. I've tested bridging with vyOS (a router based on linux) with the same config and it works correctly.

To Reproduce

Steps to reproduce the behavior:
3 VM's running Ubuntu (Linux 4.15.0-96) and 2 virtual private switches in Hyper-V. All running on the same subnet. 2 adapters on the host running polycube using the following commands to setup the bridge:
polycubectl simplebridge add br1 loglevel=trace span=true shadow=true
polycubectl br1 ports add p0 peer=eth0
polycubectl br1 ports add p1 peer=eth1

Expected behavior

Packets are transferred across the bridge from one adapter to the other and vice versa.

Please tell us about your environment:

  1. OS details: cat /etc/*-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=18.04
    DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
    NAME="Ubuntu"
    VERSION="18.04.4 LTS (Bionic Beaver)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 18.04.4 LTS"
    VERSION_ID="18.04"

  2. Kernel details: uname -a
    Linux bridger 4.15.0-96-generic polycubectl: fix autocompletion #97-Ubuntu ....

  3. Polycube Version: polycubectl version
    polycubectl:
    version: -128-NOTFOUND+ [git: (branch/commit): master/cd6e9739]
    polycubed:
    version: -128-NOTFOUND+ [git: (branch/commit): master/cd6e9739]

  4. Polycube Log: Attach the log from /var/log/polycube/polycubed.log
    The log contains this until I stop sending packets or destroy the bridge.
    [2020-04-21 20:52:58.210] [Simplebridge] [br1] [debug] Entry not found for dst-mac: ff:ff:ff:ff:ff:ff
    [2020-04-21 20:52:58.210] [Simplebridge] [br1] [debug] Packet received from port p0
    [2020-04-21 20:52:58.211] [Simplebridge] [br1] [debug] Flooding required: sending packet to controller
    [2020-04-21 20:52:58.211] [Simplebridge] [br1] [debug] Received a pkt in slowpath - reason: FLOODING
    [2020-04-21 20:52:59.067] [Simplebridge] [br1] [debug] Entry not found for dst-mac: ff:ff:ff:ff:ff:ff
    [2020-04-21 20:52:59.067] [Simplebridge] [br1] [debug] Packet received from port p1
    [2020-04-21 20:52:59.067] [Simplebridge] [br1] [debug] Flooding required: sending packet to controller
    [2020-04-21 20:52:59.067] [Simplebridge] [br1] [debug] Received a pkt in slowpath - reason: FLOODING
    [2020-04-21 20:52:59.210] [Simplebridge] [br1] [debug] Entry not found for dst-mac: ff:ff:ff:ff:ff:ff
    [2020-04-21 20:52:59.210] [Simplebridge] [br1] [debug] Packet received from port p0

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions