Cannot access guest from host
Posted: 26. Oct 2015, 23:37
Hi,
I have created two networks on my mac, a natnetwork and a hostonly network.
The natnetwork works fine, guests can access the internet and establish ssh to othwer guests.
The host does not participate in the natnetwork so it cannot reach the guest and vise versa.
To enable the host to reach the guest i created a hostonly network. The guest has an network adapter on the hostonly network and has received an ip-address in the 172.16.0.0/12 network, 172.16.55.1.
I am only not able to establish an ssh session from the host to the guest.
Some details;
Virtualbox 5.0.6
# natnetwork
VBoxManage natnetwork add --netname NatNetwork --network "10.211.0.0/8" --enable --dhcp on
VBoxManage dhcpserver add --netname NatNetwork --ip 10.0.0.3 --lowerip 10.211.55.1 --upperip 10.211.55.50 --netmask 255.0.0.0
VBoxManage dhcpserver modify --netname NatNetwork --enable
# hostonly network
VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig vboxnet0 --ip 172.16.0.1
VBoxManage dhcpserver add --ifname vboxnet0 --ip 172.16.0.3 --lowerip 172.16.55.1 --upperip 172.16.55.60 --netmask 255.240.0.0
VBoxManage dhcpserver modify --ifname vboxnet0 --enable
Any suggestions, ideas, hints ?
Cheers,
Peter
I have created two networks on my mac, a natnetwork and a hostonly network.
The natnetwork works fine, guests can access the internet and establish ssh to othwer guests.
The host does not participate in the natnetwork so it cannot reach the guest and vise versa.
To enable the host to reach the guest i created a hostonly network. The guest has an network adapter on the hostonly network and has received an ip-address in the 172.16.0.0/12 network, 172.16.55.1.
I am only not able to establish an ssh session from the host to the guest.
Some details;
Virtualbox 5.0.6
# natnetwork
VBoxManage natnetwork add --netname NatNetwork --network "10.211.0.0/8" --enable --dhcp on
VBoxManage dhcpserver add --netname NatNetwork --ip 10.0.0.3 --lowerip 10.211.55.1 --upperip 10.211.55.50 --netmask 255.0.0.0
VBoxManage dhcpserver modify --netname NatNetwork --enable
# hostonly network
VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig vboxnet0 --ip 172.16.0.1
VBoxManage dhcpserver add --ifname vboxnet0 --ip 172.16.0.3 --lowerip 172.16.55.1 --upperip 172.16.55.60 --netmask 255.240.0.0
VBoxManage dhcpserver modify --ifname vboxnet0 --enable
Any suggestions, ideas, hints ?
Cheers,
Peter