route add? Whats wrong?

Permabanned
Joined
19 Apr 2006
Posts
2,333
Location
West Yorkshire
I am trying to add a static route to my PC to allow me access to our externally monitored CCTV.

The CCTV system has the IP of 217.37.23.X This then has a ADSL modem attached to give it access to the outside world.

I have now attached a 4 port router to the modem as well and given that an internal address on our network of 10.0.10.8.

Our standard gateway is 10.0.10.9, so I have added a static route to my PC using the following:

route -p add 217.37.23.0 MASK 255.255.255.248 10.0.10.8

Which has given me the following when I do a route print:

Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.10.9 10.0.10.98 20
10.0.10.0 255.255.255.0 10.0.10.98 10.0.10.98 20
10.0.10.98 255.255.255.255 127.0.0.1 127.0.0.1 20
10.255.255.255 255.255.255.255 10.0.10.98 10.0.10.98 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
217.37.23.0 255.255.255.248 10.0.10.8 10.0.10.98 1
224.0.0.0 240.0.0.0 10.0.10.98 10.0.10.98 20
255.255.255.255 255.255.255.255 10.0.10.98 2 1
255.255.255.255 255.255.255.255 10.0.10.98 10.0.10.98 1
255.255.255.255 255.255.255.255 10.0.10.98 10005 1
Default Gateway: 10.0.10.9

Persistent Routes:
Network Address Netmask Gateway Address Metric
217.37.23.0 255.255.255.248 10.0.10.8 1

Yet when I do a tracert to 217.37.23.X it still goes through 10.0.10.9 for it's gateway.

Any help?
 
lol nm I just figured it out after posting.

For anyone who cares, I need to change the mask in the route from 255.255.255.248 to 255.255.255.0

All is good :)
 
Back
Top Bottom