Upon reading documentation and researching, I've found that most articles about bridging networks between a VM and its Host depict a configuration, where the Host is connected to the internet and the guest may not be - or it is using the Host's default routes to get to the internet.
However, what I'm trying to figure out is the configuration for the opposite - where the VM is connected to the internet, but the physical Host whose interface it depends on is intended to use a non-routable IP address to an internal network. It is, however, physically connected through a router which can NAT packets from the 192.168 network to the 172.4 network. Both, host and guest are running CentOS 7. Also, there is only one NIC on the Host (even though the picture might give the appearance of having two).
Here is an example of what I'm trying to achieve:
Code: Select all
+--------------------------------+
+------------------+ 192.168.2.3 | Host machine with bridge |
| Host 192.168.2.2 | ----------------------| +-------------------+ | +---------------+
+------------------+ | | VM 172.4.8.24 |-----|------------| GW 172.4.8.1 |
| +-------------------+ | +---------------+
+--------------------------------+