2 servers and more 2 eth cards to comunicate
Hi all,
i have a little problem. I have 2 servers.. all 2 with inside: eth0 that go external to my router eth1 that i connect via crossed-cable in order to comunicate from server1 to server2 directly with out router. My question is: witch gateway i must set on the two eth1 ? ...cause i can't see, for example, the server2 from server1 trough the two eth1 cards. I must play with route ? Thanks all for the help Denis |
p.s. i allready set gtw of the eth1 cards with the ip of the other eth1
... but ca't see it Thanks again |
Can you give the output of "ifconfig" and "route -n" for both machines, and what are you trying to do when you "can't see" the other server (with output of the command if possible)?
|
Quote:
here is my ifconfig Code:
eth0 Link encap:Ethernet HWaddr 00:14:5E:28:11:E8 ... and here is route: Code:
Kernel IP routing table the eth2 cards with out a router ... just a crossed cable. Thanks again for the help Denis |
What about the other machine?
|
Thanks again Billy for attention...
let's make the simple first question... about gateway of the eth2 cards My situation is... i must send the two servers in housing. This servers will have only one ethernet cable to external router. One by server. Two in total. And here is the first think; the servers is ibm and have a rsa cards (like DRAC of hp) for controll the boot, bios etc ... via ethernet. The problem is that i will have only one external cable by server. For this reason i need the eth1 cards on servers: if, for example, the server1 is broke, i will see and controll it, trought server2 cable > eth0 > eth1 > server1:rsa card. ... and vice versa if the server2 will broke. The eth2 cards i need because all trafic between servers, like sync, nfs etc... i will pay if will go trought the external router. For this i need to use the cross over cable between server1:eth2 and server2:eth2 here is my situation for now: Code:
server1 is work as a normal lan client. I have make a nat iptables for the rsa card for now: all trafic arrive on server1:eth0 port:8888 is forward on rsa2 on port 80 ... and this is work It's work also viceversa... from server2 to rsa1. The problem begin when i put the eth2 cards... For the fist... i don't know witch gateway i must assing. if i make ping from server1 to server2: Code:
[4 root@ns3 /etc]=> ping 10.10.11.222 Code:
[4 root@ns3 /etc/shorewall]=> ping -I eth2 10.10.11.222 But for now i need to understant if the gateway is ok, and if i must play with routes table. Thanks a lot. Denis |
I don't quite follow the tables in the above post, but according to the routing table given earlier, pinging 10.10.11.222 should go via eth2
Code:
10.10.11.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 Read this as a general guide to routing http://linux-ip.net/html/ch-routing.html - it'll give you a much better idea of what routes/gateways, etc. are. |
I've got some more time now, sop let me explain your routing table
Code:
Kernel IP routing table Any traffic destined for an IP address in the 192.168.1.0/255.255.255.0 range (ie 192.168.1.0-192.168.1.255) will be sent via eth0. Any traffic for 10.10.10.0-10.10.10.255 will be sent via eth1 Any traffic for 10.10.11.0-10.10.11.255 will be sent via eth2 Any traffic that doesn't get caught above (to say 77.123.32.65) will go via the default gateway, in this case eth0 So when you ping 10.10.11.222, this falls in the range 10.10.11.0-10.10.11.255, it's automatically sent via eth2. hopefully that helps clarify how it works a bit. |
Hi Billy, and welcome to another day :-)
...well the cable is ok cause i can use it with other pc, also the leds is green. But anyway can't ping... is the gateway ok if i let it blank ? on the two eth2 ? ... if not, witch gateway i must put there ? Thanks again. Denis |
I think your route is OK.
I'd put a copy of wireshark on each box and monitor network traffic on that interface when you try to ping. Don't forget, it could just be your firewall blocking pings. Can you connect with ssh or anything else? Perhaps the card(s) have a problem? Are the light on? Can you switch with eth1 for example? |
All times are GMT -5. The time now is 08:24 AM. |