Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-18-2010, 06:07 PM   #1
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:

-Statically assigned IP Address
-Subnet: (/24)
-Hostname: sles1

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

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

SLES2: same as sles1, with IP 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, 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!!
Old 12-18-2010, 07:14 PM   #2
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

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

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

Old 12-18-2010, 09:15 PM   #3
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
..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, 09:04 AM   #4
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 09:05 AM.


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
Linux can not ping windows servers 2003?? xiaohong1987 Linux - Networking 4 04-15-2010 09:57 AM
Can't communicate with servers on same subnet CarlKB Linux - Networking 3 04-20-2009 11:28 AM
Cannot ping other servers hjazz6 Linux - Networking 2 01-12-2009 10:14 PM
cant ping, ssh, from one of my servers to another...debian sdcc619 Linux - Networking 1 12-20-2008 01:30 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration