[ovs-discuss] BFD configuration question

Lajos Katona katonalala at gmail.com
Thu Apr 22 12:02:35 UTC 2021


Hi,

Sorry for disturbing with my question again, and on ovs-dev as well, but
got the advice to resend it to a wider audience.

I would like to use BFD of OVS,
My test environment contains 2 VMs (Ubuntu 20.04, ovs_version: "2.13.1" ).
My idea was to create one bridge on both hosts, call it br1 add one of the
NICs of the vm (ens5 in my case) and add another internal port (port1)
enable BFD on port1 on both side, and expecting that "state" and
"remote_state" both up.

$ sudo ovs-vsctl show
c86a02e5-1581-4105-a2a3-c037a82ac07b
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br1
        Port port1
            Interface port1
                type: internal
        Port br1
            Interface br1
                type: internal
        Port ens5
            Interface ens5

$ sudo ovs-ofctl dump-flows br1
 cookie=0x0, duration=97300.373s, table=0, n_packets=55357,
n_bytes=22244494, priority=0 actions=NORMAL

$ ip -o l
3: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master
ovs-system state UP mode DEFAULT group default qlen 1000\    link/ether
52:54:00:d3:a2:03 brd ff:ff:ff:ff:ff:ff
23: br1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
group default qlen 1000\    link/ether 1e:79:bf:1e:a6:4f brd
ff:ff:ff:ff:ff:ff
25: port1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
UNKNOWN mode DEFAULT group default qlen 1000\    link/ether
2e:5a:c8:cc:ad:25 brd ff:ff:ff:ff:ff:ff

$ ip -o a
3: ens5    inet6 fe80::5054:ff:fed3:a203/64 scope link \       valid_lft
forever preferred_lft forever
25: port1    inet 192.168.222.53/24 brd 192.168.222.255 scope global
dynamic port1\       valid_lft 2470sec preferred_lft 2470sec
25: port1    inet6 fe80::2c5a:c8ff:fecc:ad25/64 scope link \
valid_lft forever preferred_lft forever

$ sudo ovs-vsctl set interface port1 bfd:bfd_src_ip=192.168.222.53
bfd:bfd_dst_ip=192.168.222.105 bfd:enable=true

However something is missing. I can tcpdump BFD packets on port1, but they
never reach the other host.

If I set BFD on ens5 it works as expected. Could you please help me what I
am missing?

Thanks in advance for the help.

Regards
Lajos Katona
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20210422/66b003f1/attachment.html>


More information about the discuss mailing list