Avatar of tonelm54
tonelm54
 asked on

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

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
Windows NetworkingNetworkingRouters

Avatar of undefined
Last Comment
robbe

8/22/2022 - Mon
robbe

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
ASKER CERTIFIED SOLUTION
elbereth21

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
tonelm54

ASKER
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
robbe

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
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck