LinuxQuestions.org
Register a domain and help support LQ
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 03-26-2013, 01:44 PM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
Network is unreachable ..


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.
Attached Thumbnails
Click image for larger version

Name:	oel_ip.png
Views:	26
Size:	151.7 KB
ID:	12137   Click image for larger version

Name:	rhel_ip.png
Views:	20
Size:	206.9 KB
ID:	12138   Click image for larger version

Name:	ping oel_ss.png
Views:	20
Size:	20.2 KB
ID:	12139  

Last edited by thiyagusham; 03-26-2013 at 01:46 PM.
 
Old 03-26-2013, 02:01 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by thiyagusham View Post
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??
 
Old 03-26-2013, 02:17 PM   #3
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
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 ?
 
Old 03-26-2013, 02:40 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by thiyagusham View Post
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.
 
1 members found this post helpful.
Old 03-28-2013, 01:48 PM   #5
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
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 ..

Last edited by thiyagusham; 03-28-2013 at 01:49 PM.
 
Old 03-28-2013, 05:07 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by thiyagusham View Post
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.
 
  


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
Network Unreachable for Destination Network other than Interface Jack10 Linux - Networking 3 08-17-2010 08:50 AM
network unreachable zigzagooo Linux - Networking 6 05-24-2009 11:17 AM
Network is unreachable confidential007 Linux - Networking 10 06-19-2004 04:06 PM
Network is unreachable??? Tnichols Linux - Networking 15 12-19-2003 10:44 PM
Network is unreachable radix Linux - Networking 4 05-09-2002 02:06 AM


All times are GMT -5. The time now is 10:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration