LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-20-2004, 10:58 AM   #1
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Rep: Reputation: 15
Linux on VMWare


Hi,

I am running Fedora 1 on VMWare.

My Host OS is Windows 2003.

I have 2 Lan Cards, one connect to cable modem. Other is connected to a 8 port switch, that share internet with other computers.

Is it possible for me to access internet through Fedora that is running in VMWare ?

In VMWare, Property of Fedora, i selected NAT

ipconfig/all on my Host OS, that is Windows 2003


Code:
Windows IP Configuration

   Host Name . . . . . . . . . . . . : fwhwin
   Primary Dns Suffix  . . . . . . . : 
   Node Type . . . . . . . . . . . . : Unknown
   IP Routing Enabled. . . . . . . . : Yes
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8
   Physical Address. . . . . . . . . : 00-50-56-C0-00-08
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 192.168.84.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 

Ethernet adapter VMware Network Adapter VMnet1:

   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1
   Physical Address. . . . . . . . . : 00-50-56-C0-00-01
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 192.168.17.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 

Ethernet adapter Local Area Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Description . . . . . . . . . . . : VIA VT6102 Rhine II Fast Ethernet Adapter
   Physical Address. . . . . . . . . : 00-0B-6A-1B-54-A6

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethernet NIC
   Physical Address. . . . . . . . . : 00-50-BF-12-45-73
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IP Address. . . . . . . . . . . . : 202.83.45.207
   Subnet Mask . . . . . . . . . . . : 255.255.248.0
   Default Gateway . . . . . . . . . : 202.83.40.1
   DHCP Server . . . . . . . . . . . : 202.88.238.16
   DNS Servers . . . . . . . . . . . : 202.88.231.2
                                       202.88.231.10
   Lease Obtained. . . . . . . . . . : Monday, September 20, 2004 8:02:12 PM
   Lease Expires . . . . . . . . . . : Monday, September 20, 2004 9:02:12 PM

ifconfig on my Guest OS (Fedora 1 running on VMWare)

Code:
[root@localhost root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:86:EC:67
          inet addr:192.168.84.100  Bcast:192.168.84.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:91 errors:0 dropped:0 overruns:0 frame:0
          TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10482 (10.2 Kb)  TX bytes:9309 (9.0 Kb)
          Interrupt:10 Base address:0x10e0

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2446 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2446 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1941342 (1.8 Mb)  TX bytes:1941342 (1.8 Mb)

I am able to connect to Guest OS (Fedora) from Host OS (Windows) using SSH on IP 192.168.84.100

Can any one tell me how do i access internet from Fedora ?

Regards,

Yujin
 
Old 09-20-2004, 11:51 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Enable the DHCP server and NAT for whichever VMnet you're using, and just configure your Guest OS to use DHCP then everything should work automatically.
In fact I think that's the way it's setup by default when you choose NAT, if it doesnt work make sure there's no firewall/whatever's in the way, and make sure DNS is setup in /etc/resolv.conf in Fedora and that the default gateway is set to the virtual interface on the host which is 192.168.84.1.
Alternatively disable both NAT and DHCP service in VMware(start - programs - vmware - Manage Virtual Networks), select host-only for your guest OS then enable the built-in Internet Connection Sharing in Win2003, using the vmware virtual device as the internal interface(ICS will also act as a DHCP server).
Or if you're already sharing the internet through the host(sounds like you are), simply choose bridged mode and select the internal interface that connects to the switch, then configure it like any other hosts on the lan, which again in most cases you just leave it on DHCP.

Last edited by Demonbane; 09-20-2004 at 11:57 AM.
 
  


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
newbie in linux-mandrake; installing .rpm vmware for linux jet_espinal Mandriva 2 11-02-2006 07:06 AM
Linux on VMware on XP rparmar Linux - Laptop and Netbook 4 08-23-2005 11:18 AM
Debug Linux kernel in vmware (two machines in vmware)?? cyu021 Programming 0 03-30-2005 08:46 PM
linux and vmware tmp0404 Linux - General 0 07-07-2004 12:26 PM
Vmware Virtual Machine Problem With Windows In Vmware jvdbossc Linux - Software 2 05-28-2004 07:54 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration