add route with interface ID ... interface id changed
Hello, When i configure vpn l2tp (via profile made by cmak) in w7 i 'add route ...' from hand using interface ID, i.e.: netsh interface ipv4 add route prefix=10.10.0.0/16 interface=62 62 is interface my vpn l2tp connection. everything is fine but .... when i add i.e. gsm modem like orange business everywhere interface id of my vpn l2tp is changed - in my case is 62 because 62 is for gsm modem. futhermore .. if user change modem for another the interface ID change again .. and my rout is invalid. users can not change route table. i do not wand give them more permissions than user. is it possible to configure vpn l2tp interface for fixed interface ID? or how to change route according to current interface id of vpn l2tp interface? Voytas
August 25th, 2010 12:13am

We may refer the following article. Netsh commands for Interface Internet Protocol version 4 (IPv4) I think you concern about the “metric” of routes but not “interface”. Please chang the “interface” to “metric” and let us know the result. Arthur Xie TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Free Windows Admin Tool Kit Click here and download it now
August 25th, 2010 12:26pm

thx for answer. if i will do: netsh interface ipv4 add route prefix=10.10.0.0/16 metric xx how packets for 10.10.0.0/16 will go right interface? i do not understand your tip. Voytas
August 25th, 2010 4:43pm

According to the article, you can specify the value of the parameters “interface”. Syntax add route [prefix=]IP4Address/Integer [[interface=]String] [[nexthop=]IPv4Address] [[siteprefixlength=]Integer] [[metric=]Integer] [[validlifetime=]{Integer | infinite}] [[preferredlifetime=]{Integer | infinite}] [[store=]{active | persistent}] In command line, after entering “route print”, you will see the route table. From here we will know the information of existed routes, including their network destinations, net masks, gateways, interfaces and metrics.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
August 26th, 2010 5:56am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics