I can't for the life of me get the "NAT Network" networking to work for me. See below for details.
Note that if I replace Adapter 1 with one of type "NAT" (instead of "NAT Network"), everything works fine.
Virtualbox 5.1.18
Host: Windows 10 Professional
Host "external IP": 10.17.0.65, netmask 255.255.252.0
Guest: RHEL 6.7
VM Interfaces:
Adapter 1: NAT Network "NatNetwork"
Adapter 2: Host-only Network
Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list natnets
NetworkName: NatNetwork
IP: 10.0.2.1
Network: 10.0.2.0/24
IPv6 Enabled: No
IPv6 Prefix: fd17:625c:f037:2::/64
DHCP Enabled: Yes
Enabled: Yes
loopback mappings (ipv4)
127.0.0.1=2Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list dhcpservers
NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP: 192.168.56.100
NetworkMask: 255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled: Yes
NetworkName: NatNetwork
IP: 10.0.2.1
NetworkMask: 255.0.0.0
lowerIPAddress: 10.0.2.100
upperIPAddress: 10.0.2.200
Enabled: YesCode: Select all
> ifconfig -a
eth1 Link encap:Ethernet HWaddr 00:0C:29:E5:0F:C4
inet addr:10.0.2.100 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::20c:29ff:fee5:fc4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1180 (1.1 KiB) TX bytes:1272 (1.2 KiB)
eth2 Link encap:Ethernet HWaddr 08:00:27:54:71:A8
inet addr:192.168.56.10 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe54:71a8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7669 (7.4 KiB) TX bytes:8822 (8.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:920 (920.0 b) TX bytes:920 (920.0 b)
Code: Select all
> netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
0.0.0.0 10.0.2.1 0.0.0.0 UG 0 0 0 eth1
Code: Select all
> ssh devuser@10.17.0.4
ssh: connect to host 10.17.0.4 port 22: No route to host
I'm at a loss. Does anybody have any ideas?
Maarten