Thursday 31 May 2012

How to change Metrics in windows routing table, Change metric for multicast routing entry

To change the metric first add the entry and then change the entry. Like this, i have done for multicast routes. By changing this entry basically you specify if the multicast traffic originates from this PC, we should sent on which interface.

C:\Documents and Settings\Administrator>route print
  224.0.0.0        240.0.0.0     10.1.1.10         10.1.1.10            20
  224.0.0.0        240.0.0.0     192.168.20.10   192.168.20.10      20

 If same metric is present for both interfaces, i am not sure how it will decide to send on which interface. But it will be random, any interface it will choose and send. To make it send on only one interface change the metric like this :

C:\Documents and Settings\Administrator>route add 224.0.0.0 mask 240.0.0.0 192.168.20.10 metric 20

then change the metric


C:\Documents and Settings\Administrator>route add 224.0.0.0 mask 240.0.0.0 192.168.20.10 metric10

As metric for the interface 192.168.20.10 is less i..e 10 now the traffic will be sent only on this interface.