Following the following steps to connect two ovs-bridges:
1. Create two devices using veth type:
ip link add dev "int-to-prov" type veth peer name "prov-to-int"
2. Add int-to-prov port to br-int , set the type to be patch and peer altogether using the following
two different methods:
ovs-vsctl add-port br-int int-to-prov
ovs-vsctl set interface int-to-prov type=patch
ovs-vsctl set interface int-to-prov options:peer=prov-to-int
or
ovs-vsctl add-port br-int int-to-prov -- set interface int-to-prov type=patch options:peer=prov-to-int
3. Add the other port to the second bridge:
ovs-vsctl add-port br-provider prov-to-int -- set interface prov-to-int type=patch options:peer=int-to-prov
4. Now bring both ports up:
ip link set dev prov-to-int up
ip link set dev int-to-prov up
No comments:
Post a Comment