Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VMWare Linux RedHat Problem

Posted on 2006-07-16
10
Medium Priority
?
579 Views
Last Modified: 2010-04-20
Hi guys,

I have successfully installed Linux RedHat 9 as a guest with Win 2K as the host. I also can ping each other successfully but I have few problems.

1. If I ping the IP from Win 2K, it is okay but if I ping from Linux, the reply has never ended (endless reply). What's wrong with that? I need to close the terminal :(.
2. I cannot connect Internet from my Linux, may I know what other configurations do I need?
3. How to send files from Windows to Linux using ftp?

Sorry guys, I am newbie in Linux. Meanwhile, let me google them as well :)

Thanks
David
0
Comment
Question by:suprapto45
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 2000 total points
ID: 17117435
1. If I ping the IP from Win 2K, it is okay but if I ping from Linux, the reply has never ended (endless reply). What's wrong with that? I need to close the terminal :(.

That's because by default Win 2K pings 3 times. Linux keeps pinging until you tell it to stop...unless you:

ping -c3 ipaddress

Which will ping 3 times before stopping. If you use:

ping ipaddress

you can always stop it with Ctrl-C

2. I cannot connect Internet from my Linux, may I know what other configurations do I need?

Check the ipaddress of your virtual machine:

ipconfig

You should either be a valid ethernet address to use the same ethernet connection as the host server, or have a NAT able address. If you have an internal network with host only, or 'special' , then the chances of you getting this to work are low (without a reasonable degree of expertise in networking/bridging etc). This is configurable by right clicking on the Virtual Machine -> Properties, and then changing the network config.

3. How to send files from Windows to Linux using ftp?

Once you've done that then you can start an ftp daemon on the Linux virtual host, in order to transfer the files with any normal ftp client. However, I'm going to suggest that you try Win scp:

http://winscp.net

The reason is that as long as you've got ssh working, then this will work without any further configuration work (other than adding username and password!)

(   (()
(`-' _\
 ''  ''
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17117490
Just checked - the setting that you probably want is:

Bridged

or

NAT

Also ensure that the device is connected (or select connect at power on)

(   (()
(`-' _\
 ''  ''

0
 
LVL 16

Author Comment

by:suprapto45
ID: 17117558
Hi pjedmond,

Thanks. Yes, point 1 has been solved. Thanks for that :).

For point 2, currently I used NAT and it can ping outside IP address such as CNN (60.XX.XX - I forgot). But when I run the Mozilla, it does not work :(. Is it because Mozilla configuration? Or is it because of my limited knowledge in Linux?

>>"Once you've done that then you can start an ftp daemon on the Linux virtual host"
Can you explain me on how to do it? I have installed FTP Server in Linux but when I try to ftp, it can't, it is timed out.

David
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 2000 total points
ID: 17117616
For point 2, currently I used NAT and it can ping outside IP address such as CNN (60.XX.XX - I forgot). But when I run the Mozilla, it does not work :(. Is it because Mozilla configuration? Or is it because of my limited knowledge in Linux?

Probably more to do with DNS? If you can ping it, then you should be able to 'browse it'...(barring firewall rules etc). can you ping cnn by name (rather than ip)? If not, then you probably need to open up a question related to "DNS problem". Might be worth trying with it configured as Bridged, as the latest VMWare has a few 'glitches' in this area.

>>"Once you've done that then you can start an ftp daemon on the Linux virtual host"
Can you explain me on how to do it? I have installed FTP Server in Linux but when I try to ftp, it can't, it is timed out.

You need to start the daemon up. Normally this is done by:

/etc/init.d/ftpd start

and obviously:

/etc/init.d/ftpd stop
/etc/init.d/ftpd restart
/etc/init.d/ftpd status

or you can do the same:

service ftpd start

etc. Be aware that  there are a number of different ftpd around - proftpd, vsftpd etc All are slightly different and have different configuration file requirements. If you still have problems after this, post a Q specifically detailing your FTP daemon, and OS. This will mean that people browsing the Qs will see the FTP problem rather than VMWare, and are more likely to assist.

(   (()
(`-' _\
 ''  ''

0
 
LVL 16

Author Comment

by:suprapto45
ID: 17117673
>>"can you ping cnn by name (rather than ip)?"
I can't :(. It is only possible by IP. Is it DNS problem?

Thanks for the FTP, let me try it

David
0
 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 2000 total points
ID: 17117691
I can't :(. It is only possible by IP. Is it DNS problem?

Yes it is a DNS problem....but it may be *really* easy to solve:

Edit your /etc/resolv.conf, and ensure that it has something like:
-----------------8X----------
nameserver 192.168.1.1
-----------------8X----------

Where 'nameserver' is the directive, and 192.168.1.1 is the ip of a valid DNS server. Obviously change the DNS address as appropriate. You can have multiple nameservers detailed in the file:
-----------------8X----------
nameserver 192.168.1.1
nameserver 10.1.3.1
-----------------8X----------

The first /etc/resolv.conf is an actual working for my network from my system

(   (()
(`-' _\
 ''  ''
0
 
LVL 16

Author Comment

by:suprapto45
ID: 17117700
Basically, how do I know what is my DNS server? (Damn, I am not good in networking :))

For the FTP, although I have executed it to be run on the daemon, when I tried the ftp ipOfMyLinux, it still reported connection time out, what may be the problem?

David
0
 
LVL 16

Author Comment

by:suprapto45
ID: 17117784
I have seen that I have not installed DNS Server's package as well as Network Server's package in my Linux.

Do I need to install them?

David
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17117944
>Do I need to install them?

Have you tried /etc/resolv.conf?

On your windows system:

ipconfig /all

Will (amongst other things) tell you what your DNS servers are. I suspect that you still have a bit to learn before you think about trying to install a DNS server!

With respect to ftp....did you try winscp?

There are plenty of possible reasons for this - incorrect configuration file, firewall, other networking issues, incorrect protocols, specific denial of certain IPs or users, wrong ip address? Try winscp as at least it'll enable you to transfer the files in a user friendly graphical manner without anything too complex from a configuration perspective.

(   (()
(`-' _\
 ''  ''

0
 
LVL 16

Author Comment

by:suprapto45
ID: 17119252
Let me try that.

Thanks. I am going to close this thread as I think that you have shown a very relevant solution. I will post in more specific questions if I have later on. In the meantime, it is better for me to grab the fundamental of the networking first.

Thanks again

David
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question