Windows 7 routing traffic through the gateway for local addresses

Windows is adding a route for a local address (10.0.0.90 - my fileserver) with a gateway of (10.0.0.138 - this is my gateway), the gateway only has a 100Mbs link so all of my fileserver bound traffic is being reduced to 100mbs, if I unplug the gateway it jumps back upto 1000mbs.

The fileserver also functions as the DHCP (isc) server (i am booting from iSCSI with IET and iPXE).

Also the machine with the strange route is configured via dhcp.


If anyone is interested, after hours of scouring google:

http://support.microsoft.com/kb/960104

If you are using iPXE - like me, put:

option routers 10.0.0.10;

where 10.0.0.10 is the iscsi target, like so:

if exists user-class and option user-class = "iPXE" {
  option routers 10.0.0.10;
  filename "";
  option root-path "iscsi:iscsi.example.com::::iqn.1992-01.com.example.iscsi:target";
}

in the hardware address specific isc-dhcp entry. Outside of this conditional statement you will still need to specify the network router/gateway so the iscsi boot machine can reach the the lan/wan/internet.

Windows creates an undelete-able unchange-able route that corresponds to the iSCSI target when booting from it in the routing table, whatever gateway option is set with the target is bound to the route.