Page 1 of 1

Connection without router

Posted: 11. Jun 2014, 10:12
by tethys
Hi,

Which Network Settings (attached to) should I use to connect host and guest without going through a router?

I tried more of them and cannot ping between the two. 192.168.1.3 <-> 192.168.1.4

Both are configured as static and I removed 'gateway' from /etc/network/interfaces.

Host: Windows 7
Guest: Ubuntu

Re: Connection without router

Posted: 11. Jun 2014, 11:10
by noteirak
If you mean without a need to be connected to an exisiting network, Host-Only is what you are looking for.

Re: Connection without router

Posted: 11. Jun 2014, 21:28
by tethys
Thanks.

I selected Host-Only rebooted but still cant ping the host, any idea why?

Re: Connection without router

Posted: 11. Jun 2014, 21:57
by noteirak
Please give the full output of a ping test (command + result)

Re: Connection without router

Posted: 12. Jun 2014, 15:07
by tethys
ping 192.168.1.3
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
From 192.168.1.4 icmp_seq=1 Destination Host Unreachable
From 192.168.1.4 icmp_seq=2 Destination Host Unreachable
From 192.168.1.4 icmp_seq=3 Destination Host Unreachable
From 192.168.1.4 icmp_seq=5 Destination Host Unreachable
From 192.168.1.4 icmp_seq=6 Destination Host Unreachable
From 192.168.1.4 icmp_seq=7 Destination Host Unreachable
From 192.168.1.4 icmp_seq=8 Destination Host Unreachable
From 192.168.1.4 icmp_seq=9 Destination Host Unreachable

Re: Connection without router

Posted: 12. Jun 2014, 16:34
by mpack
You need to use an address that's valid on the network you're using. 192.168.1.3 doesn't look like the host-only network to me.

Also, not all hosts repond to pings. For example, AFAIK Win7 doesn't (by default).

And, it's unclear if you're still using static addresses - there's no need for you to be doing so on a host-only network.

Re: Connection without router

Posted: 12. Jun 2014, 19:18
by tethys
I can ping Win7 through the router in bridged mode and with 192.168.1.3.

What do you mean its not an address valid?

I have to use static address because there is no DHCP server. But anyway I dont see what would it matter?

Re: Connection without router

Posted: 12. Jun 2014, 19:32
by mpack
I mean that a PC doesn't have only one IP address, it has one for every separate TCP/IP network it's connected to.

In your case the network you're bridging to is quite separate from the host-only network. The host certainly shouldn't be using the same IP address on both networks.

And, the host-only mode has its own DHCP server, which is why you have no need to use static addressing on that network.

I think it might be worth your while to read the virtual networking chapter of the VBox user manual.

Re: Connection without router

Posted: 12. Jun 2014, 20:02
by tethys
Thank you, I understand better now.

I found it.

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::4da7:8a1c:550f:e13e%20
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :