Page 1 of 1

[SOLVED] Internal network but no Internet

Posted: 15. Aug 2010, 01:23
by pingpong
Hi Guys,
I completely ran out of ideas on how to tackle this issue. And last time I tried to bridge I lost connection to my remote host ...
If you can help that would be great. :roll:

What im looking for is using one of the internet ip's that connect to my HOST (e.g 10.10.10.4) as static IP for my VM.
I would like to run a webserver form that VM.

Host: Ubuntu Lucid 10.04 - 64but
Virtualbox: 3.2.8
NO DNS or DHCP on OS
VM network Setup = Bridged and attached to eth0

Host Ifconfig:
eth0 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:10.10.9.4 Bcast:10.10.9.31 Mask:255.255.255.224
inet6 addr: fe40::21b:18ff:fe14:9b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1069038 errors:0 dropped:0 overruns:0 frame:0
TX packets:583454 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1492756701 (1.4 GB) TX bytes:110675118 (110.6 MB)

eth0:1 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:10.10.19.1 Bcast:10.10.10.5 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0:2 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:10.10.19.2 Bcast:10.10.10.5 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0:3 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:10.10.19.3 Bcast:10.10.10.5 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0:4 Link encap:Ethernet HWaddr 00:1b:34:14:89:b3
inet addr:
10.10.19.4 Bcast:10.10.19.5 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1



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:16436 Metric:1
RX packets:150146 errors:0 dropped:0 overruns:0 frame:0
TX packets:150146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:50285353 (50.2 MB) TX bytes:50285353 (50.2 MB)


Guest: Ubuntu Lucid 10.04 - 32bit
Guest Ifconfig (static ip configured in /network/interfaces):

eth0 Link encap:Ethernet HWaddr 00:8b:31:88:51:f3
inet addr:10.10.9.4 Bcast:10.10.10.31 Mask:255.255.255.224
inet6 addr: fe40::81b:78fr:ft14:9b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1



So far this is what I tried:
On the HOST I removed the orange part from /etc/network/interfaces and restarted ined.d/networking (I read somewhere that you have to release the ip...)
Then in virtualbox I setup the VM in bridge mode and selected eth0 (only option)

After I started the VM and changed /etc/network/interfaces to:
static ip 10.10.10.4
submask 255.255.255.248
network 10.10.19.0
broadcast 10.10.19.5
gateway 10.10.19.1

Restarted ined.d/networking ....
The good thing is that I can ping the HOST form VM and vice versa but VM cannot ping google.com
HOST is connected to the internet and everything works fine.

Your input would be highly appreciated guys! Thanks in advance.

Re: Internal network but no Internet

Posted: 15. Aug 2010, 03:57
by Gezza
Hi All, pingpong and Dev's
I have tried to run 3.2.8 but also have no DNS numbers so I am back with 3.2.6.
Gezza

Re: Internal network but no Internet

Posted: 15. Aug 2010, 20:35
by virgil_machine
I have the same confiiguration, and I got this to work. See http://ubuntuforums.org/showthread.php?t=1553035

Re: Internal network but no Internet

Posted: 15. Aug 2010, 21:57
by Sasquatch
pingpong:
You make one vital configuration error. You give the Guest and Host the same IP address (10.10.9.4). This will cause conflicts and network traffic will therefore be dropped or both systems shut down their interface. Either way, it won't work and is the reason you lost your Host network connection.

Gezza:
VB doesn't provide DNS services, so you have no reason to go back to 3.2.6 after upgrading to 3.2.8. If you experience network problems, then you need to check the settings of the affected systems.

Virgil:
I posted some information on your thread there. It seems you don't fully understand the way networking is done on Linux. All in due time :).

Re: Internal network but no Internet

Posted: 18. Aug 2010, 00:50
by pingpong
Never mind I figured it out by myself!