Link to home
Start Free TrialLog in
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
Avatar of robbe
robbe
Flag of Belgium image

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
Avatar of elbereth21
elbereth21
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tonelm54
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
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