LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2010, 08:19 PM   #1
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110
Blog Entries: 1

Rep: Reputation: 16
Connect to internet through Linux Virtual Machine . . .


Dears,,

I installed Oracle Enterprise Linux on Virtual Machine.
I try now to connect to internet through this VM but i cannot.
How can i make connect?
 
Old 04-26-2010, 08:41 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
First which virtual machine?
Second what's the output of
Code:
ifconfig -a
on the virtual machine?
You need to check the wiki/online documentation of the virtual appliance you are using.
 
Old 04-26-2010, 09:25 PM   #3
mrshanim
Member
 
Registered: Aug 2009
Posts: 30

Rep: Reputation: 16
Use NAT (Network Address translation) in Vmware settings. It will work..
 
Old 04-27-2010, 05:58 AM   #4
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Quote:
First which virtual machine?
I installed VMware on windows.
Then make Linux Virtual Machine and i need to connect to internet through it.
Quote:
ifconfig -a
From where use this command
I used it as following but it failed
[root@rac1 u01]# ifconfig -a
bash: ifconfig: command not found


Quote:
Use NAT (Network Address translation) in Vmware settings
How use it please?
 
Old 04-27-2010, 06:47 AM   #5
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 110

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Dears,,

Let me explain more to you
My lap top IP is 192.168.1.77
Now , i am trying to ping from VMWare to this IP but without reply.
I think if i make the virtual machine see my lap top and ping it successfully
In this case , i will be able to connect to internet.
Please , Correct me if i am wrong
 
Old 04-27-2010, 01:42 PM   #6
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
You are right.
Follow the advice given to you about NAT.

http://www.howtogeek.com/forum/topic/vmware-nat-config
http://www.virtuatopia.com/index.php..._Configuration
http://www.vmware.com/support/gsx3/d...anced_gsx.html

Read through hose.
 
Old 04-27-2010, 04:02 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
There are basically 4 ways to let a vm access networking. One is Nat, another is bridge, third is local and forth is no lan.

You need to start at your VM's documentation to see which one you wish to setup. One uses the VM's built in dhcp server so you get a subnet in the range of the VM's programming. The other uses what the host ip has.
 
Old 04-27-2010, 09:19 PM   #8
mrshanim
Member
 
Registered: Aug 2009
Posts: 30

Rep: Reputation: 16
You can see the vitual machine settings
(hard disk, cd rom, mrmory , networking, etc)
There you will see four options. Among them choose NAT, It will definitely work..
Let me know it is working or not?


MrShanim
 
Old 10-23-2016, 01:12 AM   #9
Karan Meelu
LQ Newbie
 
Registered: Oct 2016
Location: Toronto,Canada
Distribution: Centos7
Posts: 1

Rep: Reputation: Disabled
Solution for internet connectivity over linux os in virtual box

HELLO GUYS
1. set the network connection on your virtual box as NAT.
2. Now start your os,go to the network settings in it, you would find there two Ethernet disconnected , select the add option and add VPN .
3. In VPN set your DNS, IP , subnet mask and router's address(run ipconfig /all in cmd and use the host addresses in VPN settings)
now restart your virtual machine
turn the Ethernet option ON
CHECK THE INTERNET CONNECTIVITY
In the WIRED NETWORK SETTINGS (ETHERNET) -Select ip4 settings ON and turn off ip6
It should work
If it doesn't work reply me back i would love to help you
 
Old 10-25-2016, 09:00 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by eng_mohammedmostafa View Post
Dears,,

I installed Oracle Enterprise Linux on Virtual Machine.
I try now to connect to internet through this VM but i cannot.
How can i make connect?
Haven't we been here before???? http://www.linuxquestions.org/questi...achine-804392/

..SIX YEARS AGO, with the exact same question? Did you do ANYTHING in that thread to get your problem resolved??? If so...DO IT AGAIN HERE.
 
Old 10-25-2016, 11:12 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
TB0ne,
Did you notice the link you posted is this same thread?
 
Old 10-25-2016, 11:59 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by michaelk View Post
TB0ne,
Did you notice the link you posted is this same thread?
?? I do now....WTH? Apologies.
 
Old 10-26-2016, 06:43 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
in setup ... select bridge then select and other connection for it to connect to.
 
Old 10-26-2016, 07:30 AM   #14
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
All my Virtualbox VMs utilize the bridge adapter.
DHCP from the router.
Always works.
 
  


Reply



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
[SOLVED] Cannot access Internet from ubuntu 9.10. Can connect from windows virtual machine archShade Linux - Networking 12 01-25-2010 04:24 PM
internet access from linux operating system on virtual machine manindergrewal1 Linux - Newbie 1 04-04-2009 06:58 PM
Unable to connect debian Virtual Machine to internet hackersapien Linux - Newbie 2 09-30-2008 10:47 PM
Live CD Linux Box to connect to Internet via XP machine ? uncle-c Linux - Newbie 5 03-02-2007 09:31 AM
Internet explorer on linux or a free virtual machine? zahadumy Linux - Software 26 12-17-2006 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 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