LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-18-2010, 05:07 PM   #1
orakris
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
Getting two Linux servers to communicate (PING issues)


Hi all. I'm new to this forum. I have a Linux network configuration question.

I am testing with Suse Linux Enterprise Server 10 in a VMWare environment. I've installed two SLES10 servers, named sles1 and sles2. I can't get the two servers to communicate, even a simple ping won't work.

The "Network Adapter" in VMWare is set to "bridged", a setting which has worked fine when installing WinXP in VMWare and connecting to the Internet.

I have configured the Network Settings as follows:

SLES1:
-Statically assigned IP Address
-IP-address: 192.168.0.20
-Subnet: 255.255.255.0 (/24)
-Hostname: sles1

Hostname/DNS tab:
-Hostname: sles1
-Domain Name: local
-Name server: blank

Routing tab:
-Default Gateway: 192.168.0.1 (= my router connected to the Internet)

SLES2: same as sles1, with IP 192.168.0.22 and Hostname sles2

With these network settings, the two servers seem totally unable to communciate.

-When I ping sles2 from sles1, I always get the error message:
connect: Network is unreachable

-Whatever way I ping, either ping sles2, ping sles2.local, ping 192.168.0.22, whatever, the error message is always the same.

-Even if I ping sles1 from sles1 (= "pinging myself"), I get the same error message.

-Only if I ping localhost, I get a proper ping result.

What did I do wrong? Did I forget to configure something?

Thank you very much for your help!!
Kris
 
Old 12-18-2010, 06:14 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Hello orakris and welcome to LQ,

please execute the command
Code:
ifconfig
on both servers and post the output here.

Markus
 
Old 12-18-2010, 08:15 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,521
Blog Entries: 51

Rep: Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599
..and maybe add 'arp -a; route -n; cat /etc/resolv.conf; cat /etc/hosts; iptables -t filter -n -L' to that. Just in case.
 
Old 12-19-2010, 08:04 AM   #4
orakris
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hi markush and unSpawn, thank you for your replies!

I meanwhile solved the connectivity problem.

The "ipconfig" suggestion turned out to be the solution. While trying to get the servers to talk, I had tried to execute "ipconfig" but this command doesn't seem to exist in the SLES distro I have. After you suggestion, I did some googling about this and turns out the command's name is "ifconfig" in SLES.

So I immediately saw the network card itself wasn't configured properly. Eth2 was active but I have edited the Eth1 settings. I had cloned sles1 and sles2 from a basic SLES10 VM-install I had made months ago and where apparently I had messed up the network card settings.

Things work fine now. Thank you for the suggestions, very much appreciated!!!

Next step now... mounting a filesystem existing on sles2, onto sles1.

(some background, I have been an Oracle DBA working with a small company for a number of years. Our Linux servers have always been installed and configured by an external consultant as we don't have the necessary knowhow to do it ourselves. Next year, we are upgrading Oracle 9i to 11g on new Linux servers and I want to try and do it myself this time. So I am experimenting on VM now)

Last edited by orakris; 12-19-2010 at 08:05 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux can not ping windows servers 2003?? xiaohong1987 Linux - Networking 4 04-15-2010 08:57 AM
Can't communicate with servers on same subnet CarlKB Linux - Networking 3 04-20-2009 10:28 AM
Cannot ping other servers hjazz6 Linux - Networking 2 01-12-2009 09:14 PM
cant ping, ssh, from one of my servers to another...debian sdcc619 Linux - Networking 1 12-20-2008 12:30 AM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration