Solved

VMWare Linux RedHat Problem

Posted on 2006-07-16
10
568 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
  • 5
  • 5
10 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 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
 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 500 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now