How to add route to specific host in nt/W2k

S

saravanan

NT/W2k allows manually routing using route add command to
destination which must be a network ID. How can I add
route to a specific host and not a net id. If I do so, I
get an error 'destination & gateway ) != Destination. '

Can I add thry registry or is there another way to do so?
Unix systems allows this.
 
M

Marc Reynolds [MSFT]

What are you using for the netmask when you attempt to add the route?

To correctly add a host route, do not specify a netmask. By default,
Windows will use a netmask of 255.255.255.255. For example:

route add 204.110.15.3 204.118.75.1


Or use a subnet mask of all 1s (ones), 255.255.255.255. For example:

route add 204.110.15.3 MASK 255.255.255.255 204.118.75.1

The mask of all 255s (all 1s) means that the destination address of the
packet to be routed must exactly match the Network Address for this route to
be used.


--

Thanks,
Marc Reynolds
Microsoft Technical Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top