Solved

The route addition failed: The specified mask parameter is invalid. (Destination & Mask) != Destination

Posted on 2010-09-06
4
4,083 Views
Last Modified: 2012-06-21
Good morning,
Im trying to add a static route into one of our PCS. It has 2 network cards, and needs to access a particualr server at the IP address of 10.6.2.2, however when I try and tracert, it goes off using the wrong NIC.

The PC concerned has 2 IP address's on 2 differenet subnets:-
          10.6.2.52/255.255.0.0 and 10.171.226.68/255.255.255.0

The static route command I am trying is:-
          route add 10.6.2.2 mask 255.255.0.0 10.6.2.52

But I get the error:-
          The route addition failed: The specified mask parameter is invalid. (Destination & Mask) != Destination.

Any ideas what Im doing wrong?

Thank you
0
Comment
Question by:tonelm54
[X]
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
4 Comments
 
LVL 6

Expert Comment

by:robbe
ID: 33610311
You cannot route traffic for one specific subnet into a gateway that is in the same subnet. This way you try to route traffic to a network you are directly connected to. Give us some more info on what you are trying to do so we can help you with that.

Robin
0
 
LVL 11

Accepted Solution

by:
elbereth21 earned 500 total points
ID: 33610319
You should use:route add 10.6.2.2 mask 255.255.255.255 10.6.2.52
0
 

Author Comment

by:tonelm54
ID: 33610345
Hi robbe,
The servers IP address is on 10.6.2.2/255.255.0.0 .

The site has recenently had is ADSL cut, and while we are working on that, the users are using a 3G connection for internet and email, which works fine. However they cannot access there local servers, or printers while they are on the 3G connection. so they have to unplug the 3G modem whenever they want to print or access local files (which is a bit of a pain). As the printers and servers are on static IP addresses, I thought it would be easy to create a static route in the command console to route the traffic through the LAN connection instead of the 3G connection for servers and printers.

Does that make sence?

Thank you
0
 
LVL 6

Expert Comment

by:robbe
ID: 33610371
Can you provide me with the output of the 'route print' command on on of the clients that are connected to 3G. Also post the output of the ipconfig. I think there is something going wrong with the routing.

Robin
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SCCM, SCOM or Something Else 6 65
domain and forest trust 1 35
Static Route on Cisco ISR 4431's 4 35
qbutilities dll could not be found 27 40
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 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