Results 1 to 6 of 6
Hello all! we have a problem regarding to multi nic environment. Our Linux box (CentOS 6.3) works as an application server and on this machine 6 NIC's are active. In ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-27-2012 #1
- Join Date
- Dec 2012
DMZ - Multi NIC environment / IP rule problem
we have a problem regarding to multi nic environment.
Our Linux box (CentOS 6.3) works as an application server and on this machine 6 NIC's are active.
In all NIC's there are min. 1 IP set.
All setted IP's are real IP's (Public Domain Network IP's) and are part of the DMZ.
To avoid asynchroning networking, the necessary arp_ignore and arp_announce parameters are set.
After setting the arp_ignore and arp_announce parameters, requests to the server are caught by the related NIC port (this is what we want) but the replay is made by another port (eth0, not acceptable for us).
Writing routes was helpful for us but does fits only for the subnet, outside of the subnet (or internet) the server gets the request but does not answer for it.
We have setted following routes:
ip route add xxx.xxx.237.128/26 dev eth5 src xxx.xxx.237.167 table gw_eth5
ip route add default via xxx.xxx.237.167 table gw_eth5
ip rule add from xxx.xxx.237.167 table gw_eth5
ip route add xxx.xxx.237.128/26 dev eth4 src xxx.xxx.237.166 table gw_eth4
ip route add default via xxx.xxx.237.166 table gw_eth4
ip rule add from xxx.xxx.237.166 table gw_eth4
But how to set the rules for 0.0.0.0/0 to have correct response from related NIC of request from the internet?
Many thanks for any hints in advance.
Last edited by exSTUDENT; 12-27-2012 at 04:12 PM.
- 12-27-2012 #2
If I am understanding you correctly, you have a machine with 6 NIC's. All are part of the DMZ and have individual ip addresses. Is this correct so far?
Why not bond all the NIC's together and use one IP Address for them? Problem solved.
- 12-27-2012 #3
- Join Date
- Dec 2012
All are part of the DMZ and have individual ip adresses, correct.
In our case, we have to operate with the individual ip adresses therefor bonding is not a solution for us.
A proper route entry would solve our problem but I have no skill in network issues. Can you assist me?
- 12-27-2012 #4
What does your routing table look like now?
- 12-27-2012 #5
- 12-27-2012 #6
I believe, Lazydog is right.
What is missing in your setup is a line like this, but for all six interfaces.
ip route add default scope global nexthop via $P1 dev $IF1 weight 1 nexthop via $P2 dev $IF2 weight 1You must always face the curtain with a bow.