IP block we want to use on server B: 171.32.42.128/29
Internal IP Block used for communication: 10.0.0.0/30
Bridge interface server B: br0
Server B
- Setup the GRE tunnel on server B.
- Enable IP forwarding. [only execute once]
- Route data from the GRE tunnel to the bridge and back.
You should be able to ping server A from server B.
To configure netplan, save configuration files under /etc/netplan/ with a .yaml extension (e.g. /etc/netplan/config.yaml),
then run sudo netplan apply. This command parses and applies the configuration to the system. Configuration written to disk under /etc/netplan/ will persist between reboots.
Example file contents : /etc/netplan/01-netcfg.yaml
Note: You will need the bridge-utils package installed on your server
- Add the following lines to the netplan file on the same level as “ethernets”
Use the following network config in the adapter of your VM:
We recommend setting the MTU of the bridge / VM network interface to 1476 as otherwise packet fragmentation may occur.
That’s it! Configure the network bridge and IPs in Virtfusion. On a server restart all the things we did will be wiped out. To make sure the GRE tunnel and everything else is going to work after a restart we have to edit the file /etc/rc.local and add all the commands we did (except for the echo ones!) before the exit 0.