LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configuration to access internet from vmware(host=winXP, guest on vmware=linux-5) (https://www.linuxquestions.org/questions/linux-newbie-8/configuration-to-access-internet-from-vmware-host%3Dwinxp-guest-on-vmware%3Dlinux-5-a-693486/)

afz_linux 12-28-2008 01:05 PM

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!!

okos 12-28-2008 01:29 PM

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.

afz_linux 12-28-2008 09:30 PM

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)

okos 12-30-2008 12:20 AM

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.


All times are GMT -5. The time now is 09:11 AM.