[SOLVED] Internal network but no Internet

Discussions about using Linux guests in VirtualBox.
Post Reply
pingpong
Posts: 2
Joined: 15. Aug 2010, 00:35
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Ubuntu

[SOLVED] Internal network but no Internet

Post 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.
Gezza
Posts: 3
Joined: 12. Mar 2009, 11:24

Re: Internal network but no Internet

Post 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
virgil_machine
Posts: 70
Joined: 25. Mar 2009, 19:42
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7, XP Home and Pro, Ubuntu 10.04, 11.04
Location: Cape Cod, MA, USA

Re: Internal network but no Internet

Post by virgil_machine »

I have the same confiiguration, and I got this to work. See http://ubuntuforums.org/showthread.php?t=1553035
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Internal network but no Internet

Post 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 :).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
pingpong
Posts: 2
Joined: 15. Aug 2010, 00:35
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: Internal network but no Internet

Post by pingpong »

Never mind I figured it out by myself!
Post Reply