[SOLVED]CentOS - Using Both NICs on different networks issue
First i would like to ya'll know i have a Debian based server that is working perfectly with what i am trying to do. My CentOS server is the one that when duplicating the config, but using different addresses does not work as wanted.
Debian setup ETH0 > XXX.XXX.1.30 > 255.255.255.0 > XXX.XXX.1.1 ETH1 > XXX.XXX.3.30 > 255.255.255.0 > XXX.XXX.3.1 I can from a device on XXX.XXX.1.X network ping both XXX.XXX.1.30 and XXX.XXX.3.30 and access its services CentOS setup ETH1 > XXX.XXX.1.22 > 255.255.255.0 > XXX.XXX.1.1 ETH0 > XXX.XXX.0.22 > 255.255.255.0 > XXX.XXX.0.1 I can ping XXX.XXX.0.22 from a device on the XXX.XXX.1.X network and access its services, but as soon as i plug in ETH1 i can no longer PING 0.22 and i know i cant get to one of its services, but i cannot confirm all do not work once the 2nd NIC is plugged in. Once the 2nd NIC is plugged in i can then PING XXX.XXX.1.22, but loose XXX.XXX.0.22 Also from the server i can PING both GW's, XXX.XXX.0.1 and XXX.XXX.1.1 and outside IP's and addresses. FW rules are the same and i am guessing its something with the CentOS server since it only happens when i plug in the 2nd NIC and all is well until then. Open to any ideas! |
Quote:
When the kernel is attempting to route a packet it will read the route table from top to bottom and the first match will be used to forward the packet to. Would you please confirm this is the functionality you expect? |
Quote:
Why would this work on my Debian system, but not the CentOS system? |
What I'm saying is independent of the distribution, having multiple default gateways is usually not desirable. You could end with asymmetric routes and unpredictable communication paths.
|
It's working flawlessly on my Debian system
|
Please post the routing table from both machines.
|
Quote:
please keep in mind the centos server will be using 192.168.1.X and 192.168.0.X while the debian uses 192.168.1.X and 192.168.3.X i found this which may be what i need http://www.dfwavc.com/linux_multi_nic-multi_gateway |
Quote:
SOLVED |
Quote:
|
Quote:
I re-read the OP and seems like your mis reading something, well i guess im magical when i can ping my device with an XXX.XXX.0.22 IP from my network with XXX.XXX.1.XXX What is missing or incorrect? i already figured out how to setup everything and have both NICs connected on separate networks and i can ping both IP's from any device on either network How does my routing table not match my description? To anyone having this issues PM me for help. |
For future reference, if I ask a question I'm not trying to make you look stupid or wrong, I'm asking for information or clarification, in order to assist you with the question you came here to ask.
You might want to consider weather getting arsey with people who are trying to help you best serves your own interests. |
All times are GMT -5. The time now is 04:34 PM. |