connect server to server on secondary NIC

Posted by microchasm on Server Fault See other posts from Server Fault or by microchasm
Published on 2010-06-01T20:07:07Z Indexed on 2010/06/01 20:14 UTC
Read the original article Hit count: 442

Filed under:
|
|

Hi,

I have a CentOS box with multiple NIC's running Apache. I also have another box running RHEL that will be the MySQL server. I'm trying to use the secondary NIC on the Apache box to connect directly to the MySQL server, but so far no luck. I want to isolate the MySQL box as much as possible which is why I'm going for a direct connection as opposed to running through a switch.

I have a crossover cable running between them.

IP configs:

Apache box

eth0 [to lan]
ip addr:  192.168.200.100
netmask:  255.255.0.0
gateway:  192.168.111.1

eth1 [to mysql]
ip addr:  192.168.200.101
netmask:  255.255.0.0
gateway:  [blank]

MySQL box

eth0 [to apache]
ip addr:  192.168.200.203
netmask:  255.255.0.0
gateway:  192.168.200.201

The rest of our network is on 192.168.111.0/24 subnet.

Ping only returns Destination Host Unreachable. I've tried various variations of this setup (including straight through cable), and I can't seem to get them to talk to each other.

Any help appreciated.

© Server Fault or respective owner

Related posts about networking

Related posts about lan