GUEST CentOS VM (VirtualBox):
[root@localhost network-scripts]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 * 255.255.255.0 U 0 0 0 eth0
10.0.4.0 * 255.255.255.0 U 0 0 0 eth2
link-local * 255.255.0.0 U 1002 0 0 eth0
link-local * 255.255.0.0 U 1003 0 0 eth1
link-local * 255.255.0.0 U 1004 0 0 eth2
192.168.56.0 * 255.255.255.0 U 0 0 0 eth1
The interface on the 10.0.2.0/24 network and on the 10.0.4.0/24 network have been configured with NAT, while the interface on the 192.168.56.0/24 network has been configured as host-only. When I connect to the internet I think I am connecting through the 10.0.2.0 network - is there a way to verify this? Also I am not sure where the 10.0.2.2 gateway came from..I cannot ping 10.0.2.1 as I thought that should be the gateway.
Secondly after adding the 10.0.4.0 network, is there a way to connect to the internet through this? What would the gateway be? 4.1 doesn't work.
I apologise if the questions are unclear, I am confused which commands to use/direction to go to figure out information.