I've some problem connecting my virtual machine to my internet. Can I use another gateway ip address other then my subnet ip address? The gateway ip address is from my router ip address? My problem is that the vmnet8 dhcp server isn't started automatically. When I want to connect my virtual machine I need to restart the vmnet8 dhcp server everytime when I start my virtual machine?
2 Answers
No, you cannot. The gateway IP tells the system how to get to another subnet, and without it, packets won't leave the current subnet.
A computer only knows how to talk to the other computers that are directly connected on the same subnet. A gateway is a "default route" which specifies where packets should be sent by default if they are not destined for somewhere on the local subnet.
1It is possible, if you define a static route to the default gateway.
This router has to be on your subnet. This doesn't make it your default gateway.
2