Internet and Internal Network Together?
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Internet and Internal Network Together?
Ok I'm a real noob with Linux but am very fairly familiar with Hyper-V..
I'm using VirtualBox 3.2.8 & Ubuntu 10.04 LTS Guest on Window7 and Windows Vista 32bit Hosts
My question is how on earth does one set up local networking and have internet access as well, without jeopardizing the host internet connection using a bridge??
If I configure adapter 1 to "NAT" using any adapter type I get an internet connection. No issue there (i think) except there is no local connection to browse local shares.
If I configure adapter 1 to "internal" using any adapter type I get local networking but no internet.
if I configure a bridge of any kind I get local shares but no internet on the guest and the Host.
So I'm stumped!! Any ideas??
I'm using VirtualBox 3.2.8 & Ubuntu 10.04 LTS Guest on Window7 and Windows Vista 32bit Hosts
My question is how on earth does one set up local networking and have internet access as well, without jeopardizing the host internet connection using a bridge??
If I configure adapter 1 to "NAT" using any adapter type I get an internet connection. No issue there (i think) except there is no local connection to browse local shares.
If I configure adapter 1 to "internal" using any adapter type I get local networking but no internet.
if I configure a bridge of any kind I get local shares but no internet on the guest and the Host.
So I'm stumped!! Any ideas??
-
pgh
- Posts: 31
- Joined: 4. May 2009, 16:00
- Primary OS: Other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Plenty
- Location: Coruscant
Re: Internet and Internal Network Together?
Set one adapter to host-only and a second adapter to NAT.
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Internet and Internal Network Together?
Thanks I've been attempting this without success 
this is where I'm at now, internet-ok, lan-not yet
ifconfig -a
eth3 Link encap:Ethernet HWaddr 08:00:27:1e:b9:8a
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00
fe1e:b98a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:99 errors:0 dropped:0 overruns:0 frame:0
TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16796 (16.7 KB) TX bytes:17936 (17.9 KB)
Interrupt:10 Base address:0xd020
eth4 Link encap:Ethernet HWaddr 08:00:27:5e:41:d2
inet addr:192.168.56.103 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00
fe5e:41d2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:192 errors:0 dropped:0 overruns:0 frame:0
TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21539 (21.5 KB) TX bytes:14341 (14.3 KB)
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:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8146 (8.1 KB) TX bytes:8146 (8.1 KB)
this is where I'm at now, internet-ok, lan-not yet
ifconfig -a
eth3 Link encap:Ethernet HWaddr 08:00:27:1e:b9:8a
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:99 errors:0 dropped:0 overruns:0 frame:0
TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16796 (16.7 KB) TX bytes:17936 (17.9 KB)
Interrupt:10 Base address:0xd020
eth4 Link encap:Ethernet HWaddr 08:00:27:5e:41:d2
inet addr:192.168.56.103 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:192 errors:0 dropped:0 overruns:0 frame:0
TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21539 (21.5 KB) TX bytes:14341 (14.3 KB)
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:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8146 (8.1 KB) TX bytes:8146 (8.1 KB)
-
pgh
- Posts: 31
- Joined: 4. May 2009, 16:00
- Primary OS: Other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Plenty
- Location: Coruscant
Re: Internet and Internal Network Together?
Looks to me like it is working the tx and rx bits say that it is. Why do you think it is not working?
What are you wanting to do and how are you expecting it to do what ever it is that you are wanting to do?
Have you checked for a firewall problem on the vista side and did you setup iptables on the Linux side?
What are you wanting to do and how are you expecting it to do what ever it is that you are wanting to do?
Have you checked for a firewall problem on the vista side and did you setup iptables on the Linux side?
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Internet and Internal Network Together?
Thanks for the reply
iptables you mean like routing tables?? No
have disabled all internal firewalls.
Remember I can access the network and browse network shares if the NAT adapter in not installed, but this leaves me withought an internet connection
It's not working as expected since I can't access or browse any network shares which there are many, when the internet is also available
iptables you mean like routing tables?? No
have disabled all internal firewalls.
Remember I can access the network and browse network shares if the NAT adapter in not installed, but this leaves me withought an internet connection
It's not working as expected since I can't access or browse any network shares which there are many, when the internet is also available
-
pgh
- Posts: 31
- Joined: 4. May 2009, 16:00
- Primary OS: Other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Plenty
- Location: Coruscant
Re: Internet and Internal Network Together?
By network do you mean other than your host PC?
Do you have a router?
Is this wired or wireless?
Do you have a router?
Is this wired or wireless?
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Internet and Internal Network Together?
By network i mean both the Host and other shares across the home network. So far have never seen shares beyond the host despite all shares identified and selected in Virtual Box Shared Folders List as being available to the guest with read only access. Host shares only are visible after removal of the NAT adapter.pgh wrote:By network do you mean other than your host PC?
Do you have a router?
Is this wired or wireless?
Yes I have a router and a switch and have tried both allowing the VB adapters access and also disabled all blocking filters.
The host is hard wired to the router.
VB adapter list now with the Intel adapter (and have changed order in case of a priority issue but still no joy)
-
pgh
- Posts: 31
- Joined: 4. May 2009, 16:00
- Primary OS: Other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Plenty
- Location: Coruscant
Re: Internet and Internal Network Together?
Since you have a router then you should be able to do everything using one adapter connection set to Bridged.
This connection will appear to be just another computer in the local network.
The only other way that I can think of off hand that would allow this to work without using a Bridge is to setup another guest and use it as a router, but that makes things harder than just using the Bridge. Then you could setup a local connection (Internal) and use ICS (Windows) for the guests to get to the Internet. Is there a reason that you do not want to use Bridged? You stated that you did not want to use Bridged due to jeopardizing the host Internet connection using a bridge. Can you explain this a little better? I have Bridged setup and don't seem to have any problems. Is it for security or does it not work when you select Bridged as your only adapter?
This connection will appear to be just another computer in the local network.
The only other way that I can think of off hand that would allow this to work without using a Bridge is to setup another guest and use it as a router, but that makes things harder than just using the Bridge. Then you could setup a local connection (Internal) and use ICS (Windows) for the guests to get to the Internet. Is there a reason that you do not want to use Bridged? You stated that you did not want to use Bridged due to jeopardizing the host Internet connection using a bridge. Can you explain this a little better? I have Bridged setup and don't seem to have any problems. Is it for security or does it not work when you select Bridged as your only adapter?
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Internet and Internal Network Together?
Thanks again for the quick reply
Yes I agree and I'm already back to one adapter. Have been using the NAT on PCnet-Fast III adapter, Have internet access however no luck on accessing any network shares despite being able to ping all addresses available on the network including the Network Attached Storage (which is my goal btw).
Each time I attempt to bridge with my host adapter the Host looses internet connectivity
lol I just figured out I'd been bridging unnecessarily in windows the host adapter to the host only adapter previously DOH!! ok got the host adapter bridged in VB and internet connectivity is back on Host and Guest, unfortunately still no network browsing or shared folders available
The Guest network adapter is visible from the router by name, MAC and IP address
Yes I agree and I'm already back to one adapter. Have been using the NAT on PCnet-Fast III adapter, Have internet access however no luck on accessing any network shares despite being able to ping all addresses available on the network including the Network Attached Storage (which is my goal btw).
Each time I attempt to bridge with my host adapter the Host looses internet connectivity
The Guest network adapter is visible from the router by name, MAC and IP address
-
pgh
- Posts: 31
- Joined: 4. May 2009, 16:00
- Primary OS: Other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Plenty
- Location: Coruscant
Re: Internet and Internal Network Together?
VirtualBox has for sometime been able to create the Bridge without any manual settings in the Windows Host.
I would suggest that you might need to do a cold boot of the host & guest. Sometimes network cards do not release the connections on warm boots.
Make sure that you have cleaned up all the network changes in the host and try again. As I said if the VirtualBox Bridged is setup and you do not block it via a firewall your guest will appear as a normal computer on the network. Either DHCP or static addressing as long as it is in the same subnet.
I would suggest that you might need to do a cold boot of the host & guest. Sometimes network cards do not release the connections on warm boots.
Make sure that you have cleaned up all the network changes in the host and try again. As I said if the VirtualBox Bridged is setup and you do not block it via a firewall your guest will appear as a normal computer on the network. Either DHCP or static addressing as long as it is in the same subnet.
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Internet and Internal Network Together?
A'aaaaaaaah:!::!:
Now VB set up using a single adapter, using PCnet-FAST III, bridged with the host adapter thanks
Network device: eth6
Hardware address: 08:00:27:18:f8:0f
Multicast: Enabled
MTU: 1500
Link speed: not available
State: Active
Transmitted packets: 58
Transmission errors: 0
Received packets: 121
Reception errors: 0
Collisions: 0
I'm sure this whole issue has started from the lack of installed basic networking features in Ubuntu 10. As it stands now, I have internet connectivity and a shared folder on my Ubuntu desktop visible and accessable from any other windows PC. Yet I'm still at a road block being completely unable to access any pc or nas on the entire network from the Virtual Ubuntu installation
I'm sure this error is not helping! without even a hint to what might be needed

PS. I had no idea PUEL & OSE were licensing differences not version differences as assumed in the User Profile. Also I find it hard to believe there are no provisions for multiple Host and Guest OS's in the User Profile, Oh well!
Now VB set up using a single adapter, using PCnet-FAST III, bridged with the host adapter thanks
Network device: eth6
Hardware address: 08:00:27:18:f8:0f
Multicast: Enabled
MTU: 1500
Link speed: not available
State: Active
Transmitted packets: 58
Transmission errors: 0
Received packets: 121
Reception errors: 0
Collisions: 0
I'm sure this whole issue has started from the lack of installed basic networking features in Ubuntu 10. As it stands now, I have internet connectivity and a shared folder on my Ubuntu desktop visible and accessable from any other windows PC. Yet I'm still at a road block being completely unable to access any pc or nas on the entire network from the Virtual Ubuntu installation
I'm sure this error is not helping! without even a hint to what might be needed
PS. I had no idea PUEL & OSE were licensing differences not version differences as assumed in the User Profile. Also I find it hard to believe there are no provisions for multiple Host and Guest OS's in the User Profile, Oh well!
-
pgh
- Posts: 31
- Joined: 4. May 2009, 16:00
- Primary OS: Other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Plenty
- Location: Coruscant
Re: Internet and Internal Network Together?
To be able to network share from Linux you need to install the samba package. This is not Windows.
Also with all of the work you have done so far it is more than likely possible that you are now working with eth6 or greater. You can get this back to eth0 by deleting /etc/udev/rules.d/70-persistent-net.rules file and Linux will configure it on the next boot.
From the looks of it now you are to where it is a Linux configuration issue. If you are not familiar with Ubuntu you should read up on their help pages to see how and what to install.
Also with all of the work you have done so far it is more than likely possible that you are now working with eth6 or greater. You can get this back to eth0 by deleting /etc/udev/rules.d/70-persistent-net.rules file and Linux will configure it on the next boot.
From the looks of it now you are to where it is a Linux configuration issue. If you are not familiar with Ubuntu you should read up on their help pages to see how and what to install.
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Internet and Internal Network Together?
Update
By using the single bridged adapter using the PCnet-FAST III adapter type, there is now full LAN and Internet connectivity. Thanks for your help guys.
The issue of not being able to browse the network shares still exists however I'm able to connect via an IP address to any PC and NAS on the LAN and save the connection as a bookmark. This must be an Ubuntu issue so i'll derect my questions over there
Thanks again for your quick responses, I'm extremely grateful as my Linux skills are 0
nuube
By using the single bridged adapter using the PCnet-FAST III adapter type, there is now full LAN and Internet connectivity. Thanks for your help guys.
The issue of not being able to browse the network shares still exists however I'm able to connect via an IP address to any PC and NAS on the LAN and save the connection as a bookmark. This must be an Ubuntu issue so i'll derect my questions over there
Thanks again for your quick responses, I'm extremely grateful as my Linux skills are 0
nuube
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Internet and Internal Network Together?
Ok just had a crash course in Elevating privileges while using commands at the terminal !! but the net file you mentioned earlier is now deleted
Thanks for the tip
Thanks for the tip
-
nuube
- Posts: 12
- Joined: 21. Aug 2010, 01:45
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Internet and Internal Network Together?
Ok another update!
Deleted the Ubuntu virtual machine and re-installed as it was easier than attempting to cleanup my mess
With a single network connection using NAT on the Intel Pro/1000 MT Desktop (the Default) I am back to square one, able to connect to the internet and to local shares (only by connecting via an IP address) Still no browsing of the LAN
However the error above re Personal File Sharing Preferences is resolved by installing these packages from the console:
sudo apt-get install apache2.2-bin
sudo apt-get install libapache2-mod-dnssd
Deleted the Ubuntu virtual machine and re-installed as it was easier than attempting to cleanup my mess
However the error above re Personal File Sharing Preferences is resolved by installing these packages from the console:
sudo apt-get install apache2.2-bin
sudo apt-get install libapache2-mod-dnssd