Yes - I have multiple IPs on a single NIC in the same subnet.
Below is my route table.
Also, when adding a ROUTE ADD, how do I keep it on reboots?
Thanks for your response.
IPv4 Route Table
==========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 xxx.xxx.0.1 xxx.xxx.0.15 266
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
xxx.xxx.0.0 255.255.255.0 On-link xxx.xxx.0.15 266
xxx.xxx.0.15 255.255.255.255 On-link xxx.xxx.0.15 266
xxx.xxx.0.16 255.255.255.255 On-link xxx.xxx.0.15 266
xxx.xxx.0.17 255.255.255.255 On-link xxx.xxx.0.15 266
xxx.xxx.0.255 255.255.255.255 On-link xxx.xxx.0.15 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link xxx.xxx.0.15 266
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link xxx.xxx.0.15 266
==========================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 xxx.xxx.0.1 Default
==========================
Main Topics
Browse All Topics





by: PakaPosted on 2009-02-20 at 23:37:01ID: 23698830
If you have multiple IPs on a single NIC in the same subnet (which it looks like you do), they will each be routed to the internet (and whatismyip) with the same metric. To see the metrics use: "route print" from a command line.
You can change these metrics using "ROUTE ADD networkid MASK networksubnetmask networkinterface metric x -p"; so in your case, you would want .16 to be your least costly way:
route add 0.0.0.0 mask 0.0.0.0 x.x.x.16 metric 5 -p
BTW - What is the last octect of your default gateway?