Hi,
I would like to use the BFD of OVS, BFD would monitor connection between an
ovs internal port and on another host another ovs internal port.
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.
I can't find any documentation if this usecase is supported or not, so
perhaps my assumption is just wrong that BFD can work on OVS internal ports.
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss