How to configure a gateway virtual machine

Posted by user225706 on Server Fault See other posts from Server Fault or by user225706
Published on 2014-06-11T01:11:30Z Indexed on 2014/06/11 3:28 UTC
Read the original article Hit count: 441

Filed under:
|
|

I have a VM-host configured with eth0 (10.145.73.207) and eth1(192.168.101.231), and three VMs connecting the Internet through NAT, with the default gateway of 192.168.122.1. Now I want to configure VM2 as a gateway. I added eth0 (192.168.122.63) and eth1 (172.16.1.109) for VM2. It can connect to the Internet with each of them. I changed the default gateway of VM1 from 192.168.122.1 to 192.168.122.63. However, when I traceroute google.com on VM1, it shows that the packet only reaches 192.168.122.63, no further.

Any help is appreciated. Thanks.

© Server Fault or respective owner

Related posts about nat

Related posts about gateway