I am trying to implement tunneling as described here with the following setup (without any success):
ho1
is a host only interface. I want to connect Nested Guest 11
and Nested Guest 21
.
I have read some other tutorials like:
https://blog.scottlowe.org/2013/05/07/using-gre-tunnels-with-open-vswitch/
http://networkstatic.net/open-vswitch-gre-tunnel-configuration/
but I'm clearly missing something. I think I'm doing something wrong with those tap
devices used here.
UPDATE
Guest1 (network interfaces)
lo UNKNOWN 127.0.0.1/8 ::1/128
ens33 UP 192.168.41.140/24 fe80::4f54:fbff:6d87:b5a7/64
ens34 UP 192.168.239.128/24 fe80::761f:aa88:a28a:aeba/64
virbr1 DOWN 192.168.100.1/24
virbr1-nic DOWN
virbr0 DOWN 192.168.122.1/24
virbr0-nic DOWN
virbr2 DOWN 192.168.10.1/24
virbr2-nic DOWN
vboxnet0 UP 192.168.56.1/24 fe80::800:27ff:fe00:0/64
ovs-system DOWN
br0 DOWN
tap0 DOWN 10.1.1.1/8 fe80::9401:52ff:fe46:86e6/64
br1 DOWN
ovs-vsctl show
(I have removed other ports right now)
Bridge br1
Port br1
Interface br1
type: internal
Bridge br0
Port br0
Interface br0
type: internal
ovs_version: "2.15.0"
According to this I should add a tap interface to br0
, this command: ovs-vsctl add-port br0 tap0
. I created tap0
with this command: ip tuntap add mode tap tap0
. Here is the problem. I don't know what IP address I should use for the tap, or should I even assign it an address? and then how to connect it to the nested guest. I use VirtualBox for the nested guests and I tired to attach to bridge adapter on VirtualBox. In this case the nested guest didn't get and IP address.
Another thing that I don't understand from the picture here, is that how br0
is connected to the outside world (transport network) if I don't add eth0
to br0
?
UPDATE 2
I also tried to use hostonly interface vboxnetX
for the nested guest. In this case the nested guest had an IP address but when I added vboxnetX
to br0
I lost connection between the guest and the nested guest.