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 |
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? |
1 Attachment(s)
Quote:
Quote:
If this is disable the click on right top for "Auth eth1" Quote:
Quote:
I have attached screenshot also |
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. |
Quote:
The operating system running in a VirtualBox virtual machine has to connect to the Internet via the VirtualBox host computer's Internet connection. Quote:
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:
|
All times are GMT -5. The time now is 10:33 PM. |