What static route configuration (as shown by command line "route PRINT"):

  1. Network Destination
  2. Netmask
  3. Gateway
  4. Interface
  5. Metric

could be used to reach a specified static route (web proxy) in the Intranet, giving that:

  1. Subnet Mask = 255.255.255.255
  2. Gateway = BLANK

for a computer in a flat LAN.

I tried Netmask 255.255.255.255 and Gateway 0.0.0.0 (on link) but when trying to ping the web proxy destination IP, it says Network Destination Unreachable!

Any thoughts?

link|improve this question
1  
The mask you are using says that every bit of the IP address is network which means there are no hosts. Try a mask of 0.0.0.0 which means that every bit of the IP address is host. All of this assumes one network with no router / outside connections. – dbasnett Oct 19 '10 at 12:05
feedback

migrated from stackoverflow.com Oct 19 '10 at 10:22

This question came from our site for professional and enthusiast programmers.

3 Answers

Perhaps I do not understand the question, but if you are trying to reach a resource on the same local network segment, then you do not need a route at all. It should compare the destination address with your subnet mask, determine it is on the local network segment and directly send to that device

link|improve this answer
feedback

you need 0.0.0.0 for the mask as well if it is the default route

link|improve this answer
feedback

you need to put your gateway as network destination

link|improve this answer
feedback

Your Answer

 
or
required, but never shown