Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 21st, 2003, 01:46 PM
DayDreamer DayDreamer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 DayDreamer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
2 linux servers connected to a switch can't communicate with each other

Hi people:

I have 2 linux servers behind 1 switch. One of them controls my home
network routing (server1), while the other is being made into a dedicated
server (server2). The problem is this: The two servers can't communicate
with each other. They can't even ping each other. Therefore, I can't use
my laptop, which aquires internet from server1, to upload or access webpages
on server2.

Maybe the situation would be best described with a picture. So I am
attaching a diagram of how my networks are connected.

As you can see in the attached picture, 2 servers are connected to a switch.
Server1 governs another network, in which is my laptop. The problem is that
server1 cannot communicate with server2, not even pinging. Therefore, my
laptop, which is in the network under server1, cannot access server2 as
well.

I was told that with older verions of windows, they have the same problem if
NetBEUI protocol is not installed, unless the first 3 numbers of their IPs
are the same. And if NetBEUI is installed, the security is compromised.
So, I'm wondering what can I do with my 2 linux servers in order for them to
communicate with each other without compromising security.

Note that my isp allows 2 IPs. Therefore my 2 servers both have a unique
IP. Maybe that info is useful... maybe....

Honestly, I don't even know exactly what is the source of the problem right now. I don't even know what topic to search for on net. So, all helps are much appreciated. Thank you in advance.
Attached Images
File Type: gif network.gif (15.9 KB, 199 views)

Reply With Quote
  #2  
Old June 22nd, 2003, 12:19 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Try a traceroute from server1 to server2, and vice versa. Post the results here.

Do server1 and server2 have the same netmask?

If server1 is doing your routing, it might be an idea to have server2 on the same network as the laptop and the family computer, and just use port forwarding to forward the services you want server2 to run to server2 using iptables.
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old June 22nd, 2003, 02:26 PM
DayDreamer DayDreamer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 DayDreamer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Dear Alex:

I'm so glad to get a response from you. I haven't been able to find proper help anywhere.

Since I'm still a newbie, I asked my friend to do a traceroute for me. The result is:
1 - 30 hops all
* * *

According to him, the packets don't seem to be going anywhere. I can't really connect the server2 to the network under server1 because both servers are running web services. So what is another possible solution? And what subject should I read into for this kind of problem?

Also, if two computers are connected to a switch which in turn is connected to the modem, and the two computers assigned to different ips and different subnets by the isp's dhcp, how can those two computer talk to each other through the gateway in tcp/ip


Thanks greatly for your help.



Ray

Last edited by DayDreamer : June 22nd, 2003 at 02:30 PM.

Reply With Quote
  #4  
Old June 22nd, 2003, 02:53 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
Since I'm still a newbie, I asked my friend to do a traceroute for me. The result is:

That's not the full result. Here is an example of how it would look:
Code:
[root@vaio root]# traceroute hut
traceroute to hut.alex-greg.com (192.168.1.4), 30 hops max, 38 byte packets
 1  hut (192.168.1.4)  0.625 ms  0.324 ms  0.298 ms
[root@vaio root]#


What you could do is put a firewall (and old redundant PC with three NIC's running Smoothwall will do fine) directly behind the DSL modem (connect the two together with a crossover network cable), set up a DMZ zone on one switch and put the web servers on that with port forwarding configured, then have the "green zone" on the other switch.

That would involve quite a bit of work, however (it is the setup I have at home). Please post the output of the following commands, run on both machines:
Code:
ifconfig
route

Maybe there is a simple mistake.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > 2 linux servers connected to a switch can't communicate with each other


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway