LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 05-04-2013, 04:25 AM   #1
mysqldb02018
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
public IP and Private IP


I have installed Oracle Linux on virtual Box

Problem that I am facing

Network Interface is : Adapter (NAT)

When Internet connected it shows IP from the ifconfig output but when Internet is disconnected Ifconfig does not show any IP

When I change IPv4 setting from Automatic(DHCP) to Manual and enter IP manually but in this case my internet does not works
 
Old 05-04-2013, 06:06 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
A VirtualBox VM with network adapter configured for NAT and guest OS configured as a DHCP client should get its address from the DHCP server built into VirtualBox running on the host.

So it's unexpected that the guest does not get an address depending on whether the Internet connection is up.

How do you connect to the Internet?

Is there anything unusual about your VirtualBox installation on the host?

Can you re-check the VM's network adapter configuration?
 
Old 05-04-2013, 07:34 AM   #3
mysqldb02018
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by catkin View Post
A VirtualBox VM with network adapter configured for NAT and guest OS configured as a DHCP client should get its address from the DHCP server built into VirtualBox running on the host.
So it's unexpected that the guest does not get an address depending on whether the Internet connection is up.
I am using root user that is getting IP automatically when internet runs

Quote:
How do you connect to the Internet?
There wired internet connection and it connect automatically when oracle linux runs in virtual Box
If this is disable the click on right top for "Auth eth1"

Quote:
Is there anything unusual about your VirtualBox installation on the host?
I don't find such thing

Quote:
Can you re-check the VM's network adapter configuration?
Adapter(NAT) Cable connected shows this status

I have attached screenshot also
Attached Images
File Type: jpg auth etho1.jpg (161.7 KB, 6 views)

Last edited by mysqldb02018; 05-04-2013 at 07:41 AM.
 
Old 05-04-2013, 03:24 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 11,521

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
I think we need to start over at some basics.

Virtual machines have a number of ways to provide a network. Bridged, NAT, local and not connected are common. Then we need to be sure the OS has support for the Virtual machine's virtual nic.

Maybe start with sudo ifconfig results.


In NAT, the VM has a virtual router software that acts like a real router to connect to your hosts nic ip. That assumes that your OS has enabled a network card too.
 
Old 05-07-2013, 10:49 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by mysqldb02018 View Post
I am using root user that is getting IP automatically when internet runs
What does "the internet runs" mean? How does your VirtualBox host computer connect to the Internet? "Always on" Internet connections are common. Your posts suggest yours is sometimes on and sometimes off. How does that work?

The operating system running in a VirtualBox virtual machine has to connect to the Internet via the VirtualBox host computer's Internet connection.

Quote:
Originally Posted by mysqldb02018 View Post
There wired internet connection and it connect automatically when oracle linux runs in virtual Box
If this is disable the click on right top for "Auth eth1"
Looking at the screen shot, it looks as if you mean a wired network connection, not a wired internet connection ... ?

Maybe when you wrote "When Internet connected" you meant when the VirtualBox virtual machine has its virtual network adapter disabled or the virtual cable unplugged ... ?

Also it's unusual that your ifconfig output shows eth1 but not eth0.

We seem to be having some difficulty using words. Maybe best to use screen shots and copy/paste.

Please post:
  • Two screen shots, taken on the VirtualBox host, showing the virtual machine's first and second network adapters.
  • A screen shot like the last one but with the windows moved so the ifconfig output can be fully seen. WOuld be nice to see the other partly hidden window, too.
  • The output of lspci, run on the VirtualBox guest. This could be copied from the terminal and pasted into this LQ thread or it could be a screen shot.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
access private ip from public ip pasin Linux - Server 9 04-24-2013 10:25 PM
public and private on the same network wabit Linux - Networking 5 03-27-2013 03:39 PM
Why am I seeing private ip's on a public network rbees Linux - Networking 2 11-06-2008 06:54 PM
public vs private ip emailssent Linux - Networking 2 09-28-2004 02:11 AM
Linking Public IP to a Private IP Saints Linux - Networking 0 05-04-2004 04:33 AM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration