【问题标题】:Is it possible to recognize devices connected via Bluetooth through an OpenvSwitch是否可以通过 OpenvSwitch 识别通过蓝牙连接的设备
【发布时间】:2018-11-27 12:19:52
【问题描述】:

我有一个安装了 openvswitch 的树莓派。树莓派上有蓝牙。 openvswitch 连接到 Opendaylight 控制器。

当我将树莓派连接到网络时,我可以看到控制器能够识别这些设备。我还可以通过以太网电缆将其他设备连接到树莓派,在树莓派上配置接口,控制器会识别这些设备。现在我正在尝试对通过蓝牙连接的设备做同样的事情。有没有办法做到这一点?

PS。我试着调查蓝牙 PAN。那是要走的路吗?

【问题讨论】:

  • 蓝牙接口在Linux中是如何出现的?是 ifconfig/ip a 中的另一个接口类型不同吗?
  • @pchaigno 蓝牙接口是完全独立的。据我了解,如果我设置蓝牙 PAN,它将是 ifconfig/ip 中的另一个接口

标签: networking bluetooth raspberry-pi openvswitch


【解决方案1】:

可以connect Bluetooth devices to a Linux bridge。然后,您可以使用 veth 将该 Linux 网桥连接到 Open vSwitch。不过,通过蓝牙连接的设备必须通过蓝牙使用以太网。

创建 veth 对并将其连接到两端:

ip link add veth-linux type veth peer name veth-ovs
ovs-vsctl add-br br-int
ovs-vsctl add-port br-int veth-ovs
brctl addbr br0
brctl addif br0 veth-linux

【讨论】:

    猜你喜欢
    • 2020-01-27
    • 2012-01-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多