Force traffic over specific NIC on Server with 2 NICS on same subnets
Posted on 2004-08-24
I have a Win2000 Advanced server that has 2 NICs. I want the first NIC to respond to WWW traffic and the 2nd NIC to send/receive traffic through our firewall to our database server. The 2 IP address are on the same subnet but I want to only open one hole in the firewall and that will be for the database NIC.
It appears that my configuration works if the Database NIC gets enabled first (ie Disable then enable the WWW NIC). However, if I reboot the server the NICs get enabled in random order and the databse traffic will sometimes default to the WWW NIC. If I manually disable/enable the WWW NIC the database traffic will switch to the DB NIC and things are fine. I want a reboot to be configured automaticaly 100% of the time. Things I have tried are:
1. Physically move the NICs on the motherboard hoping one always gets enabled first. (doesn't happen)
2. Add a static persistent route to the database IP using the "Interface" option. The static route works, but after a reboot, but the "Interface" part of the static route command does not.
3. Add a service that runs a batch file that in turn runs the route command. I hold promise for this, but it didn't work the first time I tried it.
4. Changed the binding order and made the Database NIC the first NIC listed. (didn't seem to make a difference)
Any other suggestions would be greatly appreciated.