ROUTE.EXE Windows 2012 Server Not Working

Posted on 2014-04-22
Last Modified: 2014-04-22
Hello, I need to route all traffic to this IP via the private interface:

The same way all traffic to 10.x.x.x is getting routed... here is the routing table:

Interface List
 22...00 25 90 5a 01 ea ......Microsoft Network Adapter Multiplexor Driver #2
 21...00 25 90 5a 01 eb ......Microsoft Network Adapter Multiplexor Driver
  1...........................Software Loopback Interface 1
 19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 23...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
 25...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface

IPv4 Route Table
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
    266     11         On-link    266         On-link    266         On-link    266         On-link    306         On-link    306         On-link    306         On-link    266         On-link    266         On-link    266         On-link    306         On-link    266         On-link    266         On-link    306         On-link    266         On-link    266
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric       1

IPv6 Route Table
Active Routes:
 If Metric Network Destination      Gateway
  1    306 ::1/128                  On-link
 21    266 2607:f0d0:1901:50::/64   On-link
 21    266 2607:f0d0:1901:50:9578:400d:2aa:5855/128
 22    266 fe80::/64                On-link
 21    266 fe80::/64                On-link
 22    266 fe80::9dc:2a9e:43ad:dd20/128
 21    266 fe80::9578:400d:2aa:5855/128
  1    306 ff00::/8                 On-link
 22    266 ff00::/8                 On-link
 21    266 ff00::/8                 On-link
Persistent Routes:

Open in new window

I tried doing ->

route -p add metric 1 if 22

i tried this, but i keep getting

C:\Windows\system32\ROUTE.EXE: bad argument

Any thoughts?
Question by:nm_mario
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 10

Accepted Solution

Schuyler Dorsey earned 500 total points
ID: 40014797
Try this instead:

route -p add mask metric 1 if 22

You need the word mask in there.
LVL 10

Expert Comment

by:Schuyler Dorsey
ID: 40014800

Author Closing Comment

ID: 40014817
thank you! that worked...

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question