I have a web server with installation of Cent OS 5.6, cPanel/WHM. Currently the server have 2 ethernet and the configuration for both is listed below:
--------------------------------------------------------------
| IP | Subnet Mask | Gateway
--------------------------------------------------------------
eth0 | XXX.XX.XXX.150 | 255.255.255.252 | XXX.XX.XXX.149
--------------------------------------------------------------
eth1 | 192.168.86.2 | 255.255.255.252 | 192.168.86.1
--------------------------------------------------------------
Current default route is eth1 with gateway 192.168.86.1
Now what I need is to set eth0 as a default route for all connection except for 3 IPs (10.10.6.2, 10.10.6.3 and 10.10.6.4). I also need to set route for those 3 IPs from eth1.
eth0 is connected to optical fiber for internet connection whereas eth1 is connected to a DSL router for intranet connection
so can anyone help me to set this properly and permanently?