LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network is unreachable .. (https://www.linuxquestions.org/questions/linux-newbie-8/network-is-unreachable-4175455678/)

thiyagusham 03-26-2013 12:44 PM

Network is unreachable ..
 
3 Attachment(s)
Hello to all ;

I have 2 virtual machines in my pc(rhel5 ,oel5)
I am trying to share data through internet connection.
I issued ping command but it got network unreachable.

Could anyone explain about how to set ip for linux machines ?

- Obviously i am going to share data between oracle databases.

Still i did n't update etc /hosts file.

TB0ne 03-26-2013 01:01 PM

Quote:

Originally Posted by thiyagusham (Post 4919336)
Hello to all ;
I have 2 virtual machines in my pc(rhel5 ,oel5) I am trying to share data through internet connection.

So you're trying to make two virtual machines on the same host, communicate with each other by going out to the Internet, and back in?? Why?
Quote:

I issued ping command but it got network unreachable.
Could anyone explain about how to set ip for linux machines ?
There are THOUSANDS of how-to documents you can find on Google about how to do this. Putting "how to configure networking in red hat linux", pulls up 1.9 MILLION hits...have you tried any of them? The first two:
https://access.redhat.com/knowledge/...nterfaces.html
http://www.cyberciti.biz/faq/rhel-ce...configuration/

Since you're using virtual machines, though, have you enabled bridging on your network devices? If you haven't, you won't be able to communicate correctly.

And again, since you're using both Red Hat Enterprise and Oracle Enterprise, have you contacted Red Hat and/or Oracle support??? Those are both commercial products that you are PAYING for, and as such, are paying for tech support.
Quote:

- Obviously i am going to share data between oracle databases.
Why would that be obvious? Oracle Linux is *TYPICALLY* used for Oracle, but can be used for other things as well
Quote:

Still i did n't update etc /hosts file.
Well, if you think you have to, wouldn't it be a good idea to DO IT??

thiyagusham 03-26-2013 01:17 PM

Yes TBone , you asked many questions. I am being something quiet.
In my env , I can't ask everything (related to linux) to unix team.
Even i work with linux platform , we have certain limits .

I need some information with subnet mask. ehat actually it does ?

- I googled but clear. from attached screen shot what's your suggestion to us ?

TB0ne 03-26-2013 01:40 PM

Quote:

Originally Posted by thiyagusham (Post 4919352)
Yes TBone , you asked many questions. I am being something quiet.
In my env , I can't ask everything (related to linux) to unix team.

Nowhere did I mention asking your unix/linux team. I directed you to the very easily-found documentation on Google, and told you about bridging from your VM machine.
Quote:

Even i work with linux platform , we have certain limits.
If you can't ask your co-workers some simple questions, then you have serious problems in your work environment. You should escalate those issues to your boss.
Quote:

I need some information with subnet mask. ehat actually it does ?
Then you AGAIN need to look it up. Putting "what is a subnet mask" into Google turns up plenty of explanations with examples:
http://en.wikipedia.org/wiki/Subnetwork
http://www.iplocation.net/tools/netmask.php
Quote:

I googled but clear. from attached screen shot what's your suggestion to us ?
Since you don't say WHAT isn't clear, what do you think anyone can tell you? I suggested to you in my first reply that you enable bridging from your VM machines, and for you to contact either Red Hat or Oracle support. Have you done either? You don't say what kind of VM machine you're using, so again...with no details, there can't be much in the way of an answer.

thiyagusham 03-28-2013 12:48 PM

Hello TBone ;

Small clarification. when i issuued

# hostname -i

# vi/etc/hosts

Quote:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 oel5.myserver oel5 localhost.localdomain localhost
192.168.2.20 oel.myserver oel5
~
[root@oel5 etc]# hostname -i
127.0.0.1

[root@oel5 etc]# hostname
oel5.myserver

but i configred ip address as 192.168.2.20. but VM showing 127.0.0.1
What's the problem here ?


Thanks ..

TB0ne 03-28-2013 04:07 PM

Quote:

Originally Posted by thiyagusham (Post 4920634)
Hello TBone ;
Small clarification. when i issuued
# hostname -i
# vi/etc/hosts
Code:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 oel5.myserver oel5 localhost.localdomain localhost
192.168.2.20 oel.myserver oel5

What's the problem here?

That doesn't clarify anything, since this is the first time you mentioned the /etc/hosts file, or issuing the hostname command. Why would this clarify anything? And you still haven't answered whether or not you've contacted Oracle/Red Hat, or what kind of VM's you're using, or if you've enabled bridging on your VM's yet. You got these suggestions, and haven't acknowledged them. Unless you answer questions and try things, there is little point in posting follow-ups.

And you have put incorrect entries in the /etc/hosts file. Again, you need to talk with your unix/linux folks and get them to explain things to you, or try looking up such things on your own. From very easily found /etc/hosts examples from Google:
http://www.faqs.org/docs/securing/chap9sec95.html

Your localhost line is wrong, and you've defined two aliases for the SAME name...both for oel5.


All times are GMT -5. The time now is 03:06 AM.