LinuxQuestions.org
Review your favorite Linux distribution.
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-28-2008, 01:05 PM   #1
afz_linux
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
Configuration to access internet from vmware(host=winXP, guest on vmware=linux-5)


Hi,

I am a newbie in Linux, so please ignore my mistakes and please help.
Well I have installed linux ver-5 on vmware. I have windows XP on base machine.
I am not able to access internet from linux.
I have MTNL broadband DSL connection on windows XP. Internet is working fine on XP.
I have made the following configurations in /etc/sysconfig/networks

NETWORKING_IPV6=yes
HOSTNAME=abc.test.com
NETWORKING=yes
NISDOMAIN=RHCE
GATEWAY=192.168.1.1
======================================================
and in /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
HWADDR=00:0C:29:77:f2:de
ONBOOT=yes
DHCP_HOSTNAME=abc.test.com
IPADDR=192.168.1.3 (I changed it manually)
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

======================================================

and in /etc/resolv.conf

nameserver 192.168.1.1
======================================================

and in /etc/hosts

192.168.1.3 abc.test.com

======================================================

windows ip address: 192.168.1.2 (Assigned by DHCP)
gateway: 192.168.1.1
=====================================================

When I am able to ping google.com from terminal window in linux(0%packet loss)
but when i try elinks google.com I get a page which says making connection and it never returns.

When i go in vmware edit-->virtual network settings-->Vmnet1(host-only)
the subnet is 192.168.245.0 and
-->Vmnet8(NAT) the subnet is 192.168.127.0

Also in vmware edit-->virtual network settings-->NAT the VMnet host is VMnet8, Gateway IP address: 192.168.127.1, Netmask: 255.255.255.0

Is it that the gateway of VMware is different and that of my internet broadband is causing a problem. If yes then what are the changes to be made.

PLS ASSIST!!
 
Old 12-28-2008, 01:29 PM   #2
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
What distro of linux are you using?

In linux on the command line what does ifconfig say?
If /etc/resolv.conf shows "nameserver 192.168.1.1", you must be connected to your network.
You can also try,

su
nmap 192.168.1.* #to see what it says.

However you need to have nmap installed. Many distros have nmap.
 
Old 12-28-2008, 09:30 PM   #3
afz_linux
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
It is RedHat Enterprise Linux Server release 5(Tikanga)
kernel 2.6.18-8.e15 on an i686 (smartd version 5.36[i686-redhat-linux-gnu])

The output of ifconfig shows the following display:

eth0 Link encap:Ethernet HWaddr: 00:0C:29:77:f2:de
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5622 (5.4 KiB) TX bytes:2674 (2.6 KiB)
Interrupt:185 Base address:0x1400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask 255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 KiB) TX bytes:0 (0.0 KiB)
 
Old 12-30-2008, 12:20 AM   #4
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
It seems that you have network access with RH through vmware.

Try
su
ifconfig eth0 up
dhcpcd eth0

Now I know nothing about RH. However RH should probably have dhcpcd script. If not, there are other dhcp programs.
 
  


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
vmware-server: host linux, guest winxp, usb mouse doesn't work hedpe Linux - Software 5 09-08-2008 04:41 AM
Linux host + VMWare + WinXP guest? Help/Thoughts please? riffin-rich Linux - Newbie 6 04-12-2008 08:56 PM
Why I can't ping winxp host form redhat linux guest in VMWare Jason Bao Linux - Newbie 4 09-09-2006 06:56 AM
VMWare WinXP host Linux guest Swift&Smart Linux - Software 10 04-28-2004 12:54 AM
sharing internet connection between Fedora host and Win98 VMware guest NGShake Linux - Software 2 12-20-2003 12:13 PM

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

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