LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2010, 04:18 AM   #1
Ramesh922
LQ Newbie
 
Registered: Jun 2009
Posts: 13

Rep: Reputation: 0
Vbox +Ubuntu 9.10 server ver Net problem [Nat+Bridge]|


Virtual Box
in "VB host only Ethernet adapeter mode" i am able to communicate with Vbox via WinSCP and browser(ip address)

BUT when i switch to Bridge mode/NAT (pref bridge) in Vbox i am unable to get external internet access [to install app's from internet




Current host config
XP
Dynamic IP
host subnet 255.255.255.0
Host gateway 192.168.1.1
ip 192.168.1.2(assigned by DHCP)
using Brodband modem 512Kbps


Vbox ubuntu server 9.10 Command mode ONLY
ipconfig
http://img232.imageshack.us/img232/3650/ipconfig0.jpg
vbox pref
http://img593.imageshack.us/img593/8969/pvboxpref.jpg
hostonlysetup
http://img256.imageshack.us/img256/1...achostonly.jpg





---
Vbox ubuntu config
current config in Host only mode=communication to host and vice ver sucessfull BUT no external internet
Code:
/etc/network

default		0.0.0.0
loopback	127.0.0.0
link-local	169.254.0.0
localnet	192.168.0.0
/etc/network/interface

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
	address 192.168.0.10
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255
	gateway 192.168.0.1
	# dns-* options are implemented by the resolvconf package, if installed
	dns-nameservers 8.8.8.8
/resolv.config

Code:
nameserver 8.8.8.8
nameserver 61.1.96.69
nameserver 192.168.1.1
#nameserver 192.168.0.1
-------

Vbox in NAT mode


ping responce Destination host unreacable


--------------

Last edited by Ramesh922; 12-11-2010 at 04:33 AM.
 
Old 12-19-2010, 01:33 AM   #2
fmiser
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
In "bridge mode", the guest interface acts like it has its own
cable to the local network - just without having to use a
seperate cable.

This means if the host needs to use DHCP to get an IP address,
so should the guest.

From what you posted as the content of etc/network/interface
it looks like you have the guest on a different subnet than
the host.

To see what the interfaces are available and how there are set
us ifconfig
Code:
# ifconfig -a
I'd try either changing the guest's the static IP address (how
it's currently set) to match the host's network - or change
the guest to use DHCP.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start/Stop VBox on boot/shutdown Ubuntu Server 8.04 nlinecomputers Linux - Virtualization and Cloud 4 07-13-2010 08:51 AM
Vbox and Parallel ports in Ubuntu 9.04 jjchavez Linux - Virtualization and Cloud 2 03-11-2010 02:17 PM
IP/DNS problem? Ubuntu server+desktop = "no valid net connections found" tdewire Linux - Server 3 11-30-2009 09:21 AM
Using linux PC as wireless bridge without using NAT kheldar Linux - Wireless Networking 2 02-05-2007 03:09 AM
Cannot bridge networks on FC2/VPC, yet NAT(Shared) works fine quinthar Linux - Networking 1 09-24-2004 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration