How to force traffic though a chosen interface in Windows 8.1?

Windows 8.1 seems to be able to detect dead routes and picks up the default gateway or next best route for routing.
I have a requirement where I want traffic for specific destinations to "always" go through the Interface that I pick and if that interface is not providing a path from some reason then I want the communication to fail instead of switching to the
next best interface.
How do I achieve this? I already tried EnableICMPRedirect and DeadGWDetectDefault registry settings and disabling Auto Metric on the interface through which I want to route this traffic.
Any clues would help.
Thanks
GW

With PowerShell you should be able to view the applicable routes and modify them accordingly to alter this behavior:
# you can determine your adapters with
Get-NetAdapter
-IncludeHidden
# then you can see what routes are associated with what adapter interface (lets assume your wifi interface is 4 and your loopback is 1)
Get-NetRoute
-AddressFamily IPv4
# you will get your specific interface index, destination prefix, nexthop and the routemetric
# you can then set a specific route policy using:
New-NetRoute
-DestinationPrefix "200.200.200.200/32"
-InterfaceIndex 1
-RouteMetric 256
New-NetRoute
-DestinationPrefix "200.200.200.200/32"
-InterfaceIndex 4
-NextHop 10.1.1.1
-RouteMetric 0
# you can modify the configuration with:
Set-NetRoute
-DestinationPrefix "200.200.200.200/32"
-InterfaceIndex 4
-NextHop 192.168.10.1
-RouteMetric 0
# finally, you can remove the specific route or all the routes with:
Remove-NetRoute
-DestinationPrefix "200.200.200.200/32"
-InterfaceIndex 1
-Confirm:$false
Remove-NetRoute
-DestinationPrefix "200.200.200.200/32"
-Confirm:$false

Similar Messages

  • How to route traffic between two different interfaces

    Hi,
    I need to setup a routing between two different interfaces on a host.
    Inferface ce1 : 192.168.120.12
    Inteface ce2 : 192.168.110.50
    Is it possible to add a route which enables the ce2 interface to catch packets from the ce1 interface ?
    Regards,
    Armin

    The problem is a application which is only able to listen on one interface.
    To fix this, I have to make all packages visible on one interface.

  • How to Force OS X to Open Command-I Windows as 1 regardless how much Files

    Hey there,
    I'd like to add different Icons to several Files via Command-I and Paste. I noticed that the System at some point opens just one Information Window for all related Files. Very Handy, but at lower numbers it opens the Info Windows one by one.
    Is there a way to force the System to open all related Info Windows in one Window, regardless how much Files are related?

    Command-Option-I

  • How to force user to enter supplier/customer name in captial letters in R12

    Dear all,
    Could anyone pls advise how to force user to enter supplier/customer name in captial letters in R12? Can I do it using OA framework personalization?
    HY

    Pl post exact versions of OS and EBS.
    The ability to do this exists in forms (professional user interface) using forms personalization, but does not exist in the OAF (self-service) interface, AFAIK. See related MOS Doc 399892.1 (Is It Possible To Restrict Employee Name Entry To All Upper Case in the PUI And SSHR ?) for some details.
    Pl confirm by opening an SR with Support.
    HTH
    Srini

  • How to force the Netscape Browser to open the "Open or Save" dialog box?

    Hi, I tried to force the browser to open the "Open or Save" dailog box for downloading a file.
    response.setContentType(context.getMimeType(file.getName()));
    response.setHeader("Content-Disposition", "attachment; filename=\"" + file.getName() + "\"");
    This works fine with IE for all file types( Even though he prompts twice to Open the file directly). but Netscape opens the file directly in the browser with showing any dialog box for text and html files. Anyone knows how to force the netscape in this case or for any file type? Any help will be appreciated.
    Thanks

    any one has the solution for this issue ? I tried the search and I didnt find any answer.
    when your trying to open a pdf file as attachment is seperate window, it works well in IE but in netscape it opens up in the same browser, it doesnt open a seperate window
    res.setContentType( "application/pdf" );
    res.setHeader("Content-Disposition","attachment; filename=\"" + cofcFileName+"\"");

  • How to Force Client's DHCP Renew on Mobility Event?

    Hi All,
    I have a (single) client (it is a cisco IOS router) behind a wireless workgroup bridge (cisco1242).
    The client's IP address is obtained via DHCP from the wired network.
    Now, when roaming occurs, the Client will never have knowledge about this event,
    and hence will not renew its IP address until lease expiers.
    This is not a problem of course when Layer 2 roam occurs, but with Layer 3
    roam it will interrupt the traffic.
    The cisco's IP Mobile implementation does have this issue addressed in DCCoA
    scenario: the WGB is configured to send an SNMP trap on its dotradio state change;
    the cisco mobile router is configured with snmp-server manager to process this trap
    and start DHCP renew on the Down/Up event. Unfortunately, this works in Mobile IP
    scenario only because I cannot make it work without the mobile router registered
    with a home agent.
    I wonder if someone could come up with an idea on how to force DHCP renew
    on a client (cisco IOS router) in such a situation - event scripting, SLA,  or ...?
    alex
    ============================

    Yes, George, I've looked at this.
    The problem with dynamic anchoring with static IP address is how
    the (new) WLC detects the IP address of the client. Remember that
    my client is cisco router with network(s) behind it. Snooping the
    ARP request will not work since ARP timeout in IOS is 4 hours.
    Orphan packet handling (I understand it is intercepting the IP
    packet from client without reply(?)) will most probably give erroneous
    result as this packet can be a packet from a network behind the router.
    alex
    ====================================

  • How to force OTT generating java?

    I've read in an Oracle white paper that Oracle has an Object Type Translator (ott) utility that creates java objects from object type definitions in the database. In my installations of Oracle 8.1.7 and 9.2i my ott utility only supports output of C structures (though in ott.exe present such strings as "public void...", "throws SQLException..."). Does anyone know how to force ott.exe generating java sources?

    OTT can generate C structures or C++ classes from object definitions. You should look at JPublisher for Java classes.

  • How to force OTT generating  java objects?

    I've read in an Oracle white paper that Oracle has an Object Type Translator (ott) utility that creates java objects from object type definitions in the database. In my installations of Oracle 8.1.7 and 9.2i my ott utility only supports output of C structures (though in ott.exe present such strings as "public void...", "throws SQLException..."). Does anyone know how to force ott.exe generating java objects?

    OTT can generate C structures or C++ classes from object definitions. You should look at JPublisher for Java classes.

  • How to force refresh of data through browser or PDF?

    We have the dashboard set to refresh every minute.  We are pulling the data using XML from DB.  When we are in browser and clear the browser cache and then reload the .swf... the data is updated.  We haven't been able to figure out how to force the cache-clear and data refresh with either swf or pdf.
    Your help is greatly appreciated.

    Hi Jeff,
    Is the XML coming from a web page or a web server?
    If yes then you can give this a go. To stop the caching mark your web page with extra tags to say it has expired.
    HTML page example:
    <HEAD>
        < META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
        < META HTTP-EQUIV="EXPIRES" CONTENT="0" />
    </HEAD>
    JSP example:
    <%
      // Stop Internet Explorer from caching the results of this page.
      // We do this so that every time Xcelsius calls this page it see the latest results.
      response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
      response.setHeader("Pragma","no-cache"); //HTTP 1.0
      response.setDateHeader ("Expires", 0); //prevents caching at the proxy server 
    %>
    Regards,
    Matt

  • How to route traffic across subnets when one NIC is a hyper-V virtual switch?

    Having a bit of a problem with a hyper-V environment which does not seem to route network traffic on two different subnets between each other.
    If it were a purely physical server with two NICs and a gateway set traffic would automatically be forwarded between the two different subnets.
    However when one of those NICs is a hyper-V virtual switch this simple routing no-longer seems to work and no traffic gets forwarded between subnets?
    Situation is:
    Hyper-V server with two NICs
    NIC 1 = 192.168.0/24 - main Internal company network.
    NIC 2 (hyper-V virtual switch.) = 192.168.1/24 - connects to ADSL internet router
    Virtualized Domain Controller.
    One or two virtualiszed NICs as necessary
    How then does traffic get routed between these two subnets?  If RRAS has to be configured to do this where is the best place to do it, on the hyper-V host or on the virtualized domain controller?
    Thanks,

    Hi ,
    You can create an internal virtual switch and configure an IP for it (I assume it is 192.168.1.2/24) .
    After you enable RRAS in hyper-v host  there will be two gateways for different subnets  .
    " NIC 2 (hyper-V virtual switch.) = 192.168.1/24 - connects to ADSL internet router "
    The problem is here ,if  these VMs need to access internet .
    So , these VMs can not configure their gateway same as the IP of internal virtual switch , you may set VM's gateway as the ADSL internet router's IP meanwhile add a static route entry for every VM .
    Please refer to the Syntax :
    route add -p 192.168.0.0 mask 255.255.255.0 192.168.1.2
    Hope this helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to force a new password in portal with LDAP user? external users

    With an external portal (used by agents that do not work for you or reside in your office), company policy is for password to be changed every qtr.
    If the users are creating as LDAP users how to force them to change their password when required?
    Is this a custom application that needs to be written so when they log into the portal if the qtr has expired the portal ask them to enter a new password that becomes valid for the next qtr.
    Versus internally deleting and emailing all the users a new password?

    Hi Glenn,
    We are getting one problem when we are creating user in LDAP and login with that user in  Portal that time we are getting Password change screen , but when we create a user in LDAP and change the password of that user in LDAP then when the user tries to  Login to portal that time we are not able to see the password change screen.
    But again if we change the password of that user through Portal we are able to see change password screen.
    can you help on this how we can force the user to change password when we are changing password in LDAP or in SAP System.
    Regards
    Trilochan

  • How to force the "Bluetooth Communicat​ions Port" to be one of COM1 to COM8 ports?

    Dear Lenovo Community, Happy Holidays to you all and wish you a great happy new year. Recently purchased a Bluetooth OBDII device and have difficulty making it to work with its provided software on my T61 (running original XP Home). My short story and question/problem is that I can open "My Bluetooth Places" and pair with the OBDII device as an "OBDII SPP Dev", but my T61 assigns serial port COM19 to it. The OBDII software which came with the device only can let user set to one of the COM1 to COM8 ports and in the properties of Bluetooth pairing, there is no way that I can select which COM port to use. I looked at the Device Manager and I do see these COM port assignments: COM4,5,6,7: Sierra Wireless (the HSDA modem in the laptop which I have never used BTW) COM 9,10,11,12,13,14,15,16,17: Bluetooth Serial Port COM 18, 19: Bluetooth Communications Port and I don't see anything for COM1,2,3, and 8 My question is how to force the computer/OS to assign one of the COM1 to COM8 ports to my device upon pairing? Can I disable the Sierra Wireless model from the COM ports list and hope this will happen? Thanks for your help and inputs beforehand. Regards, AL

    Hi, AL_K
    Have you attempted to change the port number in device manager itself? If you navigate to Device Manager and open the list of Ports, you can right-click on the device you wish to assign a different port number. After right-clicking, click Properties. There should be a tab called Port Settings. In here, you should find a setting to manually assign a port number.
    Good luck, and let me know how it goes,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • How can I use the color adjustments interface that shows up for camera RAW on jpeg files?

    How can I use the color adjustments interface that shows up for camera raw on other files types? The HLS controls had the secondary color adjustments (6 colors instead of the 3). Plus, it had same vibrancy and a better Curves interface. Yesterday was the first time I imported raw into Photoshop CS5 and I got that really cool interface. What is that? Can I use that on other file formats?

    Actually I am using the Tradional Chinese Version, when I try to edit the jpg file with camera raw, the system shows that there is no camera raw plug-in. The cmaera raw never work.

  • How to use a case ststement in interface?

    how to use a case statement in interface?
    My requirement is in interface for one column for
    Eg: In source column if a.b=c.d then i need to write as "Source"
    else when a.c=d.e then i need to write as "Target".
    please can you help in solving this.
    Regards,
    Sridhar

    You will literally write in the "Implemenation", the following:
    Case when a.b=c.d then "Source"
    Else
    "Target"
    End

  • How to prevent JaxB creation of 2 Interfaces for each Element?

    hi,
    does any body know how to prevent JaxB creation of 2 Interfaces for each Element (The Content Interface and the element interface)?
    I want to configure JaxB to use only one Interface and only one implementation Class.
    Thank's,

    I am sorry I can not answer your question, I have got the same problem. Could you please email me to
    [email protected] when you know the answer, please.
    I have a question for you. When and complex type is validated, I get the object which contains the error. ( or objects ).
    However. How do know the position in the actual parent object. basically. Is there a way to know exactly the position of that attribute in that object. I need to store errors strings.
    The first problem derives from this one:
    It is not possible to execute validate function for a primitive attribute inside an structure.
    I would appreciate your help.
    Thanks.
    Gustavo.

Maybe you are looking for

  • Simple file to file scenario

    Hello, I'm new to SOA suite and ESB. I'm trying to do a simple scenario - reading from a file, transforming it and writing to another file. First time when deployed, the inbound adapter picked the file, processed it 3 times (not sure why) and also lo

  • Service order third party

    Hi, I am working on service scenario. Post processing of sales. We are creating service order ECC. First we have to check warratny for product. we have to create service order for product. we dont have resources to repair it. Some third party provide

  • Records DB

    I am evaluating ContentDB and RecordsDB for use at the City of Kamloops. I have both applications running and have created a site and lots of test libraries/folders and users. I also have a records plan and have linked libraries and folders on the co

  • Captive 6 file publish to html 5 with swf animations

    hi..i created one project in captivate 6. i used some swf animations for it. i want to publish my project for HTML 5. But swf animations are not supported in HTML 5 file. so pls give me any solution , how i publish my project  for HTML 5?. thanks

  • OOP methods that validate a date

    I've been unable to locate an OOP method that validates a date (like function module "DATE_CHECK_PLAUSIBILITY".  Does one exist?  If so, how does one go about finding it (I've done numerous scans for classes and methods dealing with dates).